From bf8b960793af9e08d7c7ed07abd70b4fb5530549 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E8=90=BD=E6=97=A5=E6=99=9A=E9=A3=8E?= <1811466536@qq.com>
Date: Wed, 8 Nov 2023 17:22:29 +0800
Subject: [PATCH] =?UTF-8?q?=E5=85=A8=E9=83=A8=E8=AE=A2=E5=8D=95=E6=95=B0?=
=?UTF-8?q?=E6=8D=AE=E5=AF=B9=E6=8E=A5?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
pages/order/list.vue | 49 ++++++++++++++++++++++----------------------
1 file changed, 25 insertions(+), 24 deletions(-)
diff --git a/pages/order/list.vue b/pages/order/list.vue
index c0ec7b1..4ced7c6 100644
--- a/pages/order/list.vue
+++ b/pages/order/list.vue
@@ -7,19 +7,19 @@
+ :key="order.id" @tap="onOrderDetail(order.no)">
-
+
-
+ -->
-
+
+
- 总金额:
-
- ¥{{ order.order_amount }}
- +
+ 共{{count}}件商品,总金额:
+
+ ¥{{ order.payPrice/100 }}
+ +
@@ -96,7 +96,7 @@
-->
-
@@ -146,7 +146,7 @@
+ -->
@@ -200,23 +200,23 @@
const tabMaps = [{
name: '全部',
- value: 'all',
+ // value: 'all',
},
{
name: '待付款',
- value: 'unpaid',
+ value: 0,
},
{
name: '待发货',
- value: 'nosend',
+ value: 10,
},
{
name: '待收货',
- value: 'noget',
+ value: 20,
},
{
name: '待评价',
- value: 'nocomment',
+ value: 30,
},
];
@@ -399,9 +399,10 @@
async function getOrderList(page = 1, list_rows = 5) {
state.loadStatus = 'loading';
let res = await sheep.$api.order.list({
- type: tabMaps[state.currentTab].value,
- pageNo: list_rows,
+ status: tabMaps[state.currentTab].value,
+ pageSize: list_rows,
pageNo: page,
+ commentStatus: tabMaps[state.currentTab].value==30?false:null
});
state.error = res.code;
if (res.code === 0) {