代码优化

This commit is contained in:
GaoHao
2025-03-26 17:18:49 +08:00
parent 656793dae2
commit 5a655ba09e
9 changed files with 6 additions and 15 deletions

View File

@@ -325,7 +325,7 @@
let msg = JSON.parse(res);
let cartItem;
let cartArr = [];
console.log("onMessage===",msg)
// console.log("onMessage===",msg)
if( msg.msg_id ){
websocketUtil.send(JSON.stringify({
type: 'receipt',
@@ -347,7 +347,7 @@
switch (msg.operate_type) {
case 'onboc_init':
cars.length = 0
console.log("购物车信息onboc_init===",msg)
// console.log("购物车信息onboc_init===",msg)
if( !data.table.tableCode ){
data.table.tableCode = msg.table_code
uni.setStorageSync("table_code",msg.table_code)