11
This commit is contained in:
@@ -274,23 +274,18 @@
|
||||
this.countScrollTitle(e.scrollTop);
|
||||
},
|
||||
onLoad(e) {
|
||||
if (e.q) {
|
||||
let tableCode = this.getQueryString(decodeURIComponent(e.q), 'code')
|
||||
uni.cache.set('tableCode', tableCode)
|
||||
// this.scanCodehandle()
|
||||
}
|
||||
if (!uni.cache.get('token') && uni.cache.get('tableCode')) {
|
||||
uni.reLaunch({
|
||||
url: '/pages/login/login?types=' + 0
|
||||
});
|
||||
return false
|
||||
}
|
||||
if (e.q) {
|
||||
let tableCode = this.getQueryString(decodeURIComponent(e.q), 'code')
|
||||
uni.cache.set('tableCode', tableCode)
|
||||
}
|
||||
this.productqueryShopIdByTableCode() //获取shop User id
|
||||
uni.$on('message', this.getMessage)
|
||||
setTimeout(() => {
|
||||
if (uni.cache.get('token') && uni.cache.get('tableCode')) {
|
||||
this.productqueryShopIdByTableCode() //获取shop User id
|
||||
}
|
||||
}, 500)
|
||||
this.$nextTick(() => {
|
||||
this.countTitleTopNum(); //导航栏
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user