From b20042135e8a62fe7945a0712e64247344581141 Mon Sep 17 00:00:00 2001 From: liutong <836164388@qq.com> Date: Thu, 12 Dec 2024 16:37:26 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=AE=A2=E5=8D=95=E8=AF=A6?= =?UTF-8?q?=E6=83=85=E6=8A=A5=E9=94=99=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/order/index.vue | 9 ++++++++- pages/order_details.vue | 21 ++++++++++++--------- 2 files changed, 20 insertions(+), 10 deletions(-) diff --git a/pages/order/index.vue b/pages/order/index.vue index ddc25b4..26e1333 100644 --- a/pages/order/index.vue +++ b/pages/order/index.vue @@ -179,7 +179,14 @@ v-if="!(iSdefaults == 5)" align="center" width="150" - > + > + + + 我的订单 - {{ orderData.order_status_name }} + 待发货 + {{ orderData.order_status_name }} @@ -96,7 +97,7 @@ " >
商品金额
-
¥{{ orderData.pay.total_money }}
+
¥{{ payInfo.total_money }}
已付金额
-
¥{{ orderData.pay.received_money }}
+
¥{{ payInfo.received_money }}
未付金额
-
¥{{ orderData.pay.pay_money }}
+
¥{{ payInfo.pay_money }}
@@ -250,7 +251,7 @@ -
+
继续付款
@@ -416,10 +417,10 @@ v-if="payState == 1" > - 待支付金额:¥{{ orderData.pay.pay_money }} + 待支付金额:¥{{ payInfo.pay_money }} 预存款支付(当前余额{{ userInfo.balance }},本次抵扣{{ - orderData.pay.pay_money + payInfo.pay_money }}) @@ -428,7 +429,7 @@ @@ -612,6 +613,7 @@ export default { userInfo: JSON.parse(localStorage.getItem("userInfo")), imgUrl: Setting.uplodBaseURL, orderData: {}, + payInfo: {},//订单支付信息 // 提示弹框配置 dialogCon: {}, dialogType: "", //弹框当前打开的弹框 @@ -682,6 +684,7 @@ export default { .then((res) => { console.log(res.data); this.orderData = res.data; + this.payInfo = res.data.pay; this.tableData = res.data.order_goods; this.tableData.map((item) => { item.buyer_messag = this.orderData.buyer_message; @@ -786,7 +789,7 @@ export default { this.paymentForm.is_balance = false; this.Tobepaid = Number(this.orderData.pay_money); } else if (val) { - let num = Number(this.userInfo.balance) - Number(this.orderData.pay.pay_money); + let num = Number(this.userInfo.balance) - Number(this.payInfo.pay_money); this.paymentForm.is_balance = true; if (num < Number(this.userInfo.balance)) { this.Tobepaid = 0;