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 15:27:40 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
6387d0a8960bf103c775c93a496c11d37ada934a
6387d0a8
1 parent
84d7c71d
feat(订单管理): 添加退款状态样式和文本显示
在订单管理页面中新增退款相关状态(退款中、已退款、退款失败)的样式和文本显示
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
39 additions
and
3 deletions
src/pages/myOrders/index.less
src/pages/myOrders/index.vue
src/pages/myOrders/index.less
View file @
6387d0a
...
...
@@ -235,6 +235,18 @@
&.status-cancelled {
color: #6b7280;
}
&.status-refund-pending {
color: #f97316;
}
&.status-refund-success {
color: #10b981;
}
&.status-refund-failed {
color: #f97316;
}
}
/* 车辆信息 */
...
...
@@ -515,6 +527,18 @@
color: #6b7280;
}
&.status-refund-pending {
color: #f97316;
}
&.status-refund-success {
color: #10b981;
}
&.status-refund-failed {
color: #f97316;
}
&.price {
color: #f97316;
font-weight: 600;
...
...
src/pages/myOrders/index.vue
View file @
6387d0a
<!--
* @Date: 2022-09-19 14:11:06
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2025-08-04 1
4:40:34
* @LastEditTime: 2025-08-04 1
5:22:11
* @FilePath: /jgdl/src/pages/myOrders/index.vue
* @Description: 订单管理页面
-->
...
...
@@ -31,8 +31,8 @@
<view v-if="viewMode === 'buy' || viewMode === 'verification'" class="tab-item" :class="{ active: activeTab === 3 }" @click="setActiveTab(3)">
待支付
</view>
<view v-if="viewMode === '
buy' || viewMode === 'sell' || viewMode === '
verification'" class="tab-item" :class="{ active: activeTab === 5 }" @click="setActiveTab(5)">
{{ viewMode === 'verification' ? '已付款' : '待收货' }}
<view v-if="viewMode === 'verification'" class="tab-item" :class="{ active: activeTab === 5 }" @click="setActiveTab(5)">
已付款
</view>
<view v-if="viewMode === 'buy' || viewMode === 'sell'" class="tab-item" :class="{ active: activeTab === 9 }" @click="setActiveTab(9)">
待收货
...
...
@@ -750,6 +750,12 @@ const getStatusText = (status) => {
return '已完成'
case 7:
return '已取消'
case 13:
return '退款中'
case 15:
return '已退款'
case 17:
return '退款失败'
default:
return '未知状态'
}
...
...
@@ -770,6 +776,12 @@ const getStatusClass = (status) => {
return 'status-completed'
case 7:
return 'status-cancelled'
case 13:
return 'status-refund-pending'
case 15:
return 'status-refund-success'
case 17:
return 'status-refund-failed'
default:
return ''
}
...
...
Please
register
or
login
to post a comment