BUG 29517
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
<template>
|
||||
<div class="AppBuilding">
|
||||
<search-map v-if="show && isAdmin"/>
|
||||
<div v-if="!isAdmin" class="empty">
|
||||
<search-map v-if="show && isGridMember"/>
|
||||
<div v-if="!isGridMember" class="empty">
|
||||
<img src="https://cdn.cunwuyun.cn/dvcp/h5/no-data.png" alt="">
|
||||
<p>没有网格员权限<br/>无法查看楼栋信息哦~</p>
|
||||
</div>
|
||||
@@ -11,15 +11,21 @@
|
||||
<script>
|
||||
|
||||
import SearchMap from "./components/searchMap";
|
||||
import {mapState} from "vuex";
|
||||
|
||||
export default {
|
||||
name: 'AppBuilding',
|
||||
components: {SearchMap},
|
||||
appName: '以房找人',
|
||||
computed: {
|
||||
...mapState(['user']),
|
||||
isGridMember() {
|
||||
return this.user.girdCheckType > 0
|
||||
}
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
show: true,
|
||||
isAdmin: false
|
||||
}
|
||||
},
|
||||
onShow() {
|
||||
@@ -28,44 +34,31 @@ 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 != '0') {
|
||||
this.isAdmin = true
|
||||
}
|
||||
}
|
||||
})
|
||||
},
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
uni-page-body {
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.AppBuilding {
|
||||
height: 100%;
|
||||
.empty{
|
||||
|
||||
.empty {
|
||||
height: 100%;
|
||||
img{
|
||||
|
||||
img {
|
||||
width: 282px;
|
||||
height: 306px;
|
||||
margin: 168px 0 0 234px;
|
||||
}
|
||||
p{
|
||||
|
||||
p {
|
||||
text-align: center;
|
||||
font-size: 28px;
|
||||
font-family: PingFangSC-Regular, PingFang SC;
|
||||
color: #999;
|
||||
line-height: 44px;
|
||||
span{
|
||||
|
||||
span {
|
||||
color: #467DFE;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user