diff --git a/App.vue b/App.vue index d996bf2..7e91dc0 100644 --- a/App.vue +++ b/App.vue @@ -1,7 +1,23 @@ @@ -55,7 +86,6 @@ height: 300rpx; } .wrap { - z-index: 2; position: relative; padding: 0 24rpx; margin-top: -150rpx; diff --git a/pages/plans/plans.vue b/pages/plans/plans.vue index ee41a15..ed9d566 100644 --- a/pages/plans/plans.vue +++ b/pages/plans/plans.vue @@ -1,7 +1,7 @@ @@ -34,6 +35,7 @@ export default { data() { return { + per: true, // 是否有权限 reachBottom: 0, // 是否是上拉加载。0->否,1->是,-1->加载完所有数据 status: 'more', // 上拉加载状态 more|loading|noMore searchTimer: null, @@ -67,9 +69,19 @@ } }, onShow() { - this.initList() + this.initRole() }, methods: { + // 初始化权限 + initRole() { + const auth = uni.getStorageSync('auth') + if (!auth.includes('团队')) { + this.per = false + } else if (auth.includes('团队:团队列表')) { + this.initList() + } + }, + // 获取列表 getList() { teamList({ pageNum: this.page, diff --git a/styles/common.scss b/styles/common.scss index d0fe58f..b8e5098 100644 --- a/styles/common.scss +++ b/styles/common.scss @@ -162,4 +162,18 @@ ul { border-radius: 10rpx; background-color: #007EFF; } +} +.per-mask { + z-index: 3; + position: fixed; + top: 0; + left: 0; + display: flex; + justify-content: center; + align-items: center; + width: 100%; + height: 100%; + font-size: 28rpx; + color: #333; + background-color: rgba(255, 255, 255, 0.95); } \ No newline at end of file