This commit is contained in:
魏啾
2024-05-28 15:57:18 +08:00
parent eb99040703
commit c6c2680993

View File

@@ -282,9 +282,6 @@
uni.reLaunch({ uni.reLaunch({
url: '/pages/login/login?type=' + 0 url: '/pages/login/login?type=' + 0
}); });
// uni.pro.navigateTo('login/login', {
// type: 0
// })
} }
uni.$on('message', this.getMessage) uni.$on('message', this.getMessage)
this.$nextTick(() => { this.$nextTick(() => {
@@ -296,9 +293,11 @@
uni.$off('message') uni.$off('message')
}, },
onShow() { onShow() {
if (uni.cache.get('token') && uni.cache.get('tableCode')) { setTimeout(() => {
this.productqueryShopIdByTableCode() //获取shop User id if (uni.cache.get('token') && uni.cache.get('tableCode')) {
} this.productqueryShopIdByTableCode() //获取shop User id
}
}, 1000)
}, },
methods: { methods: {
// 单独获取他的shopUserid // 单独获取他的shopUserid