Преглед на файлове

完善花店端的没有账号弹窗

wangning преди 5 години
родител
ревизия
e60606ceb1

+ 9 - 7
hdApp/src/admin/home/me.vue

@@ -179,13 +179,15 @@ export default {
       this.$refs.dorpdownSelect.dropdownShow = true;
     },
     async init () {
-      try {
-        const { data } = await mainMy();
-        this.infoData = data;
-        //不要删除此输出,方法查看 shish 20210512
-        console.log('商家ID',data.sjId,'门店ID',data.shopId)
-        uni.stopPullDownRefresh();
-      } finally {
+      if(!this.AUTHORITY_SHOW) {
+        try {
+          const { data } = await mainMy();
+          this.infoData = data;
+          //不要删除此输出,方法查看 shish 20210512
+          console.log('商家ID',data.sjId,'门店ID',data.shopId)
+          uni.stopPullDownRefresh();
+        } finally {
+        }
       }
     },
     async selectSussess () {

+ 3 - 1
hdApp/src/admin/home/member.vue

@@ -104,7 +104,9 @@ export default {
   },
   methods: {
     init() {
-      this._list();
+      if(!this.AUTHORITY_SHOW) {
+        this._list();
+      }
     },
     // 列表
     _list() {

+ 3 - 1
hdApp/src/admin/home/order.vue

@@ -248,7 +248,9 @@ export default {
   },
   methods: {
     init () {
-      this._list();
+      if(!this.AUTHORITY_SHOW) {
+        this._list();
+      }
     },
     _list () {
       let status = JSON.parse(JSON.stringify(this.tabIndex));

+ 7 - 1
hdApp/src/admin/home/result.vue

@@ -2,7 +2,7 @@
 <!-- icondaizhifu -->
 	<appResult :title="status == '2' ? '审核中' : '审核通过'" :icon="status == '2' ? 'icondaizhifu' : 'iconchenggong'">
 		<button class="admin-button-com blue big" v-if="status != '2'" @click="loginSys">登录后台</button>
-		<button class="admin-button-com big">开启通知</button>
+		<button class="admin-button-com big" @click="openInform">开启通知</button>
 	</appResult>
 </template>
 
@@ -28,6 +28,12 @@ export default {
         url: '/admin/home/workbench',
         type: 4
       })
+    },
+    openInform(){
+      this.pageTo({
+        url: '/pagesClient/official/warn',
+        type: 2
+      })
     }
 	}
 };

+ 6 - 1
hdApp/src/admin/home/workbench.vue

@@ -301,7 +301,12 @@ export default {
       this.$util.pageTo(item)
     },
     init () {
-					getWeixinId().then(res => {
+				if(!this.AUTHORITY_SHOW) {
+          this._init()
+        }	
+    },
+    _init(){
+      getWeixinId().then(res => {
 						this.getappIdList = res.data
 					});
 					getUser().then(res => {

+ 2 - 2
hdApp/src/mixins/globalMixins.js

@@ -36,8 +36,8 @@ export default {
 			uni.setStorageSync('account', option.account)
 		}
     uni.setStorageSync('currentQuery', JSON.stringify(option))
-    console.log(uni.getStorageSync('SHOP_ADMIN_STROAGE_SHOW'),'this.shopAdminId', this.getLoginInfo)
-    if (uni.getStorageSync('SHOP_ADMIN_STROAGE_SHOW') == '0' || uni.setStorageSync('OPEN_SHOP_ID') == '2') {
+    console.log(uni.getStorageSync('SHOP_ADMIN_STROAGE_SHOW'),'this.shopAdminId', this.getLoginInfo, this.getLoginInfo.openShop)
+    if (uni.getStorageSync('SHOP_ADMIN_STROAGE_SHOW') == '0' || this.getLoginInfo.openShop == '2') {
       this.AUTHORITY_SHOW = true
     }
     if (this.$util.isEmpty(this.getLoginInfo)) {