feat(admin): 从文章详情页面改为文章管理页面

- 修改页面配置,设置新的导航栏标题和样式
- 重新设计页面布局,增加搜索栏、文章列表和操作按钮
- 添加文章搜索、分页加载和删除功能
- 优化文章列表项的样式和交互
- 新增礼品卡相关API和组件
- 更新优惠券组件,增加到期提醒和筛选功能
This commit is contained in:
2025-08-13 10:11:57 +08:00
parent 0e457f66d8
commit a1cacc04e8
67 changed files with 6278 additions and 2816 deletions

View File

@@ -2,12 +2,18 @@
position: relative;
display: flex;
width: 100%;
height: 100px;
margin-bottom: 12px;
border-radius: 8px;
height: 120px;
margin-bottom: 16px;
border-radius: 12px;
overflow: hidden;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
background: #fff;
transition: all 0.3s ease;
&:active {
transform: scale(0.98);
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}
&.disabled {
opacity: 0.6;
@@ -15,7 +21,7 @@
.coupon-left {
flex-shrink: 0;
width: 100px;
width: 110px;
display: flex;
flex-direction: column;
align-items: center;
@@ -24,23 +30,23 @@
position: relative;
&.theme-red {
background: linear-gradient(135deg, #f87171 0%, #ef4444 100%);
background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
}
&.theme-orange {
background: linear-gradient(135deg, #fb923c 0%, #f97316 100%);
background: linear-gradient(135deg, #ffa726 0%, #ff9800 100%);
}
&.theme-blue {
background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
background: linear-gradient(135deg, #42a5f5 0%, #2196f3 100%);
}
&.theme-purple {
background: linear-gradient(135deg, #a78bfa 0%, #8b5cf6 100%);
background: linear-gradient(135deg, #ab47bc 0%, #9c27b0 100%);
}
&.theme-green {
background: linear-gradient(135deg, #4ade80 0%, #22c55e 100%);
background: linear-gradient(135deg, #66bb6a 0%, #4caf50 100%);
}
.amount-wrapper {
@@ -49,22 +55,23 @@
margin-bottom: 8px;
.currency {
font-size: 24px;
font-weight: 500;
font-size: 28px;
font-weight: 600;
margin-right: 2px;
}
.amount {
font-size: 30px;
font-size: 36px;
font-weight: bold;
line-height: 1;
}
}
.condition {
font-size: 24px;
font-size: 22px;
opacity: 0.9;
margin-top: 2px;
text-align: center;
line-height: 1.2;
}
}
@@ -112,21 +119,23 @@
display: flex;
flex-direction: column;
justify-content: space-between;
padding: 12px;
padding: 16px;
.coupon-info {
flex: 1;
.coupon-title {
font-size: 28px;
font-size: 32px;
font-weight: 600;
color: #1f2937;
margin-bottom: 4px;
margin-bottom: 6px;
line-height: 1.3;
}
.coupon-validity {
font-size: 24px;
font-size: 26px;
color: #6b7280;
line-height: 1.2;
}
}
@@ -136,38 +145,45 @@
align-items: center;
.coupon-btn {
min-width: 48px;
height: 24px;
border-radius: 12px;
font-size: 24px;
min-width: 120px;
height: 60px;
border-radius: 30px;
font-size: 26px;
border: none;
color: #fff;
font-weight: 600;
transition: all 0.2s ease;
&:active {
transform: scale(0.95);
}
&.theme-red {
background: linear-gradient(135deg, #f87171 0%, #ef4444 100%);
background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
}
&.theme-orange {
background: linear-gradient(135deg, #fb923c 0%, #f97316 100%);
background: linear-gradient(135deg, #ffa726 0%, #ff9800 100%);
}
&.theme-blue {
background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
background: linear-gradient(135deg, #42a5f5 0%, #2196f3 100%);
}
&.theme-purple {
background: linear-gradient(135deg, #a78bfa 0%, #8b5cf6 100%);
background: linear-gradient(135deg, #ab47bc 0%, #9c27b0 100%);
}
&.theme-green {
background: linear-gradient(135deg, #4ade80 0%, #22c55e 100%);
background: linear-gradient(135deg, #66bb6a 0%, #4caf50 100%);
}
}
.status-text {
font-size: 24px;
color: #6b7280;
padding: 4px 8px;
font-size: 26px;
color: #9ca3af;
padding: 8px 12px;
font-weight: 500;
}
}
}