339 lines
5.2 KiB
CSS
339 lines
5.2 KiB
CSS
|
|
/* 会员详情页面样式 */
|
||
|
|
|
||
|
|
.detail-header {
|
||
|
|
display: flex;
|
||
|
|
align-items: center;
|
||
|
|
justify-content: space-between;
|
||
|
|
margin-bottom: 24px;
|
||
|
|
padding-bottom: 16px;
|
||
|
|
border-bottom: 1px solid #e5e7eb;
|
||
|
|
}
|
||
|
|
|
||
|
|
.close-btn {
|
||
|
|
display: flex;
|
||
|
|
align-items: center;
|
||
|
|
gap: 8px;
|
||
|
|
padding: 8px 16px;
|
||
|
|
background: #f3f4f6;
|
||
|
|
border: 1px solid #d1d5db;
|
||
|
|
border-radius: 6px;
|
||
|
|
color: #374151;
|
||
|
|
text-decoration: none;
|
||
|
|
font-size: 14px;
|
||
|
|
cursor: pointer;
|
||
|
|
transition: all 0.2s ease;
|
||
|
|
}
|
||
|
|
|
||
|
|
.close-btn:hover {
|
||
|
|
background: #e5e7eb;
|
||
|
|
border-color: #9ca3af;
|
||
|
|
}
|
||
|
|
|
||
|
|
.detail-header h2 {
|
||
|
|
margin: 0;
|
||
|
|
color: #1f2937;
|
||
|
|
font-size: 20px;
|
||
|
|
font-weight: 600;
|
||
|
|
}
|
||
|
|
|
||
|
|
/* 会员信息卡片 */
|
||
|
|
.member-info-card {
|
||
|
|
background: white;
|
||
|
|
border: 1px solid #e5e7eb;
|
||
|
|
border-radius: 8px;
|
||
|
|
margin-bottom: 24px;
|
||
|
|
overflow: hidden;
|
||
|
|
}
|
||
|
|
|
||
|
|
.member-info-header {
|
||
|
|
padding: 16px 20px;
|
||
|
|
background: #f9fafb;
|
||
|
|
border-bottom: 1px solid #e5e7eb;
|
||
|
|
}
|
||
|
|
|
||
|
|
.member-info-header h3 {
|
||
|
|
margin: 0;
|
||
|
|
color: #1f2937;
|
||
|
|
font-size: 16px;
|
||
|
|
font-weight: 600;
|
||
|
|
}
|
||
|
|
|
||
|
|
.member-info-content {
|
||
|
|
padding: 20px;
|
||
|
|
display: flex;
|
||
|
|
justify-content: space-between;
|
||
|
|
align-items: flex-start;
|
||
|
|
gap: 40px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.member-basic {
|
||
|
|
flex: 1;
|
||
|
|
}
|
||
|
|
|
||
|
|
.member-avatar-section {
|
||
|
|
display: flex;
|
||
|
|
align-items: flex-start;
|
||
|
|
gap: 16px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.large-avatar {
|
||
|
|
width: 80px;
|
||
|
|
height: 80px;
|
||
|
|
font-size: 32px;
|
||
|
|
font-weight: 600;
|
||
|
|
}
|
||
|
|
|
||
|
|
.member-basic-info {
|
||
|
|
flex: 1;
|
||
|
|
}
|
||
|
|
|
||
|
|
.member-name {
|
||
|
|
font-size: 18px;
|
||
|
|
font-weight: 600;
|
||
|
|
color: #1f2937;
|
||
|
|
margin-bottom: 8px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.member-id,
|
||
|
|
.member-phone,
|
||
|
|
.member-birth {
|
||
|
|
font-size: 14px;
|
||
|
|
color: #6b7280;
|
||
|
|
margin-bottom: 6px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.member-assets {
|
||
|
|
display: flex;
|
||
|
|
gap: 24px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.asset-item {
|
||
|
|
display: flex;
|
||
|
|
align-items: center;
|
||
|
|
gap: 12px;
|
||
|
|
padding: 16px;
|
||
|
|
background: #f8fafc;
|
||
|
|
border-radius: 8px;
|
||
|
|
min-width: 140px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.asset-icon {
|
||
|
|
width: 32px;
|
||
|
|
height: 32px;
|
||
|
|
border-radius: 50%;
|
||
|
|
display: flex;
|
||
|
|
align-items: center;
|
||
|
|
justify-content: center;
|
||
|
|
position: relative;
|
||
|
|
}
|
||
|
|
|
||
|
|
.growth-icon {
|
||
|
|
background: #dbeafe;
|
||
|
|
}
|
||
|
|
|
||
|
|
.growth-icon::before {
|
||
|
|
content: '📈';
|
||
|
|
font-size: 16px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.points-icon {
|
||
|
|
background: #dcfce7;
|
||
|
|
}
|
||
|
|
|
||
|
|
.points-icon::before {
|
||
|
|
content: '💰';
|
||
|
|
font-size: 16px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.coupon-icon {
|
||
|
|
background: #fef3c7;
|
||
|
|
}
|
||
|
|
|
||
|
|
.coupon-icon::before {
|
||
|
|
content: '🎫';
|
||
|
|
font-size: 16px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.asset-info {
|
||
|
|
flex: 1;
|
||
|
|
}
|
||
|
|
|
||
|
|
.asset-label {
|
||
|
|
font-size: 12px;
|
||
|
|
color: #6b7280;
|
||
|
|
margin-bottom: 4px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.asset-value {
|
||
|
|
font-size: 18px;
|
||
|
|
font-weight: 600;
|
||
|
|
color: #1f2937;
|
||
|
|
}
|
||
|
|
|
||
|
|
/* 详情标签页 */
|
||
|
|
.detail-tabs {
|
||
|
|
background: white;
|
||
|
|
border: 1px solid #e5e7eb;
|
||
|
|
border-radius: 8px;
|
||
|
|
overflow: hidden;
|
||
|
|
}
|
||
|
|
|
||
|
|
.tab-headers {
|
||
|
|
display: flex;
|
||
|
|
background: #f9fafb;
|
||
|
|
border-bottom: 1px solid #e5e7eb;
|
||
|
|
}
|
||
|
|
|
||
|
|
.tab-header {
|
||
|
|
flex: 1;
|
||
|
|
padding: 16px 20px;
|
||
|
|
background: none;
|
||
|
|
border: none;
|
||
|
|
color: #6b7280;
|
||
|
|
font-size: 14px;
|
||
|
|
font-weight: 500;
|
||
|
|
cursor: pointer;
|
||
|
|
transition: all 0.2s ease;
|
||
|
|
position: relative;
|
||
|
|
}
|
||
|
|
|
||
|
|
.tab-header.active {
|
||
|
|
color: #2563eb;
|
||
|
|
background: white;
|
||
|
|
}
|
||
|
|
|
||
|
|
.tab-header.active::after {
|
||
|
|
content: '';
|
||
|
|
position: absolute;
|
||
|
|
bottom: 0;
|
||
|
|
left: 0;
|
||
|
|
right: 0;
|
||
|
|
height: 2px;
|
||
|
|
background: #2563eb;
|
||
|
|
}
|
||
|
|
|
||
|
|
.tab-header:hover:not(.active) {
|
||
|
|
color: #374151;
|
||
|
|
background: #f3f4f6;
|
||
|
|
}
|
||
|
|
|
||
|
|
.tab-content {
|
||
|
|
display: none;
|
||
|
|
padding: 20px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.tab-content.active {
|
||
|
|
display: block;
|
||
|
|
}
|
||
|
|
|
||
|
|
/* 详情表格 */
|
||
|
|
.detail-table {
|
||
|
|
width: 100%;
|
||
|
|
border-collapse: collapse;
|
||
|
|
margin-bottom: 16px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.detail-table th {
|
||
|
|
background: #f9fafb;
|
||
|
|
padding: 12px 16px;
|
||
|
|
text-align: left;
|
||
|
|
font-size: 14px;
|
||
|
|
font-weight: 600;
|
||
|
|
color: #374151;
|
||
|
|
border-bottom: 1px solid #e5e7eb;
|
||
|
|
}
|
||
|
|
|
||
|
|
.detail-table td {
|
||
|
|
padding: 12px 16px;
|
||
|
|
font-size: 14px;
|
||
|
|
color: #6b7280;
|
||
|
|
border-bottom: 1px solid #f3f4f6;
|
||
|
|
}
|
||
|
|
|
||
|
|
.detail-table tr:hover {
|
||
|
|
background: #f9fafb;
|
||
|
|
}
|
||
|
|
|
||
|
|
.positive {
|
||
|
|
color: #059669;
|
||
|
|
font-weight: 600;
|
||
|
|
}
|
||
|
|
|
||
|
|
.negative {
|
||
|
|
color: #dc2626;
|
||
|
|
font-weight: 600;
|
||
|
|
}
|
||
|
|
|
||
|
|
.detail-link {
|
||
|
|
color: #2563eb;
|
||
|
|
text-decoration: none;
|
||
|
|
font-size: 13px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.detail-link:hover {
|
||
|
|
text-decoration: underline;
|
||
|
|
}
|
||
|
|
|
||
|
|
/* 表格底部 */
|
||
|
|
.table-footer {
|
||
|
|
display: flex;
|
||
|
|
justify-content: space-between;
|
||
|
|
align-items: center;
|
||
|
|
padding: 16px 0;
|
||
|
|
font-size: 14px;
|
||
|
|
color: #6b7280;
|
||
|
|
border-top: 1px solid #f3f4f6;
|
||
|
|
}
|
||
|
|
|
||
|
|
.table-pagination {
|
||
|
|
display: flex;
|
||
|
|
align-items: center;
|
||
|
|
gap: 16px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.table-pagination span {
|
||
|
|
cursor: pointer;
|
||
|
|
padding: 4px 8px;
|
||
|
|
border-radius: 4px;
|
||
|
|
transition: background 0.2s ease;
|
||
|
|
}
|
||
|
|
|
||
|
|
.table-pagination span:hover {
|
||
|
|
background: #f3f4f6;
|
||
|
|
}
|
||
|
|
|
||
|
|
/* 响应式设计 */
|
||
|
|
@media (max-width: 768px) {
|
||
|
|
.member-info-content {
|
||
|
|
flex-direction: column;
|
||
|
|
gap: 20px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.member-assets {
|
||
|
|
flex-direction: column;
|
||
|
|
gap: 12px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.asset-item {
|
||
|
|
min-width: auto;
|
||
|
|
}
|
||
|
|
|
||
|
|
.tab-headers {
|
||
|
|
flex-direction: column;
|
||
|
|
}
|
||
|
|
|
||
|
|
.detail-table {
|
||
|
|
font-size: 12px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.detail-table th,
|
||
|
|
.detail-table td {
|
||
|
|
padding: 8px 12px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.table-footer {
|
||
|
|
flex-direction: column;
|
||
|
|
gap: 12px;
|
||
|
|
align-items: flex-start;
|
||
|
|
}
|
||
|
|
}
|