|
@@ -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()
|