Files
dvcp_v2_wxcp_app/src/saas/AppBuilding/AppBuilding.vue

75 lines
1.4 KiB
Vue
Raw Normal View History

2022-01-25 16:31:39 +08:00
<template>
<div class="AppBuilding">
2022-02-10 19:02:15 +08:00
<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>
2022-01-25 16:31:39 +08:00
</div>
</template>
<script>
2022-01-26 12:02:32 +08:00
import SearchMap from "./components/searchMap";
2022-01-25 16:31:39 +08:00
export default {
name: 'AppBuilding',
2022-01-26 12:02:32 +08:00
components: {SearchMap},
2022-01-25 16:31:39 +08:00
appName: '以房找人',
data() {
return {
2022-02-10 19:02:15 +08:00
show: true,
isAdmin: false
2022-01-25 16:31:39 +08:00
}
},
onShow() {
this.show = false
this.$nextTick(() => {
this.show = true
})
document.title = "以房找人"
2022-02-10 19:02:15 +08:00
this.isGirdUser()
2022-01-25 16:31:39 +08:00
},
2022-02-10 19:02:15 +08:00
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
}
}
})
},
}
2022-01-25 16:31:39 +08:00
}
</script>
<style lang="scss" scoped>
uni-page-body {
height: 100%;
}
.AppBuilding {
height: 100%;
2022-02-10 19:02:15 +08:00
.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;
}
}
}
2022-01-25 16:31:39 +08:00
}
</style>