|
|
@@ -35,13 +35,10 @@ export default {
|
|
|
uni.setStorageSync('account', option.account)
|
|
|
}
|
|
|
uni.setStorageSync('currentQuery', JSON.stringify(option))
|
|
|
- console.log(uni.getStorageSync('HOME_STATUS_STROAGE_SHOW'),'this.shopAdminId', this.getLoginInfo, this.getLoginInfo.openShop)
|
|
|
- },
|
|
|
- onShow(){
|
|
|
- if (isLogin()&&!this.$util.isEmpty(this.getLoginInfo)) {
|
|
|
- if (this.init) {
|
|
|
- this.init()
|
|
|
- }
|
|
|
+ console.log(uni.getStorageSync('HOME_STATUS_STROAGE_SHOW'), 'this.shopAdminId', this.getLoginInfo, this.getLoginInfo.openShop)
|
|
|
+ if (uni.getStorageSync('HOME_STATUS_STROAGE_SHOW') == 0) {
|
|
|
+ this.AUTHORITY_SHOW = true;
|
|
|
+ uni.hideTabBar()
|
|
|
}
|
|
|
if (this.$util.isEmpty(this.getLoginInfo)) {
|
|
|
wxLoginFn(true).then(res => {
|
|
|
@@ -67,6 +64,7 @@ export default {
|
|
|
this.AUTHORITY_SHOW = true
|
|
|
uni.hideTabBar()
|
|
|
uni.removeStorageSync('HOME_STATUS_STROAGE_SHOW')
|
|
|
+ uni.removeStorageSync('HOME_REFRESH')
|
|
|
uni.setStorageSync('OPEN_SHOP_ID', res.data.admin.openShop)
|
|
|
} else {
|
|
|
this.AUTHORITY_SHOW = false;
|
|
|
@@ -80,6 +78,19 @@ export default {
|
|
|
this.init()
|
|
|
}
|
|
|
})
|
|
|
+ }
|
|
|
+ },
|
|
|
+ onShow(){
|
|
|
+ if (isLogin()&&!this.$util.isEmpty(this.getLoginInfo)) {
|
|
|
+ if (this.init) {
|
|
|
+ this.init()
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if (uni.getStorageSync('HOME_REFRESH') == '1') {
|
|
|
+ this.MODEL_TITLE = '已申请'
|
|
|
+ this.MODEL_BTN_TEXT = '查看申请进度'
|
|
|
+ this.AUTHORITY_SHOW = true
|
|
|
+ uni.hideTabBar()
|
|
|
}
|
|
|
},
|
|
|
methods: {
|