From 1997a3ec8040df18890fe86ab3100399cbd9deb7 Mon Sep 17 00:00:00 2001 From: Enzo <1284707383@qq.com> Date: Thu, 1 Jul 2021 17:11:01 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E4=BC=98=E5=8C=96=E3=80=91=20?= =?UTF-8?q?=E4=B8=AA=E4=BA=BA=E4=B8=AD=E5=BF=83=E7=94=B5=E8=AF=9D=E6=A0=B7?= =?UTF-8?q?=E5=BC=8F=E4=BF=AE=E6=94=B9=20=E8=AE=A2=E5=8D=95=E7=8A=B6?= =?UTF-8?q?=E6=80=81=E6=8C=89=E9=92=AE=E4=BF=AE=E6=94=B9=20=E6=94=AF?= =?UTF-8?q?=E4=BB=98=E7=8A=B6=E6=80=81=E6=8C=89=E9=92=AE=E4=BF=AE=E6=94=B9?= =?UTF-8?q?=20=E8=AE=A2=E5=8D=95=E5=92=8C=E9=A6=96=E9=A1=B5=E5=9B=BE?= =?UTF-8?q?=E7=89=87=E6=98=BE=E7=A4=BA=E6=A0=BC=E5=BC=8F=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- manifest.json | 2 +- pages/contactService/index.vue | 2 +- pages/index/index.vue | 2 +- pages/order/confirm-atonce.vue | 4 +--- pages/order/confirm-order.vue | 21 ++++++++++++++++----- pages/order/index.vue | 8 ++++---- pages/order/order-details.vue | 8 ++++++-- pages/order/pay-success.vue | 6 +++--- pages/order/unpay-details.vue | 1 - 9 files changed, 33 insertions(+), 21 deletions(-) diff --git a/manifest.json b/manifest.json index 540de4d..8cb7e40 100644 --- a/manifest.json +++ b/manifest.json @@ -62,7 +62,7 @@ "quickapp" : {}, /* 小程序特有相关 */ "mp-weixin" : { - "appid" : "wxb35ef055a4dd8ad4", + "appid" : "wx1031981885c80917", "setting" : { "urlCheck" : false, "postcss" : true, diff --git a/pages/contactService/index.vue b/pages/contactService/index.vue index c052867..f232551 100644 --- a/pages/contactService/index.vue +++ b/pages/contactService/index.vue @@ -10,7 +10,7 @@ 客服电话 - {{ info.phone }} + {{ info.phone }} 联系地址 diff --git a/pages/index/index.vue b/pages/index/index.vue index 4599688..8a8a05b 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -6,7 +6,7 @@ - + {{ item.name }} diff --git a/pages/order/confirm-atonce.vue b/pages/order/confirm-atonce.vue index c451850..0e00d7a 100644 --- a/pages/order/confirm-atonce.vue +++ b/pages/order/confirm-atonce.vue @@ -111,9 +111,8 @@ this.order_id = e.order_id; this.goods_specs_id = e.goods_specs_id this.num = e.order_number - if(this.goods_id && this.goods_specs_id) { + if(this.goods_id && this.goods_specs_id && this.order_id) { this.getConfirmOrder() - this.submit() } }, @@ -189,7 +188,6 @@ }); }, pay(){ - console.log("this.order_id", this.order_id) this.$http(this.API.API_PAYMENT_DIRECT, {order_id: this.order_id}).then(res => { this.order_id = res.data.order_id uni.requestPayment({ diff --git a/pages/order/confirm-order.vue b/pages/order/confirm-order.vue index f60c81b..0910dc6 100644 --- a/pages/order/confirm-order.vue +++ b/pages/order/confirm-order.vue @@ -8,7 +8,7 @@ - + {{orderDetails.goods.name}} @@ -66,7 +66,8 @@ {{ total(num, orderDetails.goods.specs[0].selling_price) }} --> - @@ -132,7 +133,7 @@ methods: { changeNum(num) { if(num > this.limit) { - this.$msg('该商品限购数量'+this.limit) + this.$msg('该商品限购'+this.limit+'件') this.num = this.limit return }else if(num < 1) { @@ -155,7 +156,7 @@ if(this.num < this.limit) { this.num++ }else { - this.$msg('该商品限购数量'+this.limit) + this.$msg('该商品限购'+this.limit+'件') this.num = this.limit return } @@ -229,7 +230,6 @@ } }, pay(){ - console.log("this.order_id", this.order_id) this.$http(this.API.API_PAYMENT_DIRECT, {order_id: this.order_id}).then(res => { this.order_id = res.data.order_id uni.requestPayment({ @@ -267,6 +267,17 @@