配色和二维码滚动修复
style: 统一界面视觉风格与配色方 在遮罩层和内容区都加上 catchtouchmove 阻止触摸穿透滚动:
This commit is contained in:
@@ -45,12 +45,11 @@
|
||||
<!-- 最新预约摘要 -->
|
||||
<view class="latest-card" wx:if="{{latestRecord}}">
|
||||
<view class="latest-header">
|
||||
<view style="display: flex; align-items: center;">
|
||||
<text style="margin-right: 10px;" class="latest-title"> 最新预约</text>
|
||||
<view class="latest-header-left">
|
||||
<text class="latest-title">最新预约</text>
|
||||
<view wx:if="{{latestRecord.status === 'approved'}}" class="qrcode-btn" catchtap="showQrcode" data-id="{{latestRecord._id}}">出示凭证</view>
|
||||
</view>
|
||||
<view class="latest-header-right">
|
||||
|
||||
<view class="status-tag status-{{latestRecord.status}}">{{latestRecord.statusText}}</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
+62
-50
@@ -1,6 +1,6 @@
|
||||
/**index.wxss**/
|
||||
page {
|
||||
background-color: #f5f7fa;
|
||||
background-color: #f0f5fa;
|
||||
min-height: 100vh;
|
||||
}
|
||||
|
||||
@@ -28,7 +28,7 @@ page {
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
background: #f5f7fa;
|
||||
background: #f0f5fa;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
@@ -39,8 +39,8 @@ page {
|
||||
.loading-spinner {
|
||||
width: 64rpx;
|
||||
height: 64rpx;
|
||||
border: 6rpx solid #e0e0e0;
|
||||
border-top: 6rpx solid #1890ff;
|
||||
border: 6rpx solid #dbeafe;
|
||||
border-top: 6rpx solid #5b9bd5;
|
||||
border-radius: 50%;
|
||||
animation: spin 0.8s linear infinite;
|
||||
margin-bottom: 24rpx;
|
||||
@@ -53,7 +53,8 @@ page {
|
||||
|
||||
.loading-text {
|
||||
font-size: 28rpx;
|
||||
color: #999;
|
||||
color: #7f8fa6;
|
||||
letter-spacing: 2rpx;
|
||||
}
|
||||
|
||||
/* 登录失败 */
|
||||
@@ -64,32 +65,37 @@ page {
|
||||
|
||||
.fail-text {
|
||||
font-size: 28rpx;
|
||||
color: #999;
|
||||
color: #7f8fa6;
|
||||
margin-bottom: 32rpx;
|
||||
}
|
||||
|
||||
.retry-btn {
|
||||
font-size: 28rpx;
|
||||
color: #fff;
|
||||
background: #1890ff;
|
||||
background: linear-gradient(135deg, #5b9bd5, #4a8bc2);
|
||||
padding: 16rpx 56rpx;
|
||||
border-radius: 36rpx;
|
||||
border-radius: 40rpx;
|
||||
font-weight: 600;
|
||||
letter-spacing: 2rpx;
|
||||
box-shadow: 0 4rpx 16rpx rgba(91, 155, 213, 0.3);
|
||||
}
|
||||
|
||||
.retry-btn:active {
|
||||
background: #096dd9;
|
||||
opacity: 0.85;
|
||||
}
|
||||
|
||||
.header-title {
|
||||
font-size: 44rpx;
|
||||
font-weight: 700;
|
||||
color: #1a1a1a;
|
||||
color: #2c3e50;
|
||||
margin-bottom: 12rpx;
|
||||
letter-spacing: 4rpx;
|
||||
}
|
||||
|
||||
.header-subtitle {
|
||||
font-size: 28rpx;
|
||||
color: #999;
|
||||
font-size: 26rpx;
|
||||
color: #7f8fa6;
|
||||
letter-spacing: 2rpx;
|
||||
}
|
||||
|
||||
/* 功能卡片 */
|
||||
@@ -100,16 +106,15 @@ page {
|
||||
.action-card {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
background: #fff;
|
||||
border-radius: 20rpx;
|
||||
background: #ffffff;
|
||||
border-radius: 24rpx;
|
||||
padding: 36rpx 32rpx;
|
||||
margin-bottom: 24rpx;
|
||||
box-shadow: 0 8rpx 32rpx rgba(24, 144, 255, 0.12), 0 2rpx 8rpx rgba(0, 0, 0, 0.06);
|
||||
margin-bottom: 20rpx;
|
||||
box-shadow: 0 4rpx 20rpx rgba(91, 155, 213, 0.08);
|
||||
}
|
||||
|
||||
.action-card:active {
|
||||
background: #f0f0f0;
|
||||
box-shadow: 0 4rpx 16rpx rgba(24, 144, 255, 0.08), 0 1rpx 4rpx rgba(0, 0, 0, 0.04);
|
||||
background: #f7fafd;
|
||||
}
|
||||
|
||||
.action-icon-wrap {
|
||||
@@ -124,11 +129,11 @@ page {
|
||||
}
|
||||
|
||||
.action-icon-blue {
|
||||
background: rgba(24, 144, 255, 0.1);
|
||||
background: rgba(91, 155, 213, 0.12);
|
||||
}
|
||||
|
||||
.action-icon-green {
|
||||
background: rgba(82, 196, 26, 0.1);
|
||||
background: rgba(110, 198, 160, 0.12);
|
||||
}
|
||||
|
||||
.action-icon-text {
|
||||
@@ -144,28 +149,28 @@ page {
|
||||
.action-title {
|
||||
font-size: 32rpx;
|
||||
font-weight: 600;
|
||||
color: #1a1a1a;
|
||||
color: #2c3e50;
|
||||
margin-bottom: 8rpx;
|
||||
}
|
||||
|
||||
.action-desc {
|
||||
font-size: 24rpx;
|
||||
color: #999;
|
||||
color: #7f8fa6;
|
||||
}
|
||||
|
||||
.action-arrow {
|
||||
font-size: 40rpx;
|
||||
color: #ccc;
|
||||
color: #b8c9db;
|
||||
margin-left: 16rpx;
|
||||
}
|
||||
|
||||
/* 最新预约卡片 */
|
||||
.latest-card {
|
||||
background: #fff;
|
||||
border-radius: 20rpx;
|
||||
background: #ffffff;
|
||||
border-radius: 24rpx;
|
||||
padding: 28rpx 32rpx;
|
||||
margin-top: 8rpx;
|
||||
box-shadow: 0 8rpx 32rpx rgba(82, 196, 26, 0.12), 0 2rpx 8rpx rgba(0, 0, 0, 0.06);
|
||||
box-shadow: 0 4rpx 20rpx rgba(91, 155, 213, 0.08);
|
||||
}
|
||||
|
||||
.latest-header {
|
||||
@@ -174,7 +179,7 @@ page {
|
||||
align-items: center;
|
||||
margin-bottom: 20rpx;
|
||||
padding-bottom: 16rpx;
|
||||
border-bottom: 1rpx solid #f0f0f0;
|
||||
border-bottom: 1rpx solid #e8eef5;
|
||||
}
|
||||
|
||||
.latest-header-right {
|
||||
@@ -183,51 +188,58 @@ page {
|
||||
gap: 12rpx;
|
||||
}
|
||||
|
||||
.latest-header-left {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 16rpx;
|
||||
}
|
||||
|
||||
.qrcode-btn {
|
||||
font-size: 22rpx;
|
||||
color: #52c41a;
|
||||
background: rgba(82, 196, 26, 0.1);
|
||||
padding: 6rpx 20rpx;
|
||||
border-radius: 20rpx;
|
||||
border: 1rpx solid rgba(82, 196, 26, 0.3);
|
||||
color: #fff;
|
||||
background: linear-gradient(135deg, #5b9bd5, #4a8bc2);
|
||||
padding: 8rpx 24rpx;
|
||||
border-radius: 30rpx;
|
||||
letter-spacing: 1rpx;
|
||||
box-shadow: 0 4rpx 12rpx rgba(91, 155, 213, 0.25);
|
||||
}
|
||||
|
||||
.qrcode-btn:active {
|
||||
background: rgba(82, 196, 26, 0.2);
|
||||
opacity: 0.85;
|
||||
}
|
||||
|
||||
.latest-title {
|
||||
font-size: 28rpx;
|
||||
font-weight: 600;
|
||||
color: #1a1a1a;
|
||||
color: #2c3e50;
|
||||
}
|
||||
|
||||
.status-tag {
|
||||
font-size: 22rpx;
|
||||
padding: 4rpx 16rpx;
|
||||
border-radius: 16rpx;
|
||||
border-radius: 20rpx;
|
||||
font-weight: 500;
|
||||
margin-left: auto;
|
||||
}
|
||||
|
||||
.status-pending {
|
||||
background: rgba(250, 173, 20, 0.1);
|
||||
color: #faad14;
|
||||
background: rgba(240, 164, 93, 0.12);
|
||||
color: #e6a23c;
|
||||
}
|
||||
|
||||
.status-approved {
|
||||
background: rgba(82, 196, 26, 0.1);
|
||||
background: rgba(110, 198, 160, 0.12);
|
||||
color: #52c41a;
|
||||
}
|
||||
|
||||
.status-rejected {
|
||||
background: rgba(255, 77, 79, 0.1);
|
||||
color: #ff4d4f;
|
||||
background: rgba(239, 83, 80, 0.1);
|
||||
color: #ef5350;
|
||||
}
|
||||
|
||||
.status-cancelled {
|
||||
background: rgba(0, 0, 0, 0.04);
|
||||
color: #999;
|
||||
background: rgba(127, 143, 166, 0.1);
|
||||
color: #7f8fa6;
|
||||
}
|
||||
|
||||
.latest-body {
|
||||
@@ -243,23 +255,24 @@ page {
|
||||
|
||||
.latest-label {
|
||||
font-size: 24rpx;
|
||||
color: #999;
|
||||
color: #7f8fa6;
|
||||
}
|
||||
|
||||
.latest-value {
|
||||
font-size: 24rpx;
|
||||
color: #333;
|
||||
color: #2c3e50;
|
||||
}
|
||||
|
||||
.latest-footer {
|
||||
padding-top: 16rpx;
|
||||
border-top: 1rpx solid #f0f0f0;
|
||||
border-top: 1rpx solid #e8eef5;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.latest-link {
|
||||
font-size: 24rpx;
|
||||
color: #1890ff;
|
||||
color: #5b9bd5;
|
||||
letter-spacing: 1rpx;
|
||||
}
|
||||
|
||||
.footer {
|
||||
@@ -268,8 +281,7 @@ page {
|
||||
}
|
||||
|
||||
.footer-text {
|
||||
font-size: 24rpx;
|
||||
color: #ccc;
|
||||
font-size: 22rpx;
|
||||
color: #b8c9db;
|
||||
letter-spacing: 4rpx;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user