From d71f7d78b3eedb1c86975cb6611949c39bc7b8cc Mon Sep 17 00:00:00 2001 From: hequan_waynaqua <1669738430@qq.com> Date: Mon, 11 Jan 2021 10:19:35 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8B=E5=8D=95=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/order/confirm/modules/ListItem.vue | 20 +- src/views/order/list/index.vue | 6 +- src/views/order/pay/index.vue | 221 ++++++++++--------- 3 files changed, 136 insertions(+), 111 deletions(-) diff --git a/src/views/order/confirm/modules/ListItem.vue b/src/views/order/confirm/modules/ListItem.vue index b3c69d0..c14ecc7 100644 --- a/src/views/order/confirm/modules/ListItem.vue +++ b/src/views/order/confirm/modules/ListItem.vue @@ -4,12 +4,17 @@ 熊猫商城自营 -
+
-

{{ item.goodsName }}

+

+ {{ item.goodsName }} +

- {{ specification }} + {{ specification }}

@@ -33,7 +38,7 @@ { - const { orderId } = res.map - this.$router.push({ name: 'OrderPay', params: { orderId }}) + const { orderSn, actualPrice } = res.map + this.$router.push({ + name: 'OrderPay', + params: { orderSn, actualPrice } + }) }) } } diff --git a/src/views/order/list/index.vue b/src/views/order/list/index.vue index 5e94ace..63bea47 100644 --- a/src/views/order/list/index.vue +++ b/src/views/order/list/index.vue @@ -65,7 +65,7 @@ v-if="el.handleOption.pay" size="small" type="danger" - @click.stop="toPay(el.id)" + @click.stop="toPay(el.orderSn, el.actualPrice)" >去支付 {}) }, commentOrder(id) {}, - toPay(id) { - this.$router.push({ name: 'OrderPay', params: { orderId: id }}) + toPay(orderSn, actualPrice) { + this.$router.push({ name: 'OrderPay', params: { orderSn, actualPrice }}) }, handleTabClick() { this.page = 0 diff --git a/src/views/order/pay/index.vue b/src/views/order/pay/index.vue index e5e760d..c03f07b 100644 --- a/src/views/order/pay/index.vue +++ b/src/views/order/pay/index.vue @@ -2,12 +2,14 @@
- 请在半小时内完成付款,否则系统自动取消订单 + 请在半小时内完成付款,否则系统自动取消订单 - + - {{ order.actualPrice | yuan }} + {{ actualPrice | yuan }} @@ -17,13 +19,23 @@ @@ -31,12 +43,21 @@
- 去支付 + 去支付
@@ -209,11 +226,11 @@ $mb2vw: 2vw; background: #f5f5f5; .van-notice-bar { - margin-bottom: $mb2vw + margin-bottom: $mb2vw; } .payment_group { - margin-bottom: $mb2vw + margin-bottom: $mb2vw; } .pay_submit {