更改订单

This commit is contained in:
魏啾
2024-06-05 17:15:28 +08:00
parent 5ea2ab4aa9
commit 1e9797f09a
5 changed files with 62 additions and 49 deletions

View File

@@ -323,16 +323,26 @@
let res = await this.api.productqueryShopIdByTableCode({
code: uni.cache.get('tableCode')
})
try {
if (res.data) {
let time = new Date
console.log(time, '时间戳')
uni.cache.set('shopUser', res.data)
this.handlemessage()
}
} catch (e) {
//TODO handle the exception
if (res.code == 0) {
let time = new Date
console.log(time, '时间戳')
uni.cache.set('shopUser', res.data)
this.handlemessage()
}else{
setTimeout(()=>{
uni.pro.switchTab('index/index')
},1000)
}
// try {
// if (res.data) {
// let time = new Date
// console.log(time, '时间戳')
// uni.cache.set('shopUser', res.data)
// this.handlemessage()
// }
// } catch (e) {
// //TODO handle the exception
// }
},
getMessage(msg) { //wss 回显数据
if (msg.status != 'success') {