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