Browse Source

工作台优化

codeMan 1 year ago
parent
commit
a61996b9da
1 changed files with 10 additions and 2 deletions
  1. 10 2
      pages/index/cloud/workbench.vue

+ 10 - 2
pages/index/cloud/workbench.vue

@@ -9,7 +9,7 @@
         <!-- 用户信息 -->
         <UserInfo :userInfoValue="userInfoValue" @selfCardClick="selfCardClick"></UserInfo>
 
-        <view class="work-panel_signin">
+        <view class="work-panel_signin" v-if="isSign">
             <text class="title">你已累计打卡{{ userInfoValue.signdays }}天</text>
             <navigator class="but" @click="toDailyYttendance" url="/packageA/dailyYttendance/index"
                 hover-class="navigator-hover">
@@ -75,7 +75,15 @@ export default {
                 }
             },
             userInfoValue: {},
-            roles: []
+            roles: [],
+            auth:uni.getStorageSync('authList').资料库
+        }
+    },
+    computed: {
+        isSign () {
+            if (!uni.getStorageSync('authList').资料库) return false
+            if (!uni.getStorageSync('authList').资料库.每日一签) return false
+            return true
         }
     },
     methods: {