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