Переглянути джерело

修复首页的判断问题

wangn 5 роки тому
батько
коміт
ffe9eac4b7

+ 5 - 0
ghsApp/src/mixins/globalMixins.js

@@ -52,11 +52,14 @@ export default {
           if (res.data.shopAdminId == '0' && res.data.admin.openShop == '1') {
           if (res.data.shopAdminId == '0' && res.data.admin.openShop == '1') {
             this.AUTHORITY_SHOW = true;
             this.AUTHORITY_SHOW = true;
             uni.hideTabBar()
             uni.hideTabBar()
+            uni.setStorageSync('SHOP_ADMIN_STROAGE_SHOW', res.data.shopAdminId)
 					} else if (res.data.admin.openShop == '2' && res.data.shopAdminId == '0') {
 					} else if (res.data.admin.openShop == '2' && res.data.shopAdminId == '0') {
             this.MODEL_TITLE = '已申请'
             this.MODEL_TITLE = '已申请'
             this.MODEL_BTN_TEXT = '查看申请进度'
             this.MODEL_BTN_TEXT = '查看申请进度'
             this.AUTHORITY_SHOW = true
             this.AUTHORITY_SHOW = true
             uni.hideTabBar()
             uni.hideTabBar()
+            uni.removeStorageSync('SHOP_ADMIN_STROAGE_SHOW')
+            uni.setStorageSync('OPEN_SHOP_ID', res.data.admin.openShop)
           }
           }
 				}
 				}
 				getUser(true)
 				getUser(true)
@@ -140,6 +143,8 @@ export default {
           ...subRes.data.admin,
           ...subRes.data.admin,
           ...subRes.data
           ...subRes.data
         })
         })
+        uni.removeStorageSync('SHOP_ADMIN_STROAGE_SHOW')
+        uni.removeStorageSync('OPEN_SHOP_ID')
         this.AUTHORITY_SHOW = false
         this.AUTHORITY_SHOW = false
         //启动更新逻辑 shish 2020.5.18
         //启动更新逻辑 shish 2020.5.18
         if (subRes.data.update == 1) {
         if (subRes.data.update == 1) {

+ 6 - 5
ghsApp/src/pagesClient/official/result.vue

@@ -1,15 +1,16 @@
 <template>
 <template>
-	<appResult title="提交成功">
+	<appResult title="提交">
         <view class="dec">
         <view class="dec">
-            开启微信通知,有订单动态时及时通知您:
+            审核时间为一个工作日
         </view>
         </view>
 		<button 
 		<button 
             class="admin-button-com blue big" 
             class="admin-button-com blue big" 
             @click="pageTo({
             @click="pageTo({
-                url:'/pagesClient/official/warn'
-            })"
+                url: '/admin/home/workbench',
+                type: 4
+              })"
             >
             >
-            去开启
+            关闭
             </button>
             </button>
 	</appResult>
 	</appResult>
 </template>
 </template>