From cb577d265ea0b1fd75326ba327ca24e5690ea8cf Mon Sep 17 00:00:00 2001 From: duan <1004387497@qq.com> Date: Tue, 4 Jun 2024 09:53:37 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- framework/0-conf.js | 8 ++++---- pages/order_food/order_food.vue | 9 ++++++--- 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/framework/0-conf.js b/framework/0-conf.js index f0bd93e..409f63a 100644 --- a/framework/0-conf.js +++ b/framework/0-conf.js @@ -16,12 +16,12 @@ const baseUrl = debug ? proxyApi : "https://wxcashiertest.sxczgkj.cn/cashierServ const baseUrlwws = 'ws://cashier.sxczgkj.cn/cashierService' // #endif // #ifdef APP || MP-WEIXIN -const baseUrl = 'https://cashier.sxczgkj.cn/cashierService'// 线上 -const baseUrlwws = 'wss://cashier.sxczgkj.cn/cashierService' // 线上 +// const baseUrl = 'https://cashier.sxczgkj.cn/cashierService'// 线上 +// const baseUrlwws = 'wss://cashier.sxczgkj.cn/cashierService' // 线上 // const baseUrl = 'http://192.168.2.42:9888/cashierService'// 测试-w // const baseUrlwws ='ws://192.168.2.42:9888/cashierService' // 测试-w -// const baseUrl = 'https://wxcashiertest.sxczgkj.cn/cashierService'// 测试 -// const baseUrlwws ='wss://wxcashiertest.sxczgkj.cn/cashierService' // 测试 +const baseUrl = 'https://wxcashiertest.sxczgkj.cn/cashierService'// 测试 +const baseUrlwws ='wss://wxcashiertest.sxczgkj.cn/cashierService' // 测试 // #endif diff --git a/pages/order_food/order_food.vue b/pages/order_food/order_food.vue index 7ab2d2e..d1ff40f 100644 --- a/pages/order_food/order_food.vue +++ b/pages/order_food/order_food.vue @@ -391,9 +391,10 @@ msg.data.forEach((item, index, arr) => { //初始化skuidname的数据 选择第一个 if (item.skuId == this.skuidsearch) { this.$set(this, 'amountcartNumber', item.number) - } else { - this.$set(this, 'amountcartNumber', 0) - } + } + // else { + // this.$set(this, 'amountcartNumber', 0) + // } }) } else { this.$set(this, 'amountcartNumber', 0) @@ -527,6 +528,7 @@ return res }) this.specifications.tagSnap.forEach((val, index, arr) => { //初始化skuidname的数据 选择第一个 + console.log(val.children[0],'skuidnam是否为空1') this.skuidname.push(val.children[0]) }) try { @@ -539,6 +541,7 @@ } }, async morloe(e, index, index1, item) { + console.log(index,'skuidnam是否为空2') this.specifications.tagSnap[index]['start'] = index1 this.skuidname.splice(index, 1, e) //替换skuidname的数据 this.hodgepodge(item, 2)