更改订单
This commit is contained in:
@@ -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') {
|
||||
|
||||
Reference in New Issue
Block a user