This commit is contained in:
parent
d0454de717
commit
5555189e52
|
|
@ -0,0 +1,402 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="zh-CN">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>会员等级详情配置</title>
|
||||
<style>
|
||||
* {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
body {
|
||||
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
|
||||
background-color: #f5f5f5;
|
||||
color: #333;
|
||||
line-height: 1.5;
|
||||
}
|
||||
|
||||
.container {
|
||||
max-width: 414px;
|
||||
margin: 0 auto;
|
||||
background-color: white;
|
||||
min-height: 100vh;
|
||||
}
|
||||
|
||||
/* 头部 */
|
||||
.header {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
padding: 15px 20px;
|
||||
background-color: white;
|
||||
border-bottom: 1px dashed #ccc;
|
||||
position: sticky;
|
||||
top: 0;
|
||||
z-index: 100;
|
||||
}
|
||||
|
||||
.back-btn {
|
||||
background: none;
|
||||
border: none;
|
||||
font-size: 18px;
|
||||
color: #333;
|
||||
cursor: pointer;
|
||||
padding: 5px;
|
||||
margin-right: 15px;
|
||||
}
|
||||
|
||||
.header-title {
|
||||
font-size: 18px;
|
||||
font-weight: 500;
|
||||
color: #333;
|
||||
}
|
||||
|
||||
.save-btn {
|
||||
margin-left: auto;
|
||||
background: white;
|
||||
border: 1px dashed #333;
|
||||
padding: 8px 16px;
|
||||
border-radius: 4px;
|
||||
font-size: 14px;
|
||||
color: #333;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
/* 主要内容 */
|
||||
.main-content {
|
||||
padding: 20px;
|
||||
}
|
||||
|
||||
.form-section {
|
||||
margin-bottom: 30px;
|
||||
}
|
||||
|
||||
.section-title {
|
||||
font-size: 16px;
|
||||
font-weight: 500;
|
||||
color: #333;
|
||||
margin-bottom: 15px;
|
||||
padding-bottom: 8px;
|
||||
border-bottom: 1px dashed #ddd;
|
||||
}
|
||||
|
||||
.form-group {
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
.form-label {
|
||||
display: block;
|
||||
font-size: 14px;
|
||||
color: #666;
|
||||
margin-bottom: 8px;
|
||||
}
|
||||
|
||||
.form-input, .form-textarea, .form-select {
|
||||
width: 100%;
|
||||
padding: 12px;
|
||||
border: 1px dashed #ccc;
|
||||
border-radius: 4px;
|
||||
font-size: 14px;
|
||||
background-color: white;
|
||||
color: #333;
|
||||
}
|
||||
|
||||
.form-input:focus, .form-textarea:focus, .form-select:focus {
|
||||
outline: none;
|
||||
border-color: #999;
|
||||
}
|
||||
|
||||
.form-textarea {
|
||||
resize: vertical;
|
||||
min-height: 80px;
|
||||
}
|
||||
|
||||
/* 成长值范围输入框布局优化 */
|
||||
.range-input-group {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
flex-wrap: nowrap;
|
||||
}
|
||||
|
||||
.range-input {
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
padding: 12px 8px;
|
||||
border: 1px dashed #ccc;
|
||||
border-radius: 4px;
|
||||
font-size: 14px;
|
||||
background-color: white;
|
||||
color: #333;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.range-separator {
|
||||
color: #666;
|
||||
font-size: 14px;
|
||||
white-space: nowrap;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
/* 权益设置 */
|
||||
.benefit-item {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
padding: 15px 0;
|
||||
border-bottom: 1px dashed #eee;
|
||||
}
|
||||
|
||||
.benefit-item:last-child {
|
||||
border-bottom: none;
|
||||
}
|
||||
|
||||
.benefit-info {
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.benefit-name {
|
||||
font-size: 14px;
|
||||
color: #333;
|
||||
margin-bottom: 4px;
|
||||
}
|
||||
|
||||
.benefit-desc {
|
||||
font-size: 12px;
|
||||
color: #999;
|
||||
}
|
||||
|
||||
.benefit-toggle {
|
||||
width: 44px;
|
||||
height: 24px;
|
||||
background-color: #ddd;
|
||||
border-radius: 12px;
|
||||
border: 1px dashed #ccc;
|
||||
position: relative;
|
||||
cursor: pointer;
|
||||
transition: background-color 0.3s;
|
||||
}
|
||||
|
||||
.benefit-toggle.active {
|
||||
background-color: #666;
|
||||
}
|
||||
|
||||
.benefit-toggle::after {
|
||||
content: '';
|
||||
position: absolute;
|
||||
top: 2px;
|
||||
left: 2px;
|
||||
width: 18px;
|
||||
height: 18px;
|
||||
background-color: white;
|
||||
border-radius: 50%;
|
||||
transition: transform 0.3s;
|
||||
}
|
||||
|
||||
.benefit-toggle.active::after {
|
||||
transform: translateX(18px);
|
||||
}
|
||||
|
||||
/* 等级图标预览 */
|
||||
.icon-preview {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 15px;
|
||||
padding: 15px;
|
||||
border: 1px dashed #ccc;
|
||||
border-radius: 4px;
|
||||
background-color: #fafafa;
|
||||
}
|
||||
|
||||
.icon-placeholder {
|
||||
width: 48px;
|
||||
height: 48px;
|
||||
border: 1px dashed #999;
|
||||
border-radius: 8px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
background-color: white;
|
||||
color: #999;
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.icon-info {
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.icon-name {
|
||||
font-size: 14px;
|
||||
color: #333;
|
||||
margin-bottom: 4px;
|
||||
}
|
||||
|
||||
.icon-size {
|
||||
font-size: 12px;
|
||||
color: #999;
|
||||
}
|
||||
|
||||
.upload-btn {
|
||||
background: white;
|
||||
border: 1px dashed #333;
|
||||
padding: 8px 12px;
|
||||
border-radius: 4px;
|
||||
font-size: 12px;
|
||||
color: #333;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
/* 响应式优化 */
|
||||
@media (max-width: 414px) {
|
||||
.container {
|
||||
max-width: 100%;
|
||||
}
|
||||
|
||||
.main-content {
|
||||
padding: 15px;
|
||||
}
|
||||
|
||||
.range-input-group {
|
||||
gap: 6px;
|
||||
}
|
||||
|
||||
.range-input {
|
||||
padding: 10px 6px;
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
.range-separator {
|
||||
font-size: 13px;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 360px) {
|
||||
.range-input {
|
||||
padding: 8px 4px;
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.range-separator {
|
||||
font-size: 12px;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="container">
|
||||
<!-- 头部 -->
|
||||
<header class="header">
|
||||
<button class="back-btn">←</button>
|
||||
<h1 class="header-title">等级详情配置</h1>
|
||||
<button class="save-btn">保存</button>
|
||||
</header>
|
||||
|
||||
<!-- 主要内容 -->
|
||||
<main class="main-content">
|
||||
<!-- 基本信息 -->
|
||||
<section class="form-section">
|
||||
<h2 class="section-title">基本信息</h2>
|
||||
|
||||
<div class="form-group">
|
||||
<label class="form-label">等级名称</label>
|
||||
<input type="text" class="form-input" value="黄金会员" placeholder="请输入等级名称">
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label class="form-label">成长值范围</label>
|
||||
<div class="range-input-group">
|
||||
<input type="number" class="range-input" value="1000" placeholder="最小值">
|
||||
<span class="range-separator">至</span>
|
||||
<input type="number" class="range-input" value="4999" placeholder="最大值">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label class="form-label">等级描述</label>
|
||||
<textarea class="form-textarea" placeholder="请输入等级描述">享受更多专属权益,积分兑换更优惠</textarea>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<!-- 等级图标 -->
|
||||
<section class="form-section">
|
||||
<h2 class="section-title">等级图标</h2>
|
||||
|
||||
<div class="icon-preview">
|
||||
<div class="icon-placeholder">图标</div>
|
||||
<div class="icon-info">
|
||||
<div class="icon-name">gold-member.png</div>
|
||||
<div class="icon-size">48×48px</div>
|
||||
</div>
|
||||
<button class="upload-btn">更换</button>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<!-- 会员权益 -->
|
||||
<section class="form-section">
|
||||
<h2 class="section-title">会员权益</h2>
|
||||
|
||||
<div class="benefit-item">
|
||||
<div class="benefit-info">
|
||||
<div class="benefit-name">积分加成</div>
|
||||
<div class="benefit-desc">购物积分1.2倍加成</div>
|
||||
</div>
|
||||
<div class="benefit-toggle active"></div>
|
||||
</div>
|
||||
|
||||
<div class="benefit-item">
|
||||
<div class="benefit-info">
|
||||
<div class="benefit-name">专属客服</div>
|
||||
<div class="benefit-desc">享受VIP客服通道</div>
|
||||
</div>
|
||||
<div class="benefit-toggle active"></div>
|
||||
</div>
|
||||
|
||||
<div class="benefit-item">
|
||||
<div class="benefit-info">
|
||||
<div class="benefit-name">生日特权</div>
|
||||
<div class="benefit-desc">生日月享受专属优惠</div>
|
||||
</div>
|
||||
<div class="benefit-toggle"></div>
|
||||
</div>
|
||||
|
||||
<div class="benefit-item">
|
||||
<div class="benefit-info">
|
||||
<div class="benefit-name">免费退换</div>
|
||||
<div class="benefit-desc">7天无理由退换货</div>
|
||||
</div>
|
||||
<div class="benefit-toggle active"></div>
|
||||
</div>
|
||||
|
||||
<div class="benefit-item">
|
||||
<div class="benefit-info">
|
||||
<div class="benefit-name">专享活动</div>
|
||||
<div class="benefit-desc">参与会员专享促销活动</div>
|
||||
</div>
|
||||
<div class="benefit-toggle"></div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<!-- 升级条件 -->
|
||||
<section class="form-section">
|
||||
<h2 class="section-title">升级条件</h2>
|
||||
|
||||
<div class="form-group">
|
||||
<label class="form-label">升级方式</label>
|
||||
<select class="form-select">
|
||||
<option>仅成长值</option>
|
||||
<option>成长值+消费金额</option>
|
||||
<option>成长值+订单数量</option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label class="form-label">所需成长值</label>
|
||||
<input type="number" class="form-input" value="5000" placeholder="请输入升级所需成长值">
|
||||
</div>
|
||||
</section>
|
||||
</main>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -0,0 +1,264 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="zh-CN">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>会员等级编辑 - 线框图原型</title>
|
||||
<style>
|
||||
* {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
body {
|
||||
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
|
||||
background-color: #f5f5f5;
|
||||
line-height: 1.4;
|
||||
}
|
||||
|
||||
/* 顶部导航栏 */
|
||||
.header {
|
||||
background-color: #fff;
|
||||
border: 1px dashed #ccc;
|
||||
height: 60px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
position: relative;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
.back-btn {
|
||||
position: absolute;
|
||||
left: 15px;
|
||||
background: none;
|
||||
border: 1px dashed #999;
|
||||
padding: 8px 12px;
|
||||
cursor: pointer;
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
.header-title {
|
||||
font-size: 18px;
|
||||
font-weight: bold;
|
||||
color: #333;
|
||||
}
|
||||
|
||||
/* 主要内容区域 */
|
||||
.container {
|
||||
max-width: 400px;
|
||||
margin: 0 auto;
|
||||
padding: 0 15px;
|
||||
}
|
||||
|
||||
/* 操作按钮区域 */
|
||||
.action-buttons {
|
||||
display: flex;
|
||||
gap: 10px;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
.btn {
|
||||
flex: 1;
|
||||
padding: 12px 20px;
|
||||
border: 1px dashed #ccc;
|
||||
background-color: #fff;
|
||||
cursor: pointer;
|
||||
font-size: 16px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.btn-close {
|
||||
color: #666;
|
||||
}
|
||||
|
||||
.btn-submit {
|
||||
color: #333;
|
||||
border-color: #999;
|
||||
}
|
||||
|
||||
/* 表格容器 */
|
||||
.table-container {
|
||||
background-color: #fff;
|
||||
border: 1px dashed #ccc;
|
||||
overflow-x: auto;
|
||||
}
|
||||
|
||||
/* 表格样式 */
|
||||
.member-table {
|
||||
width: 100%;
|
||||
border-collapse: collapse;
|
||||
}
|
||||
|
||||
.member-table th,
|
||||
.member-table td {
|
||||
padding: 15px 10px;
|
||||
text-align: left;
|
||||
border-bottom: 1px dashed #ddd;
|
||||
}
|
||||
|
||||
.member-table th {
|
||||
background-color: #f8f8f8;
|
||||
font-weight: bold;
|
||||
color: #333;
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
.member-table td {
|
||||
font-size: 14px;
|
||||
color: #666;
|
||||
}
|
||||
|
||||
.member-table tr:last-child td {
|
||||
border-bottom: none;
|
||||
}
|
||||
|
||||
/* 等级列样式 */
|
||||
.level-col {
|
||||
width: 20%;
|
||||
font-weight: bold;
|
||||
color: #333;
|
||||
}
|
||||
|
||||
/* 等级名称列样式 */
|
||||
.name-col {
|
||||
width: 35%;
|
||||
}
|
||||
|
||||
/* 详情列样式 */
|
||||
.detail-col {
|
||||
width: 45%;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
/* 展开详情按钮 */
|
||||
.detail-btn {
|
||||
background-color: #fff;
|
||||
border: 1px dashed #999;
|
||||
padding: 6px 12px;
|
||||
cursor: pointer;
|
||||
font-size: 12px;
|
||||
color: #333;
|
||||
}
|
||||
|
||||
.detail-btn:hover {
|
||||
background-color: #f5f5f5;
|
||||
}
|
||||
|
||||
/* 响应式设计 */
|
||||
@media (max-width: 480px) {
|
||||
.container {
|
||||
padding: 0 10px;
|
||||
}
|
||||
|
||||
.member-table th,
|
||||
.member-table td {
|
||||
padding: 12px 8px;
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
.header-title {
|
||||
font-size: 16px;
|
||||
}
|
||||
|
||||
.btn {
|
||||
padding: 10px 15px;
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
.detail-btn {
|
||||
padding: 4px 8px;
|
||||
font-size: 11px;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 360px) {
|
||||
.member-table th,
|
||||
.member-table td {
|
||||
padding: 10px 6px;
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.detail-btn {
|
||||
padding: 3px 6px;
|
||||
font-size: 10px;
|
||||
}
|
||||
}
|
||||
|
||||
/* 线框图风格增强 */
|
||||
.wireframe-note {
|
||||
position: fixed;
|
||||
bottom: 10px;
|
||||
right: 10px;
|
||||
background-color: #fff;
|
||||
border: 1px dashed #999;
|
||||
padding: 5px 10px;
|
||||
font-size: 12px;
|
||||
color: #666;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<!-- 顶部导航栏 -->
|
||||
<div class="header">
|
||||
<button class="back-btn">← 返回</button>
|
||||
<div class="header-title">时尚服装店 - 等级编辑</div>
|
||||
</div>
|
||||
|
||||
<!-- 主要内容 -->
|
||||
<div class="container">
|
||||
<!-- 操作按钮 -->
|
||||
<div class="action-buttons">
|
||||
<button class="btn btn-close">关闭</button>
|
||||
<button class="btn btn-submit">提交</button>
|
||||
</div>
|
||||
|
||||
<!-- 会员等级表格 -->
|
||||
<div class="table-container">
|
||||
<table class="member-table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="level-col">等级</th>
|
||||
<th class="name-col">等级名称</th>
|
||||
<th class="detail-col">等级详情</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="level-col">LV1</td>
|
||||
<td class="name-col">铜牌会员</td>
|
||||
<td class="detail-col">
|
||||
<button class="detail-btn">展开详情</button>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="level-col">LV2</td>
|
||||
<td class="name-col">银牌会员</td>
|
||||
<td class="detail-col">
|
||||
<button class="detail-btn">展开详情</button>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="level-col">LV3</td>
|
||||
<td class="name-col">金牌会员</td>
|
||||
<td class="detail-col">
|
||||
<button class="detail-btn">展开详情</button>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="level-col">LV4</td>
|
||||
<td class="name-col">钻石会员</td>
|
||||
<td class="detail-col">
|
||||
<button class="detail-btn">展开详情</button>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- 线框图标识 -->
|
||||
<div class="wireframe-note">线框图原型</div>
|
||||
</body>
|
||||
</html>
|
||||
Loading…
Reference in New Issue