|
|
@@ -56,7 +56,7 @@ export default {
|
|
|
this.AUTHORITY_SHOW = true;
|
|
|
uni.hideTabBar()
|
|
|
uni.setStorageSync('HOME_STATUS_STROAGE_SHOW', res.data.shopAdminId)
|
|
|
- uni.setStorageSync('HOME_REFRESH', '1')
|
|
|
+ uni.setStorageSync('HOME_REFRESH', '2')
|
|
|
} else if (res.data.admin.openShop == '2' && res.data.shopAdminId == '0') {
|
|
|
this.MODEL_TITLE = '已申请'
|
|
|
this.MODEL_BTN_TEXT = '查看申请进度'
|
|
|
@@ -91,6 +91,12 @@ export default {
|
|
|
this.MODEL_BTN_TEXT = '查看申请进度'
|
|
|
this.AUTHORITY_SHOW = true
|
|
|
uni.hideTabBar()
|
|
|
+ }
|
|
|
+ if (uni.getStorageSync('HOME_REFRESH') == '2') {
|
|
|
+ this.MODEL_TITLE = '您还没有开店哦'
|
|
|
+ this.MODEL_BTN_TEXT = '免费申请'
|
|
|
+ this.AUTHORITY_SHOW = true
|
|
|
+ uni.hideTabBar()
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
@@ -121,14 +127,14 @@ export default {
|
|
|
}).catch(err => {})
|
|
|
}
|
|
|
},
|
|
|
- experienceFun (val) {
|
|
|
- console.log(val)
|
|
|
- if (this.$util.isEmpty(val)) {
|
|
|
+ experienceFun (experienceCode) {
|
|
|
+ console.log(experienceCode)
|
|
|
+ if (this.$util.isEmpty(experienceCode)) {
|
|
|
this.$msg('请输入体验码')
|
|
|
return false
|
|
|
}
|
|
|
/**姜枫 2021.04.30 小程序审核体验账号**/
|
|
|
- postWxCode({password: val}).then(subRes => {
|
|
|
+ postWxCode({experienceCode: experienceCode}).then(subRes => {
|
|
|
if (this.$util.isEmpty(subRes)) {
|
|
|
return false
|
|
|
}
|
|
|
@@ -155,28 +161,7 @@ export default {
|
|
|
uni.removeStorageSync('OPEN_SHOP_ID')
|
|
|
this.AUTHORITY_SHOW = false
|
|
|
uni.showTabBar()
|
|
|
- //启动更新逻辑 shish 2020.5.18
|
|
|
- if (subRes.data.update == 1) {
|
|
|
- const updateManager = wx.getUpdateManager()
|
|
|
- updateManager.onCheckForUpdate(function (res) {
|
|
|
- // 请求完新版本信息的回调
|
|
|
- console.log(res.hasUpdate)
|
|
|
- })
|
|
|
- updateManager.onUpdateReady(function () {
|
|
|
- wx.showModal({
|
|
|
- title: '更新提示',
|
|
|
- content: '新版本已经准备好,是否重启应用?',
|
|
|
- success(res) {
|
|
|
- if (res.confirm) {
|
|
|
- // 新的版本已经下载好,调用 applyUpdate 应用新版本并重启
|
|
|
- updateManager.applyUpdate()
|
|
|
- }
|
|
|
- }
|
|
|
- })
|
|
|
- })
|
|
|
- updateManager.onUpdateFailed(function () {})// 新版本下载失败
|
|
|
- return true;
|
|
|
- }
|
|
|
+
|
|
|
getUser(true)
|
|
|
//获取门店信息
|
|
|
this.setUserShopAll();
|
|
|
@@ -186,14 +171,7 @@ export default {
|
|
|
},
|
|
|
mounted() {
|
|
|
if (this.mInit) {
|
|
|
- // #ifdef H5
|
|
|
this.mInit()
|
|
|
- // #endif
|
|
|
- // #ifdef MP-WEIXIN
|
|
|
- // wxLoginFn().then(res => {
|
|
|
- // this.mInit()
|
|
|
- // })
|
|
|
- // #endif
|
|
|
}
|
|
|
}
|
|
|
}
|