|
|
@@ -37,13 +37,6 @@ export default {
|
|
|
}
|
|
|
uni.setStorageSync('currentQuery', JSON.stringify(option))
|
|
|
console.log(uni.getStorageSync('SHOP_ADMIN_STROAGE_SHOW'),'this.shopAdminId', this.getLoginInfo, this.getLoginInfo.openShop)
|
|
|
- if (uni.getStorageSync('SHOP_ADMIN_STROAGE_SHOW') == '0') {
|
|
|
- this.AUTHORITY_SHOW = true
|
|
|
- } else if (this.getLoginInfo.openShop == '2') {
|
|
|
- this.MODEL_TITLE = '已申请'
|
|
|
- this.MODEL_BTN_TEXT = '查看申请进度'
|
|
|
- this.AUTHORITY_SHOW = true
|
|
|
- }
|
|
|
if (this.$util.isEmpty(this.getLoginInfo)) {
|
|
|
wxLoginFn(true).then(res => {
|
|
|
//客户可以访问的地址
|
|
|
@@ -60,13 +53,12 @@ export default {
|
|
|
console.log('res.data.damin', res.data.admin.openShop)
|
|
|
if (res.data.shopAdminId == '0' && res.data.admin.openShop == '1') {
|
|
|
this.AUTHORITY_SHOW = true;
|
|
|
- uni.setStorageSync('SHOP_ADMIN_STROAGE_SHOW', res.data.shopAdminId)
|
|
|
+ uni.hideTabBar()
|
|
|
} else if (res.data.admin.openShop == '2' && res.data.shopAdminId == '0') {
|
|
|
this.MODEL_TITLE = '已申请'
|
|
|
this.MODEL_BTN_TEXT = '查看申请进度'
|
|
|
this.AUTHORITY_SHOW = true
|
|
|
- uni.removeStorageSync('SHOP_ADMIN_STROAGE_SHOW')
|
|
|
- uni.setStorageSync('OPEN_SHOP_ID', res.data.admin.openShop)
|
|
|
+ uni.hideTabBar()
|
|
|
}
|
|
|
}
|
|
|
getUser(true)
|
|
|
@@ -148,8 +140,6 @@ export default {
|
|
|
...subRes.data.admin,
|
|
|
...subRes.data
|
|
|
})
|
|
|
- uni.removeStorageSync('SHOP_ADMIN_STROAGE_SHOW')
|
|
|
- uni.removeStorageSync('OPEN_SHOP_ID')
|
|
|
this.AUTHORITY_SHOW = false
|
|
|
//启动更新逻辑 shish 2020.5.18
|
|
|
if (subRes.data.update == 1) {
|