From 4c8e2ba4b6a726f44738b8c5778cbf77ff91b0b4 Mon Sep 17 00:00:00 2001 From: ghusermoon <2673031505@qq.com> Date: Thu, 20 Aug 2020 11:41:58 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BD=BF=E7=94=A8=E4=BC=98=E6=83=A0=E5=88=B8?= =?UTF-8?q?=E4=BB=B7=E6=A0=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pageC/cart/ConfirmOrder.vue | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pageC/cart/ConfirmOrder.vue b/pageC/cart/ConfirmOrder.vue index 8e64769..b74bb04 100644 --- a/pageC/cart/ConfirmOrder.vue +++ b/pageC/cart/ConfirmOrder.vue @@ -309,7 +309,7 @@ export default { }, setTotalPrice() { const goods = this.orderInfo.store_goods_total; - let freight = 0, price = 0, minPrice; + let [freight, price, minPrice] = [0, 0, 0]; // 运费 for (const key in this.freight) { if (this.freight.hasOwnProperty(key)) { @@ -346,7 +346,9 @@ export default { if(JSON.stringify(this.choiceCoupon) != '{}') price -= Number(this.choiceCoupon.voucher_price); // 每个店铺最低付款 0.01 if(price <= minPrice) price = minPrice; - // console.log(price); + console.log("minPrice" + minPrice); + console.log("freight:" + freight); + console.log("price:" + price); this.totalPrice = (price + freight).toFixed(2); }, setDelivery(index) {