2024-04-08 02:59:47 +00:00
|
|
|
<template>
|
|
|
|
<view class="body">
|
|
|
|
<view class="" v-for="(item,index) in datas" :key="index">
|
|
|
|
<view class="sekuai">
|
|
|
|
<view class="neibu">
|
2024-04-08 15:49:00 +00:00
|
|
|
<view @click="neibuClick(item)" class="zhuBT">
|
2024-04-08 02:59:47 +00:00
|
|
|
{{item}}
|
|
|
|
</view>
|
|
|
|
<view class="tupian">
|
2024-04-09 14:01:38 +00:00
|
|
|
<u-image v-if="item =='项目列表维护'" src="https://maomaochong.top:8088/i/2024/04/09/6614dd7ed79cb.png" :fade="true" duration="200" mode="scaleToFill" width="170" height="170"></u-image>
|
|
|
|
<u-image v-if="item !='项目列表维护'" src="https://maomaochong.top:8088/i/2024/04/09/6614dd0f437d7.png" :fade="true" duration="200" mode="scaleToFill" width="170" height="170"></u-image>
|
2024-04-08 02:59:47 +00:00
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
export default {
|
|
|
|
data() {
|
|
|
|
return {
|
2024-04-08 15:49:00 +00:00
|
|
|
datas:[],
|
2024-04-09 14:01:38 +00:00
|
|
|
map: {
|
|
|
|
'项目列表维护': '/pages/project/projectIndex',
|
2024-04-10 09:13:31 +00:00
|
|
|
'博澳中医院': '/pages/memberList/member?hospitalName=博澳中医院',
|
2024-04-09 14:01:38 +00:00
|
|
|
'大里社区卫生服务中心': '/pages/memberList/member?hospitalName=大里社区卫生服务中心',
|
|
|
|
'惠民道卫生服务中心': '/pages/memberList/member?hospitalName=惠民道卫生服务中心',
|
|
|
|
'小山社区卫生服务中心': '/pages/memberList/member?hospitalName=小山社区卫生服务中心',
|
|
|
|
'澳斯医疗管理': '/pages/memberList/member?hospitalName=澳斯医疗管理'
|
|
|
|
}
|
2024-04-08 02:59:47 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
onShow() {
|
|
|
|
var me = this
|
|
|
|
var res=uni.getStorageSync('token')
|
|
|
|
var a
|
|
|
|
for(a=0;a<res.menu.length;a++){
|
|
|
|
console.log(res.menu[a].menuId)
|
|
|
|
if(res.menu[a].menuId=="1101"){
|
|
|
|
me.datas.push(res.menu[a].menuName)
|
|
|
|
}
|
|
|
|
if(res.menu[a].menuId=="1102"){
|
|
|
|
me.datas.push(res.menu[a].menuName)
|
|
|
|
}
|
|
|
|
if(res.menu[a].menuId=="1103"){
|
|
|
|
me.datas.push(res.menu[a].menuName)
|
|
|
|
}
|
|
|
|
if(res.menu[a].menuId=="1104"){
|
|
|
|
me.datas.push(res.menu[a].menuName)
|
|
|
|
}
|
|
|
|
if(res.menu[a].menuId=="1105"){
|
|
|
|
me.datas.push(res.menu[a].menuName)
|
|
|
|
}
|
|
|
|
if(res.menu[a].menuId=="12"){
|
|
|
|
me.datas.push(res.menu[a].menuName)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
console.log(me.datas)
|
|
|
|
},
|
|
|
|
methods: {
|
2024-04-08 15:49:00 +00:00
|
|
|
neibuClick(val){
|
|
|
|
console.log(val)
|
|
|
|
uni.navigateTo({
|
|
|
|
url: this.map[val] // 要跳转的页面路径
|
|
|
|
});
|
|
|
|
}
|
2024-04-08 02:59:47 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<style>
|
|
|
|
@import url("index.css");
|
|
|
|
</style>
|