This commit is contained in:
liuye
2022-02-10 19:02:15 +08:00
parent a1c0ef91fb
commit c9d6f266dc
3 changed files with 61 additions and 4 deletions

View File

@@ -1,6 +1,10 @@
<template>
<div class="AppBuilding">
<search-map v-if="show"/>
<search-map v-if="show && isAdmin"/>
<div v-if="!isAdmin" class="empty">
<img src="https://cdn.cunwuyun.cn/dvcp/h5/no-data.png" alt="">
<p>没有网格员/网格长权限<br/>无法查看楼栋信息哦~</p>
</div>
</div>
</template>
@@ -14,7 +18,8 @@ export default {
appName: '以房找人',
data() {
return {
show: true
show: true,
isAdmin: false
}
},
onShow() {
@@ -23,7 +28,20 @@ export default {
this.show = true
})
document.title = "以房找人"
this.isGirdUser()
},
methods: {
isGirdUser() {
this.isAdmin = false
this.$http.post('/app/appgirdmemberinfo/checkLogOnUser').then((res) => {
if (res.code == 0) {
if (res.data.checkType == '2') {
this.isAdmin = true
}
}
})
},
}
}
</script>
@@ -34,5 +52,23 @@ uni-page-body {
.AppBuilding {
height: 100%;
.empty{
height: 100%;
img{
width: 282px;
height: 306px;
margin: 168px 0 0 234px;
}
p{
text-align: center;
font-size: 28px;
font-family: PingFangSC-Regular, PingFang SC;
color: #999;
line-height: 44px;
span{
color: #467DFE;
}
}
}
}
</style>