204 lines
		
	
	
		
			5.3 KiB
		
	
	
	
		
			HTML
		
	
	
	
			
		
		
	
	
			204 lines
		
	
	
		
			5.3 KiB
		
	
	
	
		
			HTML
		
	
	
	
| <!DOCTYPE html>
 | |
| <html lang="zh-CN">
 | |
| <head>
 | |
|     <meta charset="UTF-8">
 | |
|     <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
 | |
|     <title>会员管理</title>
 | |
|     <style>
 | |
|         * {
 | |
|             margin: 0;
 | |
|             padding: 0;
 | |
|             box-sizing: border-box;
 | |
|         }
 | |
| 
 | |
|         body {
 | |
|             font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif;
 | |
|             background-color: #f5f5f5;
 | |
|             color: #333;
 | |
|             font-size: 14px;
 | |
|             line-height: 1.5;
 | |
|         }
 | |
| 
 | |
|         /* Header styles */
 | |
|         .header {
 | |
|             background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
 | |
|             color: white;
 | |
|             padding: 20px 16px 16px;
 | |
|             position: sticky;
 | |
|             top: 0;
 | |
|             z-index: 100;
 | |
|             box-shadow: 0 2px 10px rgba(0,0,0,0.1);
 | |
|         }
 | |
| 
 | |
|         .back-arrow {
 | |
|             width: 24px;
 | |
|             height: 24px;
 | |
|             margin-right: 16px;
 | |
|             cursor: pointer;
 | |
|             display: flex;
 | |
|             align-items: center;
 | |
|             justify-content: center;
 | |
|         }
 | |
| 
 | |
|         .back-arrow::before {
 | |
|             content: '←';
 | |
|             font-size: 20px;
 | |
|             font-weight: bold;
 | |
|         }
 | |
| 
 | |
|         .title {
 | |
|             font-size: 18px;
 | |
|             font-weight: 600;
 | |
|             text-align: center;
 | |
|             margin: 0;
 | |
|         }
 | |
| 
 | |
|         /* Content area */
 | |
|         .content {
 | |
|             width: 100%;
 | |
|             max-width: 100vw;
 | |
|             padding: 16px;
 | |
|             margin: 0;
 | |
|         }
 | |
| 
 | |
|         /* Menu items */
 | |
|         .menu-item {
 | |
|             background: #fff;
 | |
|             border-radius: 12px;
 | |
|             margin-bottom: 12px;
 | |
|             box-shadow: 0 2px 8px rgba(0,0,0,0.08);
 | |
|             overflow: hidden;
 | |
|             transition: all 0.3s;
 | |
|             cursor: pointer;
 | |
|             padding: 16px 20px;
 | |
|             display: flex;
 | |
|             align-items: center;
 | |
|             justify-content: space-between;
 | |
|             min-height: 60px;
 | |
|             font-size: 16px;
 | |
|             color: #333;
 | |
|         }
 | |
| 
 | |
|         .menu-item:active {
 | |
|             transform: scale(0.98);
 | |
|         }
 | |
| 
 | |
|         .menu-item-text {
 | |
|             flex: 1;
 | |
|             font-weight: 500;
 | |
|             font-size: 16px;
 | |
|         }
 | |
| 
 | |
|         .menu-item-arrow {
 | |
|             color: #999;
 | |
|             font-size: 16px;
 | |
|             margin-left: 12px;
 | |
|         }
 | |
| 
 | |
|         .menu-item-arrow::after {
 | |
|             content: '▶';
 | |
|             font-size: 14px;
 | |
|         }
 | |
| 
 | |
|         /* 点击反馈 */
 | |
|         .touchable {
 | |
|             position: relative;
 | |
|             overflow: hidden;
 | |
|         }
 | |
| 
 | |
|         .touchable::before {
 | |
|             content: '';
 | |
|             position: absolute;
 | |
|             top: 50%;
 | |
|             left: 50%;
 | |
|             width: 0;
 | |
|             height: 0;
 | |
|             border-radius: 50%;
 | |
|             background: rgba(0,0,0,0.1);
 | |
|             transition: width 0.6s, height 0.6s;
 | |
|             transform: translate(-50%, -50%);
 | |
|             pointer-events: none;
 | |
|         }
 | |
| 
 | |
|         .touchable:active::before {
 | |
|             width: 200px;
 | |
|             height: 200px;
 | |
|         }
 | |
| 
 | |
|         /* 优化小屏幕显示 */
 | |
|         @media (max-width: 360px) {
 | |
|             .content {
 | |
|                 padding: 12px;
 | |
|             }
 | |
|             
 | |
|             .menu-item {
 | |
|                 padding: 14px 16px;
 | |
|                 font-size: 15px;
 | |
|                 min-height: 56px;
 | |
|             }
 | |
|         }
 | |
| 
 | |
|         /* iPhone X 等设备的安全区域 */
 | |
|         @supports (padding: max(0px)) {
 | |
|             .header {
 | |
|                 padding-top: max(20px, env(safe-area-inset-top));
 | |
|             }
 | |
|             
 | |
|             .content {
 | |
|                 padding-bottom: max(16px, env(safe-area-inset-bottom));
 | |
|             }
 | |
|         }
 | |
|     </style>
 | |
| </head>
 | |
| <body>
 | |
|     <!-- Header -->
 | |
|     <div class="header">
 | |
|         <h1 class="title">会员管理</h1>
 | |
|     </div>
 | |
| 
 | |
|     <!-- Content -->
 | |
|     <div class="content">
 | |
|         <div class="menu-item touchable">
 | |
|             <span class="menu-item-text">等级设置</span>
 | |
|             <span class="menu-item-arrow"></span>
 | |
|         </div>
 | |
|         
 | |
|         <div class="menu-item touchable">
 | |
|             <span class="menu-item-text">会员列表</span>
 | |
|             <span class="menu-item-arrow"></span>
 | |
|         </div>
 | |
|         
 | |
|         <div class="menu-item touchable">
 | |
|             <span class="menu-item-text">积分商城</span>
 | |
|             <span class="menu-item-arrow"></span>
 | |
|         </div>
 | |
|         
 | |
|         <div class="menu-item touchable">
 | |
|             <span class="menu-item-text">积分订单</span>
 | |
|             <span class="menu-item-arrow"></span>
 | |
|         </div>
 | |
|     </div>
 | |
| 
 | |
|     <script>
 | |
|         // 页面加载完成后初始化
 | |
|         document.addEventListener('DOMContentLoaded', function() {
 | |
|             // 防止页面缩放
 | |
|             document.addEventListener('touchstart', function(event) {
 | |
|                 if (event.touches.length > 1) {
 | |
|                     event.preventDefault();
 | |
|                 }
 | |
|             });
 | |
|             
 | |
|             // 防止双击缩放
 | |
|             let lastTouchEnd = 0;
 | |
|             document.addEventListener('touchend', function(event) {
 | |
|                 const now = (new Date()).getTime();
 | |
|                 if (now - lastTouchEnd <= 300) {
 | |
|                     event.preventDefault();
 | |
|                 }
 | |
|                 lastTouchEnd = now;
 | |
|             });
 | |
|         });
 | |
|     </script>
 | |
| </body>
 | |
| </html> |