From b49ee49312deb82b73a09a61848daf57bfd41c29 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9C13713575202=E2=80=9D?= <“1345916905@qq.com”> Date: Mon, 14 Apr 2025 16:47:58 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=87=E4=BB=BD=E5=89=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/views/userCenter/shoppingCart.vue | 4 +- .../src/views/userCenter/userOrders.vue | 57 ++++++++++++++++--- 2 files changed, 50 insertions(+), 11 deletions(-) diff --git a/sub-operation-service/src/views/userCenter/shoppingCart.vue b/sub-operation-service/src/views/userCenter/shoppingCart.vue index 457ec6b..032d4fb 100644 --- a/sub-operation-service/src/views/userCenter/shoppingCart.vue +++ b/sub-operation-service/src/views/userCenter/shoppingCart.vue @@ -249,12 +249,12 @@ const doSingleDel = (indexP, index) => { width: 100%; .page-content-warp { width: 100%; - height: calc(100vh - 116px); + height: calc(100vh - 135px); position: relative; background: $color-fff; border-radius: 16px; overflow: hidden; - margin: 16px 0; + margin: 16px 0 0 16px; .fix-top, .fix-bottom { position: absolute; diff --git a/sub-operation-service/src/views/userCenter/userOrders.vue b/sub-operation-service/src/views/userCenter/userOrders.vue index 2550f52..d3af6d8 100644 --- a/sub-operation-service/src/views/userCenter/userOrders.vue +++ b/sub-operation-service/src/views/userCenter/userOrders.vue @@ -32,23 +32,23 @@
-
+
-
+
{{ g.title || '--' }}
-
{{ g.price }} / {{ g.unit }} * {{ g.num }}
-
-
{{ (g.price * g.num).toFixed(2) }}
+
{{ g.price }} / {{ g.unit }} * {{ g.num }}
+
+
{{ (g.price * g.num + g.carriage).toFixed(2) }}
( 含运费{{ g.carriage.toFixed(2) }})
@@ -56,7 +56,17 @@
-
+
+
+ 立即付款 +
+
+ 取消订单 +
+
已发货
+ + +
@@ -88,7 +98,8 @@ let orderList = reactive([ id: '1', orderNo: 'YH8888888888', createTime: '2025.01.01 10:00:00', - payAmount: 147, + payAmount: 81, + status: 0, goodlist: [ { id: '001', title: '耿马镇 原生态 有机 西红柿', price: 4.9, unit: '份', num: 10, carriage: 6 }, { id: '002', title: '耿马镇 原生态 有机 西蓝花', price: 2.6, unit: '份', num: 10, carriage: 0 }, @@ -98,14 +109,28 @@ let orderList = reactive([ id: '2', orderNo: 'YH8888888889', createTime: '2025.02.01 10:00:00', - payAmount: 147, + payAmount: 110, + status: 1, goodlist: [ { id: '001', title: '耿马镇 原生态 有机 西红柿', price: 4.8, unit: '份', num: 10, carriage: 6 }, { id: '002', title: '耿马镇 原生态 有机 西蓝花', price: 2.5, unit: '份', num: 10, carriage: 6 }, { id: '002', title: '耿马镇 原生态 有机 茄子', price: 2.5, unit: '份', num: 10, carriage: 0 }, ], }, + { + id: '3', + orderNo: 'YH8888888899', + createTime: '2025.02.01 10:00:00', + payAmount: 85, + status: 2, + goodlist: [ + { id: '001', title: '勐简镇 原生态 有机 西红柿', price: 4.8, unit: '份', num: 10, carriage: 6 }, + { id: '002', title: '勐简镇 原生态 有机 西蓝花', price: 2.5, unit: '份', num: 10, carriage: 6 }, + ], + }, ]); + +const doPay = () => {};