From 4171c8beae1bbc3a9e749f8a3ccdc90bbd91bd67 Mon Sep 17 00:00:00 2001
From: mullins <476823686@qq.com>
Date: Thu, 18 Jun 2020 19:51:23 +0800
Subject: [PATCH] =?UTF-8?q?=E5=80=92=E8=AE=A1=E6=97=B6=E6=B7=BB=E5=8A=A0?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/pages/confirmOrder/confirmOrder.vue | 201 +++++++++++++++---------------
src/pages/myOrderPaying/myOrderPaying.vue | 5 +-
2 files changed, 104 insertions(+), 102 deletions(-)
diff --git a/src/pages/confirmOrder/confirmOrder.vue b/src/pages/confirmOrder/confirmOrder.vue
index 3d33064..c8317c2 100644
--- a/src/pages/confirmOrder/confirmOrder.vue
+++ b/src/pages/confirmOrder/confirmOrder.vue
@@ -71,117 +71,116 @@
>
非常戴镜
-
-
-
-
-
- {{item.p_name}}
-
-
- ¥{{Number(item.nowPrice) }}
- ¥{{item.oldPrice}}
-
-
- -
- {{checkedCartLst[index].num}}
- +
+
+
+
+
+
+ {{item.p_name}}
+
+
+ ¥{{Number(item.nowPrice) }}
+ ¥{{item.oldPrice}}
+
+
+ -
+ {{checkedCartLst[index].num}}
+ +
+
-
-
- 规格
-
- {{item.sku_name}}/
-
-
- 使用人
- {{item.peopleName}}
-
- 配送方式 快递
- 买家留言
-
+
+ 规格
+
+ {{item.sku_name}}/
+
+
+ 使用人
+ {{item.peopleName}}
+
+ 配送方式 快递
+ 买家留言
+
+
-
-
-
-
-
-
- {{goodInfo.p_name}}
-
-
- ¥{{buyItem.real_price}}
- ¥{{buyItem.out_price}}
-
-
- -
- {{count}}
- +
+
+
+
+
+
+
+ {{goodInfo.p_name}}
+
+
+ ¥{{buyItem.real_price}}
+ ¥{{buyItem.out_price}}
+
+
+ -
+ {{count}}
+ +
+
-
-
- 规格
-
- {{attrList[index].attr[item].name}}/
-
-
- 使用人
- {{name}}
-
- 配送方式 快递
- 买家留言
-
+
+ 规格
+
+ {{attrList[index].attr[item].name}}/
+
+
+ 使用人
+ {{name}}
+
+ 配送方式 快递
+ 买家留言
+
+
-
+
+
diff --git a/src/pages/myOrderPaying/myOrderPaying.vue b/src/pages/myOrderPaying/myOrderPaying.vue
index 22dc83b..015e587 100644
--- a/src/pages/myOrderPaying/myOrderPaying.vue
+++ b/src/pages/myOrderPaying/myOrderPaying.vue
@@ -218,7 +218,10 @@ export default {
},
// 订单付款时间
getLeftTime () {
- return this.orderInfo.order_info ? this.orderInfo.order_info.lefttime : 1800
+ const orderTime = new Date(this.orderInfo.pay_time.replace(/-/g, '/')).getTime()
+ const nowTime = new Date().getTime()
+ console.log('getLeftTime', 1800 - (nowTime - orderTime))
+ return 1800 - (nowTime - orderTime) / 1000
},
// 计算总优惠额
totalDiscount() {
--
2.0.0