广告弹窗相关更新
This commit is contained in:
@@ -338,7 +338,6 @@
|
||||
},
|
||||
async onShow() {
|
||||
// 判断显示那个页面
|
||||
|
||||
if (uni.cache.get('shopUser') && uni.cache.get('token')) {
|
||||
this.showindex = false
|
||||
uni.cache.set('types', 'index');
|
||||
@@ -351,10 +350,9 @@
|
||||
uni.cache.set('shopUserInfo',this.usershopUserinfo)
|
||||
}
|
||||
this.loginwxuserInfo() //个人信息接口
|
||||
if ( !uni.cache.get('forceUpdate') ) {
|
||||
if ( uni.cache.get('forceUpdate') == 1) {
|
||||
this.forceUpdate = !this.forceUpdate;
|
||||
}
|
||||
uni.cache.set('forceUpdate',false)
|
||||
this.getShopExtend()
|
||||
this.timersetInterval = '0'
|
||||
} else {
|
||||
|
||||
@@ -62,18 +62,22 @@
|
||||
methods: {
|
||||
scanCodehandle(i) {
|
||||
console.log(1)
|
||||
setTimeout(()=>{
|
||||
uni.cache.set('forceUpdate',2)
|
||||
},200)
|
||||
if (i == 0) {
|
||||
uni.scanCode({
|
||||
success: (res) => {
|
||||
let tableCode = this.getQueryString(decodeURIComponent(res.result), 'code')
|
||||
uni.cache.set('tableCode', tableCode)
|
||||
if (tableCode) {
|
||||
uni.cache.set('forceUpdate',true)
|
||||
uni.pro.navigateTo('order_food/order_food', {
|
||||
// shopId_id: uni.cache.get('shopUser'),
|
||||
})
|
||||
}
|
||||
|
||||
},
|
||||
fail: () => {
|
||||
}
|
||||
})
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user