|
|
@@ -18,7 +18,7 @@ export default {
|
|
|
pageTo: pageTo,
|
|
|
AUTHORITY_SHOW: false,
|
|
|
shopAdminId: null,
|
|
|
- MODEL_TITLE: '您还没有网店哦',
|
|
|
+ MODEL_TITLE: '您还没有开店',
|
|
|
MODEL_BTN_TEXT: '免费申请'
|
|
|
}
|
|
|
},
|
|
|
@@ -36,14 +36,6 @@ 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, 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 => {
|
|
|
//客户可以访问的页面
|
|
|
@@ -59,11 +51,13 @@ export default {
|
|
|
//客户访问不能查看的页面跳转去官网
|
|
|
if (res.data.shopAdminId == '0' && res.data.admin.openShop == '1') {
|
|
|
this.AUTHORITY_SHOW = true;
|
|
|
+ uni.hideTabBar()
|
|
|
uni.setStorageSync('SHOP_ADMIN_STROAGE_SHOW', res.data.shopAdminId)
|
|
|
} else if (res.data.admin.openShop == '2' && res.data.shopAdminId == '0') {
|
|
|
this.MODEL_TITLE = '已申请'
|
|
|
this.MODEL_BTN_TEXT = '查看申请进度'
|
|
|
this.AUTHORITY_SHOW = true
|
|
|
+ uni.hideTabBar()
|
|
|
uni.removeStorageSync('SHOP_ADMIN_STROAGE_SHOW')
|
|
|
uni.setStorageSync('OPEN_SHOP_ID', res.data.admin.openShop)
|
|
|
}
|