402 lines
		
	
	
		
			11 KiB
		
	
	
	
		
			HTML
		
	
	
	
			
		
		
	
	
			402 lines
		
	
	
		
			11 KiB
		
	
	
	
		
			HTML
		
	
	
	
| <!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> |