From 1e9797f09a364b3cae2c540770bed3fd71b61108 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=AD=8F=E5=95=BE?= <1144797966@qq.com> Date: Wed, 5 Jun 2024 17:15:28 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=94=B9=E8=AE=A2=E5=8D=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- framework/0-conf.js | 8 ++-- pages/index/index.vue | 7 +++- pages/login/login.vue | 2 +- pages/order/order.vue | 66 ++++++++++++++++----------------- pages/order_food/order_food.vue | 28 +++++++++----- 5 files changed, 62 insertions(+), 49 deletions(-) diff --git a/framework/0-conf.js b/framework/0-conf.js index 71ffc4b..560a293 100644 --- a/framework/0-conf.js +++ b/framework/0-conf.js @@ -16,11 +16,11 @@ 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 ='wss://192.168.2.42:9999/cashierService' // 测试-w -const baseUrl = 'https://wxcashiertest.sxczgkj.cn/cashierService'// 测试 +// const baseUrlwws ='wss://192.168.2.42:9999/cashierService' // 测试-w +// const baseUrl = 'https://wxcashiertest.sxczgkj.cn/cashierService'// 测试 // const baseUrlwws ='wss://wxcashiertest.sxczgkj.cn/cashierService' // 测试 // #endif diff --git a/pages/index/index.vue b/pages/index/index.vue index 120ddba..82abbb3 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -93,7 +93,8 @@ - + @@ -509,7 +510,9 @@ if (item.isChild) { this.form.type = '' //先清空后赋值 - this.showproductlist = true + setTimeout(()=> { + this.showproductlist = true + }, 500); } else { this.showproductlist = false // 以下没有多选处理 diff --git a/pages/login/login.vue b/pages/login/login.vue index 42823a5..e5db7b8 100644 --- a/pages/login/login.vue +++ b/pages/login/login.vue @@ -135,7 +135,7 @@ console.log(e) try { - this.types = e.type + this.types = e.types } catch (e) { //TODO handle the exception } diff --git a/pages/order/order.vue b/pages/order/order.vue index e65c961..87b2898 100644 --- a/pages/order/order.vue +++ b/pages/order/order.vue @@ -2,38 +2,39 @@ - - 团购订单 - - + 到店订单 + + 团购订单 + - - - {{ item.name }} + + + {{ item.name }} + + + + + + {{ item.name }} - - - - {{ item.name }} - - + src="https://czg-qr-order.oss-cn-beijing.aliyuncs.com/index/today/dgs.png" + mode="aspectFill"> - + 快递 @@ -46,8 +47,8 @@ 待发货 - - + + 订单完成 @@ -98,7 +99,7 @@ - + @@ -117,10 +118,8 @@ 实付:¥{{item.payAmount}} - - + + { + 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') {