diff --git a/src/apps/AppGridManagement/AppGridManagement.vue b/src/apps/AppGridManagement/AppGridManagement.vue index 24896f3a..510d773e 100644 --- a/src/apps/AppGridManagement/AppGridManagement.vue +++ b/src/apps/AppGridManagement/AppGridManagement.vue @@ -1,12 +1,16 @@ @@ -46,6 +50,7 @@ export default { } ], isTab: true, + isAdmin: false } }, @@ -68,6 +73,16 @@ export default { this.refresh = true }) }, + isGirdUser() { + this.isAdmin = false + this.$http.post('/app/appgirdmemberinfo/checkLogOnUser').then((res) => { + if (res.code == 0) { + if (res.data.checkType) { + this.isAdmin = true + } + } + }) + }, }, onShow() { document.title = '网格管理' @@ -78,6 +93,9 @@ export default { this.isTab = true }) }, + onLoad() { + this.isGirdUser() + }, onReachBottom() { if(!this.tabIndex) { uni.$emit('nextList') @@ -119,4 +137,18 @@ export default { } } } +.empty{ + text-align: center; + img{ + width: 282px; + height: 306px; + margin: 136px auto 0; + } + p{ + font-size: 28px; + font-family: PingFangSC-Regular, PingFang SC; + color: #999; + line-height: 40px; + } +} diff --git a/src/apps/AppGridManagement/components/img/no-admin.png b/src/apps/AppGridManagement/components/img/no-admin.png new file mode 100644 index 00000000..3830c170 Binary files /dev/null and b/src/apps/AppGridManagement/components/img/no-admin.png differ