dm-design/new_web/merchant/pages/member-detail.html

680 lines
20 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<div class="page-content">
<div class="detail-header">
<h2>会员详情-张三</h2>
<button class="btn btn-secondary close-btn" onclick="closeMemberDetailTab()">关闭</button>
</div>
<!-- 会员基本信息 -->
<div class="member-info-card">
<div class="member-info-header">
<h3>会员信息</h3>
</div>
<div class="member-info-content">
<div class="member-basic">
<div class="member-avatar-section">
<div class="avatar large-avatar green-avatar"></div>
<div class="member-basic-info">
<div class="member-name">张三</div>
<div class="member-id">会员系统编号:二</div>
<div class="member-phone">会员手机号138****1234</div>
<div class="member-birth">会员生日1990-05-15</div>
</div>
</div>
</div>
<div class="member-assets">
<div class="asset-item">
<div class="asset-icon growth-icon"></div>
<div class="asset-info">
<div class="asset-label">会员成长值</div>
<div class="asset-value">1250</div>
</div>
</div>
<div class="asset-item">
<div class="asset-icon points-icon"></div>
<div class="asset-info">
<div class="asset-label">会员积分</div>
<div class="asset-value">890</div>
</div>
</div>
<div class="asset-item">
<div class="asset-icon coupon-icon"></div>
<div class="asset-info">
<div class="asset-label">会员优惠券</div>
<div class="asset-value">5</div>
</div>
</div>
</div>
</div>
</div>
<!-- 详情标签页 -->
<div class="detail-tabs">
<div class="tab-headers">
<button class="tab-header active" onclick="switchDetailTab(event, 'growth')">会员成长值明细</button>
<button class="tab-header" onclick="switchDetailTab(event, 'points')">会员积分明细</button>
</div>
<!-- 会员成长值明细 -->
<div id="growthTab" class="tab-content active">
<div class="table-container">
<table class="detail-table">
<thead>
<tr>
<th>变化时间</th>
<th>成长值变动</th>
<th>关联订单</th>
<th>详情</th>
</tr>
</thead>
<tbody>
<tr>
<td>2025-07-24 17:20</td>
<td class="positive">+35</td>
<td>ORD9296</td>
<td><a href="#" class="detail-link">详情</a></td>
</tr>
<tr>
<td>2025-07-12 17:20</td>
<td class="positive">+100</td>
<td></td>
<td><a href="#" class="detail-link">详情</a></td>
</tr>
<tr>
<td>2025-07-10 17:20</td>
<td class="positive">+100</td>
<td></td>
<td><a href="#" class="detail-link">详情</a></td>
</tr>
<tr>
<td>2025-06-29 17:20</td>
<td class="positive">+20</td>
<td></td>
<td><a href="#" class="detail-link">详情</a></td>
</tr>
<tr>
<td>2025-06-17 17:20</td>
<td class="positive">+55</td>
<td>ORD2063</td>
<td><a href="#" class="detail-link">详情</a></td>
</tr>
<tr>
<td>2025-06-02 17:20</td>
<td class="positive">+20</td>
<td></td>
<td><a href="#" class="detail-link">详情</a></td>
</tr>
<tr>
<td>2025-05-20 17:20</td>
<td class="positive">+81</td>
<td>ORD5387</td>
<td><a href="#" class="detail-link">详情</a></td>
</tr>
<tr>
<td>2025-05-16 17:20</td>
<td class="positive">+100</td>
<td></td>
<td><a href="#" class="detail-link">详情</a></td>
</tr>
<tr>
<td>2025-05-10 17:20</td>
<td class="positive">+50</td>
<td></td>
<td><a href="#" class="detail-link">详情</a></td>
</tr>
<tr>
<td>2025-05-04 17:20</td>
<td class="positive">+100</td>
<td></td>
<td><a href="#" class="detail-link">详情</a></td>
</tr>
<tr>
<td>2025-04-25 17:20</td>
<td class="positive">+100</td>
<td></td>
<td><a href="#" class="detail-link">详情</a></td>
</tr>
<tr>
<td>2025-04-18 17:20</td>
<td class="positive">+50</td>
<td></td>
<td><a href="#" class="detail-link">详情</a></td>
</tr>
<tr>
<td>2025-04-16 17:20</td>
<td class="positive">+20</td>
<td></td>
<td><a href="#" class="detail-link">详情</a></td>
</tr>
<tr>
<td>2025-04-04 17:20</td>
<td class="positive">+20</td>
<td></td>
<td><a href="#" class="detail-link">详情</a></td>
</tr>
<tr>
<td>2025-04-01 17:20</td>
<td class="positive">+10</td>
<td>ORD3911</td>
<td><a href="#" class="detail-link">详情</a></td>
</tr>
<tr>
<td>2025-03-24 17:20</td>
<td class="positive">+20</td>
<td></td>
<td><a href="#" class="detail-link">详情</a></td>
</tr>
<tr>
<td>2025-03-10 17:20</td>
<td class="positive">+95</td>
<td>ORD8321</td>
<td><a href="#" class="detail-link">详情</a></td>
</tr>
<tr>
<td>2025-02-28 17:20</td>
<td class="positive">+100</td>
<td></td>
<td><a href="#" class="detail-link">详情</a></td>
</tr>
<tr>
<td>2025-02-18 17:20</td>
<td class="positive">+100</td>
<td></td>
<td><a href="#" class="detail-link">详情</a></td>
</tr>
<tr>
<td>2025-02-04 17:20</td>
<td class="positive">+20</td>
<td></td>
<td><a href="#" class="detail-link">详情</a></td>
</tr>
</tbody>
</table>
</div>
<div class="table-footer">
<span>共 20 条记录</span>
<div class="table-pagination">
<span>上一页</span>
<span>第 1 页,共 1 页</span>
<span>下一页</span>
</div>
</div>
</div>
<!-- 会员积分明细 -->
<div id="pointsTab" class="tab-content">
<div class="table-container">
<table class="detail-table">
<thead>
<tr>
<th>变化时间</th>
<th>积分变动</th>
<th>关联订单</th>
<th>详情</th>
</tr>
</thead>
<tbody>
<tr>
<td>2025-07-24 17:20</td>
<td class="positive">+25</td>
<td>ORD9296</td>
<td><a href="#" class="detail-link">详情</a></td>
</tr>
<tr>
<td>2025-07-20 15:30</td>
<td class="negative">-50</td>
<td>兑换商品</td>
<td><a href="#" class="detail-link">详情</a></td>
</tr>
<tr>
<td>2025-07-12 17:20</td>
<td class="positive">+80</td>
<td></td>
<td><a href="#" class="detail-link">详情</a></td>
</tr>
<tr>
<td>2025-07-10 17:20</td>
<td class="positive">+60</td>
<td></td>
<td><a href="#" class="detail-link">详情</a></td>
</tr>
<tr>
<td>2025-06-29 17:20</td>
<td class="positive">+15</td>
<td></td>
<td><a href="#" class="detail-link">详情</a></td>
</tr>
<tr>
<td>2025-06-25 14:20</td>
<td class="negative">-100</td>
<td>兑换优惠券</td>
<td><a href="#" class="detail-link">详情</a></td>
</tr>
<tr>
<td>2025-06-17 17:20</td>
<td class="positive">+45</td>
<td>ORD2063</td>
<td><a href="#" class="detail-link">详情</a></td>
</tr>
<tr>
<td>2025-06-02 17:20</td>
<td class="positive">+15</td>
<td></td>
<td><a href="#" class="detail-link">详情</a></td>
</tr>
<tr>
<td>2025-05-20 17:20</td>
<td class="positive">+65</td>
<td>ORD5387</td>
<td><a href="#" class="detail-link">详情</a></td>
</tr>
<tr>
<td>2025-05-16 17:20</td>
<td class="positive">+80</td>
<td></td>
<td><a href="#" class="detail-link">详情</a></td>
</tr>
<tr>
<td>2025-05-12 10:30</td>
<td class="negative">-30</td>
<td>兑换商品</td>
<td><a href="#" class="detail-link">详情</a></td>
</tr>
<tr>
<td>2025-05-10 17:20</td>
<td class="positive">+40</td>
<td></td>
<td><a href="#" class="detail-link">详情</a></td>
</tr>
<tr>
<td>2025-05-04 17:20</td>
<td class="positive">+80</td>
<td></td>
<td><a href="#" class="detail-link">详情</a></td>
</tr>
<tr>
<td>2025-04-25 17:20</td>
<td class="positive">+70</td>
<td></td>
<td><a href="#" class="detail-link">详情</a></td>
</tr>
<tr>
<td>2025-04-18 17:20</td>
<td class="positive">+35</td>
<td></td>
<td><a href="#" class="detail-link">详情</a></td>
</tr>
<tr>
<td>2025-04-16 17:20</td>
<td class="positive">+15</td>
<td></td>
<td><a href="#" class="detail-link">详情</a></td>
</tr>
<tr>
<td>2025-04-04 17:20</td>
<td class="positive">+15</td>
<td></td>
<td><a href="#" class="detail-link">详情</a></td>
</tr>
<tr>
<td>2025-04-01 17:20</td>
<td class="positive">+8</td>
<td>ORD3911</td>
<td><a href="#" class="detail-link">详情</a></td>
</tr>
</tbody>
</table>
</div>
<div class="table-footer">
<span>共 18 条记录</span>
<div class="table-pagination">
<span>上一页</span>
<span>第 1 页,共 1 页</span>
<span>下一页</span>
</div>
</div>
</div>
</div>
</div>
<style>
/* 会员详情页面样式 */
.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;
}
}
</style>