This commit is contained in:
		
							parent
							
								
									b05af1010b
								
							
						
					
					
						commit
						690317bb2c
					
				|  | @ -31,9 +31,6 @@ | |||
|             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); | ||||
|         } | ||||
| 
 | ||||
|  | @ -663,7 +660,7 @@ | |||
|                 <div class="order-card"> | ||||
|                     <!-- 订单头部 --> | ||||
|                     <div class="order-header"> | ||||
|                         <div class="order-number">${order.settlementOrderNo}</div> | ||||
|                         <div class="order-number">结算订单 ${order.settlementOrderNo}</div> | ||||
|                         <div class="order-meta">${order.paymentTime}</div> | ||||
|                         <div class="order-status"> | ||||
|                             <span class="status-tag ${getStatusClass(order.status)}">${order.status}</span> | ||||
|  |  | |||
|  | @ -2,7 +2,7 @@ | |||
| <html lang="zh-CN"> | ||||
| <head> | ||||
|     <meta charset="UTF-8"> | ||||
|     <meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||||
|     <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no"> | ||||
|     <title>会员管理</title> | ||||
|     <style> | ||||
|         * { | ||||
|  | @ -12,22 +12,22 @@ | |||
|         } | ||||
| 
 | ||||
|         body { | ||||
|             font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif; | ||||
|             font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif; | ||||
|             background-color: #f5f5f5; | ||||
|             min-height: 100vh; | ||||
|             color: #333; | ||||
|             font-size: 14px; | ||||
|             line-height: 1.5; | ||||
|         } | ||||
| 
 | ||||
|         /* Header styles */ | ||||
|         .header { | ||||
|             background-color: #4CAF50; | ||||
|             background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); | ||||
|             color: white; | ||||
|             height: 56px; | ||||
|             display: flex; | ||||
|             align-items: center; | ||||
|             padding: 0 16px; | ||||
|             position: relative; | ||||
|             box-shadow: 0 2px 4px rgba(0,0,0,0.1); | ||||
|             padding: 20px 16px 16px; | ||||
|             position: sticky; | ||||
|             top: 0; | ||||
|             z-index: 100; | ||||
|             box-shadow: 0 2px 10px rgba(0,0,0,0.1); | ||||
|         } | ||||
| 
 | ||||
|         .back-arrow { | ||||
|  | @ -48,64 +48,85 @@ | |||
| 
 | ||||
|         .title { | ||||
|             font-size: 18px; | ||||
|             font-weight: 500; | ||||
|             flex: 1; | ||||
|             font-weight: 600; | ||||
|             text-align: center; | ||||
|             margin-right: 40px; /* Compensate for back arrow width */ | ||||
|             margin: 0; | ||||
|         } | ||||
| 
 | ||||
|         /* Content area */ | ||||
|         .content { | ||||
|             width: 100%; | ||||
|             max-width: 100vw; | ||||
|             padding: 16px; | ||||
|             max-width: 414px; | ||||
|             margin: 0 auto; | ||||
|             margin: 0; | ||||
|         } | ||||
| 
 | ||||
|         /* Menu items */ | ||||
|         .menu-item { | ||||
|             background-color: white; | ||||
|             border: 1px dashed #ccc; | ||||
|             background: #fff; | ||||
|             border-radius: 12px; | ||||
|             margin-bottom: 12px; | ||||
|             padding: 16px 20px; | ||||
|             border-radius: 6px; | ||||
|             box-shadow: 0 2px 8px rgba(0,0,0,0.08); | ||||
|             overflow: hidden; | ||||
|             transition: all 0.3s; | ||||
|             cursor: pointer; | ||||
|             transition: all 0.2s ease; | ||||
|             padding: 16px 20px; | ||||
|             display: flex; | ||||
|             align-items: center; | ||||
|             justify-content: space-between; | ||||
|             min-height: 56px; | ||||
|             min-height: 60px; | ||||
|             font-size: 16px; | ||||
|             color: #333; | ||||
|         } | ||||
| 
 | ||||
|         .menu-item:hover { | ||||
|             background-color: #f8f8f8; | ||||
|             border-color: #4CAF50; | ||||
|         } | ||||
| 
 | ||||
|         .menu-item:active { | ||||
|             transform: translateY(1px); | ||||
|             background-color: #f0f0f0; | ||||
|             transform: scale(0.98); | ||||
|         } | ||||
| 
 | ||||
|         .menu-item-text { | ||||
|             flex: 1; | ||||
|             font-weight: 400; | ||||
|             font-weight: 500; | ||||
|             font-size: 16px; | ||||
|         } | ||||
| 
 | ||||
|         .menu-item-arrow { | ||||
|             color: #999; | ||||
|             font-size: 14px; | ||||
|             font-size: 16px; | ||||
|             margin-left: 12px; | ||||
|         } | ||||
| 
 | ||||
|         .menu-item-arrow::after { | ||||
|             content: '›'; | ||||
|             font-size: 18px; | ||||
|             content: '▶'; | ||||
|             font-size: 14px; | ||||
|         } | ||||
| 
 | ||||
|         /* Responsive adjustments */ | ||||
|         @media (max-width: 320px) { | ||||
|         /* 点击反馈 */ | ||||
|         .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; | ||||
|             } | ||||
|  | @ -113,23 +134,18 @@ | |||
|             .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)); | ||||
|             } | ||||
|              | ||||
|             .title { | ||||
|                 font-size: 17px; | ||||
|             } | ||||
|         } | ||||
| 
 | ||||
|         @media (min-width: 415px) { | ||||
|             .content { | ||||
|                 max-width: 400px; | ||||
|             } | ||||
|         } | ||||
| 
 | ||||
|         /* Touch feedback for mobile */ | ||||
|         @media (pointer: coarse) { | ||||
|             .menu-item { | ||||
|                 min-height: 60px; | ||||
|                 padding-bottom: max(16px, env(safe-area-inset-bottom)); | ||||
|             } | ||||
|         } | ||||
|     </style> | ||||
|  | @ -137,32 +153,52 @@ | |||
| <body> | ||||
|     <!-- Header --> | ||||
|     <div class="header"> | ||||
|         <div class="back-arrow"></div> | ||||
|         <div class="title">会员管理</div> | ||||
|         <h1 class="title">会员管理</h1> | ||||
|     </div> | ||||
| 
 | ||||
|     <!-- Content --> | ||||
|     <div class="content"> | ||||
|         <div class="menu-item"> | ||||
|         <div class="menu-item touchable"> | ||||
|             <span class="menu-item-text">等级设置</span> | ||||
|             <span class="menu-item-arrow"></span> | ||||
|         </div> | ||||
|          | ||||
|         <div class="menu-item"> | ||||
|         <div class="menu-item touchable"> | ||||
|             <span class="menu-item-text">会员列表</span> | ||||
|             <span class="menu-item-arrow"></span> | ||||
|         </div> | ||||
|          | ||||
|          | ||||
|         <div class="menu-item"> | ||||
|         <div class="menu-item touchable"> | ||||
|             <span class="menu-item-text">积分商城</span> | ||||
|             <span class="menu-item-arrow"></span> | ||||
|         </div> | ||||
|          | ||||
|         <div class="menu-item"> | ||||
|         <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> | ||||
		Loading…
	
		Reference in New Issue