Prechádzať zdrojové kódy

修改首页的localStoage名称

wangn 5 rokov pred
rodič
commit
bbe563be49

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

@@ -31,7 +31,7 @@ export default {
 	methods: {
 	methods: {
     loginSys(){
     loginSys(){
       uni.removeStorageSync('OPEN_SHOP_ID')
       uni.removeStorageSync('OPEN_SHOP_ID')
-      uni.removeStorageSync('SHOP_ADMIN_STROAGE_SHOW')
+      uni.removeStorageSync('HOME_STATUS_STROAGE_SHOW')
       this.$util.pageTo({
       this.$util.pageTo({
         url: '/admin/home/workbench',
         url: '/admin/home/workbench',
         type: 4
         type: 4

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

@@ -35,7 +35,7 @@ export default {
 			uni.setStorageSync('account', option.account)
 			uni.setStorageSync('account', option.account)
 		}
 		}
     uni.setStorageSync('currentQuery', JSON.stringify(option))
     uni.setStorageSync('currentQuery', JSON.stringify(option))
-    console.log(uni.getStorageSync('SHOP_ADMIN_STROAGE_SHOW'),'this.shopAdminId', this.getLoginInfo, this.getLoginInfo.openShop)
+    console.log(uni.getStorageSync('HOME_STATUS_STROAGE_SHOW'),'this.shopAdminId', this.getLoginInfo, this.getLoginInfo.openShop)
 	},
 	},
 	onShow(){
 	onShow(){
 		if (isLogin()&&!this.$util.isEmpty(this.getLoginInfo)) {
 		if (isLogin()&&!this.$util.isEmpty(this.getLoginInfo)) {
@@ -60,13 +60,13 @@ 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)
+            uni.setStorageSync('HOME_STATUS_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.removeStorageSync('HOME_STATUS_STROAGE_SHOW')
             uni.setStorageSync('OPEN_SHOP_ID', res.data.admin.openShop)
             uni.setStorageSync('OPEN_SHOP_ID', res.data.admin.openShop)
           } else {
           } else {
             this.AUTHORITY_SHOW = false;
             this.AUTHORITY_SHOW = false;
@@ -86,7 +86,7 @@ export default {
     ...mapActions(['setUserShopAll']),
     ...mapActions(['setUserShopAll']),
     toFreeApply_HOME () {
     toFreeApply_HOME () {
       let status = ''
       let status = ''
-        if (uni.getStorageSync('SHOP_ADMIN_STROAGE_SHOW') == '0') {
+        if (uni.getStorageSync('HOME_STATUS_STROAGE_SHOW') == '0') {
           this.$util.pageTo({
           this.$util.pageTo({
             url: "/pagesClient/official/index",
             url: "/pagesClient/official/index",
             query: {
             query: {
@@ -142,7 +142,7 @@ export default {
           ...subRes.data.admin,
           ...subRes.data.admin,
           ...subRes.data
           ...subRes.data
         })
         })
-        uni.removeStorageSync('SHOP_ADMIN_STROAGE_SHOW')
+        uni.removeStorageSync('HOME_STATUS_STROAGE_SHOW')
         uni.removeStorageSync('OPEN_SHOP_ID')
         uni.removeStorageSync('OPEN_SHOP_ID')
         this.AUTHORITY_SHOW = false
         this.AUTHORITY_SHOW = false
         uni.showTabBar()
         uni.showTabBar()