From 32f90300c8dd1fcf32945fe44cbd8ea326efc4e3 Mon Sep 17 00:00:00 2001 From: dzq Date: Wed, 2 Jul 2025 15:41:19 +0800 Subject: [PATCH] =?UTF-8?q?feat(rental):=20=E6=96=B0=E5=A2=9E=E6=88=91?= =?UTF-8?q?=E7=9A=84=E6=9F=9C=E5=AD=90=E9=A1=B5=E9=9D=A2=E5=8F=8A=E7=9B=B8?= =?UTF-8?q?=E5=85=B3=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 添加我的柜子页面路由和导航入口 - 实现用户租赁柜子列表展示功能 - 优化订单列表样式和商品信息展示 - 在用户信息中增加ab98User字段支持 - 统一订单获取接口参数格式 --- src/common/apis/shop/type.ts | 1 + src/pages/approval/submit.vue | 2 +- src/pages/me/index.vue | 7 +- src/pages/order/Success.vue | 2 +- src/pages/order/components/OrderList.vue | 11 ++- src/pages/order/index.vue | 3 +- src/pages/rental/index.vue | 89 ++++-------------------- src/pinia/stores/wx.ts | 3 + src/router/index.ts | 21 ++++++ 9 files changed, 53 insertions(+), 86 deletions(-) diff --git a/src/common/apis/shop/type.ts b/src/common/apis/shop/type.ts index df1b7c3..4f0c723 100644 --- a/src/common/apis/shop/type.ts +++ b/src/common/apis/shop/type.ts @@ -163,6 +163,7 @@ export interface GetBalanceResponse { useBalance: number /** 借呗总额 */ balanceLimit: number + ab98User: ab98UserDTO; } export interface QyLoginDTO { diff --git a/src/pages/approval/submit.vue b/src/pages/approval/submit.vue index 346a78e..f193821 100644 --- a/src/pages/approval/submit.vue +++ b/src/pages/approval/submit.vue @@ -126,7 +126,7 @@ const handleSubmit = async () => { const { code, data } = await submitApprovalApi(formData.value) if (code === 0) { - orderStore.getOrders(wxStore.corpid, wxStore.openid, wxStore.qyUserId); + orderStore.getOrders(wxStore.corpid, wxStore.openid, wxStore.qyUserId, 0); try { await showConfirmDialog({ diff --git a/src/pages/me/index.vue b/src/pages/me/index.vue index 8dd2c1a..ee7796a 100644 --- a/src/pages/me/index.vue +++ b/src/pages/me/index.vue @@ -90,6 +90,12 @@ wxStore.refreshBalance(); 订单列表 + +
+ + 我的柜子 +
+
- + @@ -72,7 +72,7 @@ const getStatusText = (status: number) => { >
- {{ goods.goodsInfo.goodsName }} + {{ goods.goodsInfo?.goodsName }}
状态: {{ getStatusText(order.status) }} @@ -109,7 +109,7 @@ const getStatusText = (status: number) => { } .order-item { - margin-bottom: 20px; + margin-bottom: 8px; border: 1px solid #eee; border-radius: 8px; overflow: hidden; @@ -118,7 +118,7 @@ const getStatusText = (status: number) => { .order-header { display: flex; justify-content: space-between; - padding: 10px 15px; + padding: 10px 15px 5px 15px; background-color: #f5f5f5; border-bottom: 1px solid #eee; } @@ -130,7 +130,6 @@ const getStatusText = (status: number) => { .goods-item { display: flex; padding: 10px 0; - border-bottom: 1px solid #f5f5f5; } goods-item:last-child { diff --git a/src/pages/order/index.vue b/src/pages/order/index.vue index f7c2acf..09b6e96 100644 --- a/src/pages/order/index.vue +++ b/src/pages/order/index.vue @@ -97,8 +97,7 @@ async function handleOpenCabinet(item: OrderGoods) {