hookehuyr

feat(订单): 添加退款相关状态和界面支持

在订单API中添加退款状态(13=退款中, 15=已退款, 17=退款失败)
在订单管理页面添加已退款标签页
1 /* 1 /*
2 * @Date: 2025-07-03 17:21:45 2 * @Date: 2025-07-03 17:21:45
3 * @LastEditors: hookehuyr hookehuyr@gmail.com 3 * @LastEditors: hookehuyr hookehuyr@gmail.com
4 - * @LastEditTime: 2025-07-31 15:50:33 4 + * @LastEditTime: 2025-08-04 15:24:12
5 * @FilePath: /jgdl/src/api/orders.js 5 * @FilePath: /jgdl/src/api/orders.js
6 * @Description: 文件描述 6 * @Description: 文件描述
7 */ 7 */
...@@ -23,7 +23,7 @@ const Api = { ...@@ -23,7 +23,7 @@ const Api = {
23 * @param page 页码,从0开始 23 * @param page 页码,从0开始
24 * @param page_size 每页数量 24 * @param page_size 每页数量
25 * @param type 列表类型。buy=我买的,sell=我卖的 25 * @param type 列表类型。buy=我买的,sell=我卖的
26 - * @param status 订单状态(3=待支付, 5=已支付待发货, 7=已取消, 9=已发货/待收货, 11=已收货) 26 + * @param status 订单状态(3=待支付, 5=已支付待发货, 7=已取消, 9=已发货/待收货, 11=已收货, 13=退款中, 15=已退款, 17=退款失败
27 * @returns data{ list[{ id, title, total_amount, status, create_time, payment_time, details{ id, vehicle_id, quantity, vehicle{} } }] } 27 * @returns data{ list[{ id, title, total_amount, status, create_time, payment_time, details{ id, vehicle_id, quantity, vehicle{} } }] }
28 */ 28 */
29 export const getOrderListAPI = (params) => fn(fetch.get(Api.GET_ORDER_LIST, params)); 29 export const getOrderListAPI = (params) => fn(fetch.get(Api.GET_ORDER_LIST, params));
......
1 <!-- 1 <!--
2 * @Date: 2022-09-19 14:11:06 2 * @Date: 2022-09-19 14:11:06
3 * @LastEditors: hookehuyr hookehuyr@gmail.com 3 * @LastEditors: hookehuyr hookehuyr@gmail.com
4 - * @LastEditTime: 2025-08-04 15:22:11 4 + * @LastEditTime: 2025-08-04 17:46:52
5 * @FilePath: /jgdl/src/pages/myOrders/index.vue 5 * @FilePath: /jgdl/src/pages/myOrders/index.vue
6 * @Description: 订单管理页面 6 * @Description: 订单管理页面
7 --> 7 -->
...@@ -43,6 +43,9 @@ ...@@ -43,6 +43,9 @@
43 <view v-if="viewMode === 'buy' || viewMode === 'sell' || viewMode === 'verification'" class="tab-item" :class="{ active: activeTab === 7 }" @click="setActiveTab(7)"> 43 <view v-if="viewMode === 'buy' || viewMode === 'sell' || viewMode === 'verification'" class="tab-item" :class="{ active: activeTab === 7 }" @click="setActiveTab(7)">
44 已取消 44 已取消
45 </view> 45 </view>
46 + <view v-if="viewMode === 'verification'" class="tab-item" :class="{ active: activeTab === 15 }" @click="setActiveTab(15)">
47 + 已退款
48 + </view>
46 </view> 49 </view>
47 </nut-sticky> 50 </nut-sticky>
48 51
...@@ -553,6 +556,7 @@ const filteredOrders = computed(() => { ...@@ -553,6 +556,7 @@ const filteredOrders = computed(() => {
553 if (activeTab.value === 9) return order.status === 9 556 if (activeTab.value === 9) return order.status === 9
554 if (activeTab.value === 11) return order.status === 11 557 if (activeTab.value === 11) return order.status === 11
555 if (activeTab.value === 7) return order.status === 7 558 if (activeTab.value === 7) return order.status === 7
559 + if (activeTab.value === 15) return order.status === 15
556 return true 560 return true
557 }) 561 })
558 }) 562 })
......