From 7e1d9fe99580ca73ceab782cc5c7de4e6b8ba54b Mon Sep 17 00:00:00 2001
From: yujialong <479214531@qq.com>
Date: Mon, 13 Jun 2022 11:26:28 +0800
Subject: [PATCH] =?UTF-8?q?=E6=9D=83=E9=99=90=E6=8E=A7=E5=88=B6?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
App.vue | 18 +++++++++++-
apis/modules/client.js | 2 +-
apis/modules/order.js | 6 +---
apis/modules/parner.js | 4 +++
apis/modules/user.js | 4 +++
apis/request.js | 4 ++-
directives/auth.js | 16 ++++++++++
directives/index.js | 12 ++++++++
main.js | 11 +++++++
pages.json | 3 +-
pages/clients/clients.vue | 46 ++++++++++++++++++-----------
pages/index/index.vue | 61 +++++++++++++++++----------------------
pages/orders/orders.vue | 34 +++++++++++++++++-----
pages/person/person.vue | 48 ++++++++++++++++++++++++------
pages/plans/plans.vue | 5 +++-
pages/setting/setting.vue | 11 +++----
pages/teams/teams.vue | 16 ++++++++--
styles/common.scss | 14 +++++++++
18 files changed, 230 insertions(+), 85 deletions(-)
create mode 100644 directives/auth.js
create mode 100644 directives/index.js
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 @@
-
+
@@ -151,6 +151,9 @@
.search {
flex: 1;
}
+ /deep/.uni-searchbar__box {
+ height: 60rpx;
+ }
}
.list {
background-color: #fff;
diff --git a/pages/setting/setting.vue b/pages/setting/setting.vue
index 0c360d4..824ed5b 100644
--- a/pages/setting/setting.vue
+++ b/pages/setting/setting.vue
@@ -1,9 +1,9 @@
-
-
-
+
+
+
@@ -26,13 +26,14 @@
accountIcon: {
color: '#007eff',
size: '22',
- type: 'account'
+ type: 'person'
},
pwdIcon: {
color: '#007eff',
size: '22',
type: 'locked'
- }
+ },
+ info: uni.getStorageSync('info')
}
},
methods: {
diff --git a/pages/teams/teams.vue b/pages/teams/teams.vue
index 52edf93..82c5143 100644
--- a/pages/teams/teams.vue
+++ b/pages/teams/teams.vue
@@ -25,7 +25,8 @@
-
+
+ 功能升级中,敬请期待...
@@ -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