feat(ui): 优化我的订单界面与顶部导航栏视觉体验,彻底修复表格省略号截断点
1. 顶部导航栏 (AppLayout.css): - 增强毛玻璃质感 (高通透 rgba(255, 255, 255, 0.76) + blur(20px)) - 全面升级品牌标识、搜索框、客服按钮、发布账号与用户状态栏胶囊样式 2. 我的订单界面 (OrdersView.vue & OrdersView.css): - 全新横幅区 (Orders Hero Header) 与实时订单统计徽标 - 全新药丸胶囊状态筛选标签栏 (Pill Tabs) - 解决身份列点号残留问题:扩宽列宽至 100px 并禁用单元格 ellipsis 伪截断
This commit is contained in:
+127
-101
@@ -5,7 +5,7 @@
|
||||
min-height: 100vh;
|
||||
max-width: 100vw;
|
||||
overflow-x: clip;
|
||||
background: #f5f6f8;
|
||||
background: #f8fafc;
|
||||
}
|
||||
|
||||
.pc-topbar {
|
||||
@@ -14,23 +14,30 @@
|
||||
z-index: 100;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 20px;
|
||||
gap: 24px;
|
||||
min-width: 0;
|
||||
max-width: 100%;
|
||||
height: 64px;
|
||||
padding: 0 24px;
|
||||
background: #fff;
|
||||
border-bottom: 1px solid #eef1f5;
|
||||
box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
|
||||
padding: 0 32px;
|
||||
background: rgba(255, 255, 255, 0.76);
|
||||
backdrop-filter: blur(20px) saturate(180%);
|
||||
-webkit-backdrop-filter: blur(20px) saturate(180%);
|
||||
border-bottom: 1px solid rgba(226, 232, 240, 0.7);
|
||||
box-shadow: 0 2px 16px rgba(15, 23, 42, 0.04);
|
||||
}
|
||||
|
||||
/* ========== 品牌 ========== */
|
||||
.pc-brand {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
gap: 12px;
|
||||
text-decoration: none;
|
||||
flex-shrink: 0;
|
||||
transition: transform 0.2s ease;
|
||||
}
|
||||
|
||||
.pc-brand:hover {
|
||||
transform: translateY(-1px);
|
||||
}
|
||||
|
||||
.pc-brand-mark {
|
||||
@@ -38,59 +45,62 @@
|
||||
width: 38px;
|
||||
height: 38px;
|
||||
place-items: center;
|
||||
border-radius: 12px;
|
||||
background: linear-gradient(135deg, #fff3e8 0%, #ffe4cc 100%);
|
||||
color: #ff6a00;
|
||||
border-radius: 11px;
|
||||
background: linear-gradient(135deg, #ff7a1a 0%, #ff5200 100%);
|
||||
color: #ffffff;
|
||||
font-size: 20px;
|
||||
font-weight: 900;
|
||||
box-shadow: 0 3px 10px rgba(255, 106, 0, 0.28);
|
||||
}
|
||||
|
||||
.pc-brand-info {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
line-height: 1.2;
|
||||
line-height: 1.15;
|
||||
}
|
||||
|
||||
.pc-brand-text {
|
||||
font-size: 16px;
|
||||
font-weight: 800;
|
||||
color: #17233d;
|
||||
font-size: 17px;
|
||||
font-weight: 900;
|
||||
letter-spacing: -0.02em;
|
||||
color: #0f172a;
|
||||
}
|
||||
|
||||
.pc-brand-sub {
|
||||
font-size: 11px;
|
||||
color: #8b9cb5;
|
||||
color: #94a3b8;
|
||||
font-weight: 600;
|
||||
letter-spacing: 0.02em;
|
||||
}
|
||||
|
||||
/* ========== 导航 ========== */
|
||||
.pc-nav {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 4px;
|
||||
margin-left: 10px;
|
||||
gap: 6px;
|
||||
margin-left: 6px;
|
||||
min-width: 0;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.pc-nav-link {
|
||||
position: relative;
|
||||
display: flex;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 5px;
|
||||
padding: 8px 14px;
|
||||
gap: 6px;
|
||||
padding: 8px 16px;
|
||||
border-radius: 10px;
|
||||
color: #5a6577;
|
||||
color: #64748b;
|
||||
font-size: 14px;
|
||||
font-weight: 700;
|
||||
text-decoration: none;
|
||||
transition: all 0.2s;
|
||||
transition: all 0.18s ease;
|
||||
}
|
||||
|
||||
.pc-nav-badge {
|
||||
position: absolute;
|
||||
top: 2px;
|
||||
right: 2px;
|
||||
top: 3px;
|
||||
right: 4px;
|
||||
min-width: 16px;
|
||||
height: 16px;
|
||||
padding: 0 4px;
|
||||
@@ -102,54 +112,66 @@
|
||||
font-weight: 800;
|
||||
line-height: 16px;
|
||||
text-align: center;
|
||||
box-shadow: 0 2px 5px rgba(239, 68, 68, 0.35);
|
||||
}
|
||||
|
||||
.pc-nav-link:hover {
|
||||
background: #f1f5f9;
|
||||
color: #0f172a;
|
||||
}
|
||||
|
||||
.pc-nav-link:hover,
|
||||
.pc-nav-link.router-link-active {
|
||||
background: #fff3e8;
|
||||
background: #fff7ed;
|
||||
color: #ff6a00;
|
||||
font-weight: 800;
|
||||
}
|
||||
|
||||
/* ========== 搜索 ========== */
|
||||
.pc-search {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
gap: 10px;
|
||||
margin-left: auto;
|
||||
padding: 0 14px;
|
||||
padding: 0 16px;
|
||||
height: 40px;
|
||||
border-radius: 12px;
|
||||
background: #f4f6f8;
|
||||
border: 1px solid transparent;
|
||||
border-radius: 999px;
|
||||
background: #f1f5f9;
|
||||
border: 1.5px solid transparent;
|
||||
max-width: 320px;
|
||||
min-width: 180px;
|
||||
flex: 1;
|
||||
transition: all 0.2s;
|
||||
transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
|
||||
}
|
||||
|
||||
.pc-search:focus-within {
|
||||
background: #fff;
|
||||
border-color: #ff6a00;
|
||||
box-shadow: 0 0 0 4px rgba(255, 106, 0, 0.08);
|
||||
border-color: #ff8533;
|
||||
box-shadow: 0 0 0 3px rgba(255, 106, 0, 0.12);
|
||||
}
|
||||
|
||||
.pc-search input {
|
||||
border: none;
|
||||
outline: none;
|
||||
background: transparent;
|
||||
color: #17233d;
|
||||
color: #0f172a;
|
||||
font-size: 13px;
|
||||
font-weight: 500;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.pc-search input::placeholder {
|
||||
color: #a0aab6;
|
||||
color: #94a3b8;
|
||||
}
|
||||
|
||||
.pc-search .el-icon {
|
||||
color: #a0aab6;
|
||||
color: #94a3b8;
|
||||
font-size: 16px;
|
||||
flex-shrink: 0;
|
||||
transition: color 0.2s;
|
||||
}
|
||||
|
||||
.pc-search:focus-within .el-icon {
|
||||
color: #ff6a00;
|
||||
}
|
||||
|
||||
/* ========== 用户操作区 ========== */
|
||||
@@ -157,7 +179,6 @@
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 12px;
|
||||
margin-left: 12px;
|
||||
min-width: 0;
|
||||
flex-shrink: 0;
|
||||
height: 100%;
|
||||
@@ -166,52 +187,52 @@
|
||||
.pc-icon-link {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
padding: 0 22px;
|
||||
height: 40px;
|
||||
border-radius: 12px;
|
||||
border: 1px solid #eef1f5;
|
||||
gap: 6px;
|
||||
padding: 0 16px;
|
||||
height: 38px;
|
||||
border-radius: 999px;
|
||||
border: 1px solid #e2e8f0;
|
||||
background: #ffffff;
|
||||
color: #5a6577;
|
||||
font-size: 14px;
|
||||
color: #475569;
|
||||
font-size: 13px;
|
||||
font-weight: 700;
|
||||
text-decoration: none;
|
||||
cursor: pointer;
|
||||
transition: all 0.2s;
|
||||
transition: all 0.2s ease;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.pc-icon-link:hover {
|
||||
background: #fff3e8;
|
||||
border-color: #ff6a00;
|
||||
background: #fff7ed;
|
||||
border-color: #ffd4b0;
|
||||
color: #ff6a00;
|
||||
box-shadow: 0 4px 12px rgba(255, 106, 0, 0.05);
|
||||
box-shadow: 0 2px 8px rgba(255, 106, 0, 0.08);
|
||||
}
|
||||
|
||||
.service-link {
|
||||
gap: 7px;
|
||||
min-width: 92px;
|
||||
gap: 6px;
|
||||
min-width: 82px;
|
||||
justify-content: center;
|
||||
padding: 0 18px;
|
||||
border-color: rgba(255, 106, 0, 0.32);
|
||||
border-radius: 10px;
|
||||
background: #fff8f2;
|
||||
color: #ff6a00;
|
||||
font-size: 14px;
|
||||
font-weight: 800;
|
||||
padding: 0 16px;
|
||||
border-color: #fed7aa;
|
||||
border-radius: 999px;
|
||||
background: #fff7ed;
|
||||
color: #ea580c;
|
||||
font-size: 13px;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.service-link .el-icon {
|
||||
width: 18px;
|
||||
height: 18px;
|
||||
font-size: 18px;
|
||||
stroke-width: 2.2;
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
font-size: 16px;
|
||||
}
|
||||
|
||||
.service-link:hover {
|
||||
background: #fff3e8;
|
||||
border-color: #ff6a00;
|
||||
box-shadow: 0 6px 16px rgba(255, 106, 0, 0.1);
|
||||
background: #ffedd5;
|
||||
border-color: #fdba74;
|
||||
color: #c2410c;
|
||||
box-shadow: 0 3px 10px rgba(234, 88, 12, 0.12);
|
||||
transform: translateY(-1px);
|
||||
}
|
||||
|
||||
@@ -219,19 +240,20 @@
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
padding: 0 16px;
|
||||
height: 40px;
|
||||
border-radius: 10px;
|
||||
background: #f4f6f8;
|
||||
color: #17233d;
|
||||
padding: 0 18px;
|
||||
height: 38px;
|
||||
border-radius: 999px;
|
||||
background: #f1f5f9;
|
||||
color: #1e293b;
|
||||
font-size: 13px;
|
||||
font-weight: 700;
|
||||
text-decoration: none;
|
||||
transition: all 0.2s;
|
||||
transition: all 0.2s ease;
|
||||
}
|
||||
|
||||
.pc-login-link:hover {
|
||||
background: #eaeff5;
|
||||
background: #e2e8f0;
|
||||
color: #0f172a;
|
||||
}
|
||||
|
||||
.pc-post-link {
|
||||
@@ -239,19 +261,20 @@
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
padding: 0 18px;
|
||||
height: 40px;
|
||||
border-radius: 10px;
|
||||
background: #ff6a00;
|
||||
color: #fff;
|
||||
font-size: 14px;
|
||||
height: 38px;
|
||||
border-radius: 999px;
|
||||
background: linear-gradient(135deg, #ff7a1a 0%, #ff5200 100%);
|
||||
color: #ffffff;
|
||||
font-size: 13px;
|
||||
font-weight: 800;
|
||||
text-decoration: none;
|
||||
box-shadow: 0 6px 16px rgba(255, 106, 0, 0.2);
|
||||
transition: all 0.2s;
|
||||
box-shadow: 0 3px 10px rgba(255, 106, 0, 0.24);
|
||||
transition: all 0.2s ease;
|
||||
}
|
||||
|
||||
.pc-post-link:hover {
|
||||
background: #e55d00;
|
||||
background: linear-gradient(135deg, #ff8533 0%, #ff6214 100%);
|
||||
box-shadow: 0 5px 14px rgba(255, 106, 0, 0.32);
|
||||
transform: translateY(-1px);
|
||||
}
|
||||
|
||||
@@ -267,28 +290,31 @@
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
padding: 4px 10px 4px 4px;
|
||||
height: 36px;
|
||||
border: none;
|
||||
padding: 3px 12px 3px 3px;
|
||||
height: 38px;
|
||||
border: 1px solid #e2e8f0;
|
||||
border-radius: 999px;
|
||||
background: #f4f6f8;
|
||||
background: #ffffff;
|
||||
cursor: pointer;
|
||||
transition: all 0.2s;
|
||||
box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
|
||||
transition: all 0.2s ease;
|
||||
}
|
||||
|
||||
.pc-user-trigger:hover,
|
||||
.pc-user-trigger.active {
|
||||
background: #eaeff5;
|
||||
background: #fffaf5;
|
||||
border-color: #ffd4b0;
|
||||
box-shadow: 0 3px 10px rgba(255, 106, 0, 0.08);
|
||||
}
|
||||
|
||||
.pc-avatar-chip {
|
||||
display: grid;
|
||||
width: 28px;
|
||||
height: 28px;
|
||||
width: 30px;
|
||||
height: 30px;
|
||||
place-items: center;
|
||||
border-radius: 50%;
|
||||
overflow: hidden;
|
||||
background: linear-gradient(135deg, #ff6a00 0%, #e55d00 100%);
|
||||
background: linear-gradient(135deg, #ff7a1a 0%, #ff5200 100%);
|
||||
color: #fff;
|
||||
font-size: 13px;
|
||||
font-weight: 800;
|
||||
@@ -308,8 +334,8 @@
|
||||
.pc-user-name {
|
||||
max-width: 100px;
|
||||
overflow: hidden;
|
||||
color: #17233d;
|
||||
font-size: 14px;
|
||||
color: #0f172a;
|
||||
font-size: 13px;
|
||||
font-weight: 700;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
@@ -319,12 +345,12 @@
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
min-width: 48px;
|
||||
height: 22px;
|
||||
padding: 0 8px;
|
||||
min-width: 44px;
|
||||
height: 20px;
|
||||
padding: 0 7px;
|
||||
border-radius: 999px;
|
||||
font-size: 12px;
|
||||
font-weight: 800;
|
||||
font-size: 11px;
|
||||
font-weight: 700;
|
||||
line-height: 1;
|
||||
white-space: nowrap;
|
||||
}
|
||||
@@ -333,12 +359,12 @@
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
min-width: 42px;
|
||||
height: 22px;
|
||||
padding: 0 8px;
|
||||
min-width: 38px;
|
||||
height: 20px;
|
||||
padding: 0 7px;
|
||||
border-radius: 999px;
|
||||
font-size: 12px;
|
||||
font-weight: 900;
|
||||
font-size: 11px;
|
||||
font-weight: 800;
|
||||
line-height: 1;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user