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

@@ -0,0 +1,307 @@
.gift-card {
position: relative;
width: 100%;
margin-bottom: 16px;
border-radius: 16px;
overflow: hidden;
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.7;
}
// 主题色彩
&.gift-card-gold {
.gift-card-header {
background: #ffd700;
}
.use-btn {
background: #ffd700;
border: none;
color: #333;
}
}
&.gift-card-silver {
.gift-card-header {
background: #c0c0c0;
}
.use-btn {
background: #c0c0c0;
border: none;
color: #333;
}
}
&.gift-card-bronze {
.gift-card-header {
background: #cd7f32;
}
.use-btn {
background: #cd7f32;
border: none;
color: #fff;
}
}
&.gift-card-blue {
.gift-card-header {
background: #4a90e2;
}
.use-btn {
background: #4a90e2;
border: none;
color: #fff;
}
}
&.gift-card-green {
.gift-card-header {
background: #5cb85c;
}
.use-btn {
background: #5cb85c;
border: none;
color: #fff;
}
}
&.gift-card-purple {
.gift-card-header {
background: #9b59b6;
}
.use-btn {
background: #9b59b6;
border: none;
color: #fff;
}
}
.gift-card-header {
display: flex;
align-items: center;
justify-content: space-between;
padding: 16px 20px;
color: #fff;
position: relative;
.gift-card-logo {
width: 40px;
height: 40px;
border-radius: 50%;
background: rgba(255, 255, 255, 0.2);
display: flex;
align-items: center;
justify-content: center;
}
.gift-card-title {
flex: 1;
margin-left: 12px;
.title-text {
display: block;
font-size: 18px;
font-weight: 600;
line-height: 1.3;
margin-bottom: 2px;
}
.type-text {
display: block;
font-size: 14px;
opacity: 0.9;
}
}
.gift-card-status {
.nut-tag {
background: rgba(255, 255, 255, 0.9);
color: #333;
border: none;
}
}
}
.gift-card-body {
padding: 20px;
.gift-card-content {
display: flex;
align-items: flex-start;
margin-bottom: 16px;
.gift-image {
margin-right: 16px;
flex-shrink: 0;
}
.gift-info {
flex: 1;
.gift-value {
display: flex;
align-items: baseline;
margin-bottom: 8px;
.value-label {
font-size: 14px;
color: #666;
margin-right: 8px;
}
.value-amount {
font-size: 24px;
font-weight: bold;
color: #333;
}
}
.gift-description {
font-size: 14px;
color: #666;
line-height: 1.4;
margin-bottom: 12px;
}
.gift-code {
background: #f8f9fa;
border-radius: 8px;
padding: 12px;
border: 1px dashed #ddd;
.code-label {
display: block;
font-size: 12px;
color: #999;
margin-bottom: 4px;
}
.code-value {
font-size: 16px;
font-weight: 600;
color: #333;
font-family: 'Courier New', monospace;
letter-spacing: 1px;
}
}
}
}
.gift-time-info {
.time-item {
display: flex;
align-items: center;
margin-bottom: 6px;
.time-text {
font-size: 12px;
color: #666;
margin-left: 6px;
}
&:last-child {
margin-bottom: 0;
}
}
}
}
.gift-card-footer {
display: flex;
align-items: center;
justify-content: space-between;
padding: 0 20px 20px;
.footer-info {
.contact-info {
display: flex;
align-items: center;
.contact-text {
font-size: 12px;
color: #999;
margin-left: 4px;
}
}
}
.footer-actions {
display: flex;
gap: 8px;
.use-btn {
min-width: 80px;
font-weight: 600;
transition: all 0.2s ease;
&:active {
transform: scale(0.95);
}
}
}
}
.gift-card-overlay {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(0, 0, 0, 0.1);
display: flex;
align-items: center;
justify-content: center;
z-index: 10;
.overlay-badge {
background: rgba(0, 0, 0, 0.7);
color: #fff;
padding: 8px 16px;
border-radius: 20px;
font-size: 16px;
font-weight: 600;
}
}
}
// 礼品卡基础样式
.gift-card {
opacity: 1;
transform: translateY(0);
}
// 使用按钮效果
.use-btn {
transition: all 0.3s ease;
}
// 响应式设计
@media (max-width: 768px) {
.gift-card {
.gift-card-body {
padding: 16px;
.gift-card-content {
.gift-info {
.gift-value {
.value-amount {
font-size: 20px;
}
}
}
}
}
.gift-card-footer {
padding: 0 16px 16px;
}
}
}