代码优化
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user