This commit is contained in:
魏啾
2024-06-07 17:41:05 +08:00
parent 5a16a5199e
commit 02cbc93a14

View File

@@ -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(); //导航栏
});