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-07-03 21:19:25 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
78efa02cbe998f67ed560f1e7706245e8b6bd087
78efa02c
1 parent
6d944150
fix(订单页面): 调整状态标签内边距并修复状态文本
修复状态筛选标签的内边距不一致问题,并将"待完成"状态文本改为"待支付" 切换视图模式时重置状态筛选标签到全部
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
7 deletions
src/pages/myOrders/index.less
src/pages/myOrders/index.vue
src/pages/myOrders/index.less
View file @
78efa02
...
...
@@ -65,7 +65,7 @@
/* 状态筛选标签 */
.status-tabs {
background: white;
padding: 20rpx 3
2
rpx; /* 增加内边距 */
padding: 20rpx 3
5
rpx; /* 增加内边距 */
border-bottom: 1rpx solid #e5e7eb;
display: flex;
}
...
...
@@ -588,10 +588,6 @@
font-size: 30rpx; /* 保持较大字体 */
}
.status-tabs {
padding: 18rpx 24rpx;
}
.order-card {
padding: 24rpx;
}
...
...
src/pages/myOrders/index.vue
View file @
78efa02
<!--
* @Date: 2022-09-19 14:11:06
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2025-07-03
17:41:46
* @LastEditTime: 2025-07-03
21:14:00
* @FilePath: /jgdl/src/pages/myOrders/index.vue
* @Description: 订单管理页面
-->
...
...
@@ -498,6 +498,8 @@ const filteredOrders = computed(() => {
*/
const setViewMode = (mode) => {
viewMode.value = mode
// 重置状态筛选标签到全部
activeTab.value = 'all'
resetListState()
// 重置加载更多的状态
hasMore.value = true
...
...
@@ -678,7 +680,7 @@ const loadMore = () => {
const getStatusText = (status) => {
switch (status) {
case 'pending':
return '待
完成
'
return '待
支付
'
case 'completed':
return '已完成'
case 'cancelled':
...
...
Please
register
or
login
to post a comment