Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Hooke
/
jgdl
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
hookehuyr
2025-08-04 17:47:51 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
88762401174e891ac2881fe2021f21e83fc58533
88762401
1 parent
6387d0a8
feat(订单): 添加退款相关状态和界面支持
在订单API中添加退款状态(13=退款中, 15=已退款, 17=退款失败) 在订单管理页面添加已退款标签页
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
3 deletions
src/api/orders.js
src/pages/myOrders/index.vue
src/api/orders.js
View file @
8876240
/*
* @Date: 2025-07-03 17:21:45
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2025-0
7-31 15:50:33
* @LastEditTime: 2025-0
8-04 15:24:12
* @FilePath: /jgdl/src/api/orders.js
* @Description: 文件描述
*/
...
...
@@ -23,7 +23,7 @@ const Api = {
* @param page 页码,从0开始
* @param page_size 每页数量
* @param type 列表类型。buy=我买的,sell=我卖的
* @param status 订单状态(3=待支付, 5=已支付待发货, 7=已取消, 9=已发货/待收货, 11=已收货)
* @param status 订单状态(3=待支付, 5=已支付待发货, 7=已取消, 9=已发货/待收货, 11=已收货
, 13=退款中, 15=已退款, 17=退款失败
)
* @returns data{ list[{ id, title, total_amount, status, create_time, payment_time, details{ id, vehicle_id, quantity, vehicle{} } }] }
*/
export
const
getOrderListAPI
=
(
params
)
=>
fn
(
fetch
.
get
(
Api
.
GET_ORDER_LIST
,
params
));
...
...
src/pages/myOrders/index.vue
View file @
8876240
<!--
* @Date: 2022-09-19 14:11:06
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2025-08-04 1
5:22:11
* @LastEditTime: 2025-08-04 1
7:46:52
* @FilePath: /jgdl/src/pages/myOrders/index.vue
* @Description: 订单管理页面
-->
...
...
@@ -43,6 +43,9 @@
<view v-if="viewMode === 'buy' || viewMode === 'sell' || viewMode === 'verification'" class="tab-item" :class="{ active: activeTab === 7 }" @click="setActiveTab(7)">
已取消
</view>
<view v-if="viewMode === 'verification'" class="tab-item" :class="{ active: activeTab === 15 }" @click="setActiveTab(15)">
已退款
</view>
</view>
</nut-sticky>
...
...
@@ -553,6 +556,7 @@ const filteredOrders = computed(() => {
if (activeTab.value === 9) return order.status === 9
if (activeTab.value === 11) return order.status === 11
if (activeTab.value === 7) return order.status === 7
if (activeTab.value === 15) return order.status === 15
return true
})
})
...
...
Please
register
or
login
to post a comment