11
This commit is contained in:
@@ -289,6 +289,9 @@
|
||||
});
|
||||
},
|
||||
onUnload() {
|
||||
this.socketSendMsg({ //定义socket数据传参
|
||||
"type": "close", //“addcart:添加购物车,create0rder:生成订单,clearCart:庆康购物车”,
|
||||
})
|
||||
this.socketTicket.Close()
|
||||
uni.$off('message')
|
||||
},
|
||||
@@ -297,7 +300,7 @@
|
||||
if (uni.cache.get('token') && uni.cache.get('tableCode')) {
|
||||
this.productqueryShopIdByTableCode() //获取shop User id
|
||||
}
|
||||
}, 1000)
|
||||
}, 500)
|
||||
},
|
||||
methods: {
|
||||
// 单独获取他的shopUserid
|
||||
@@ -321,6 +324,9 @@
|
||||
icon: "none",
|
||||
})
|
||||
if (msg.msg == '桌码不存在') { //卓码不存在直接退出
|
||||
this.socketSendMsg({ //定义socket数据传参
|
||||
"type": "close", //“addcart:添加购物车,create0rder:生成订单,clearCart:庆康购物车”,
|
||||
})
|
||||
this.socketTicket.Close()
|
||||
uni.$off('message')
|
||||
uni.navigateBack()
|
||||
|
||||
Reference in New Issue
Block a user