refactor: 全项目 UI/UX 标准化修复
- P0: uni.scss 全局 Token 修正(字体SourceHanSerifCN、色彩#111/#333/#666/#999/#eeeeee、删除600字重) - P0: 分包6页面色彩迁移(#4A90D9→#3c9cff、#E74C3C→#e53935、圆角统一24rpx) - P1: qrcode页面全量SCSS迁移(12个硬编码色值替换、emoji图标替换、圆角统一) - P1: index页面价格色修正(#f9ae3d→#e53935、按钮主色统一、硬编码字号对齐) - P2: 10个页面字号/圆角/字体统一(notice-list/scenic/login/profile/faq/card-bind等) - P3: 全局 font-weight:600 替换为500/700(5处),删除semibold变量和工具类 - 新增 -size-title: 38rpx Token - 构建验证通过 Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
+46
-33
@@ -84,7 +84,7 @@
|
||||
mode="aspectFill"
|
||||
/>
|
||||
<view class="avatar-zoom">
|
||||
<text class="zoom-icon">🔍</text>
|
||||
<view class="zoom-icon" />
|
||||
</view>
|
||||
</view>
|
||||
<view class="holder-main">
|
||||
@@ -245,8 +245,11 @@ onMounted(() => { startTimer() })
|
||||
onUnmounted(() => { if (timer) clearInterval(timer) })
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
.page { min-height: 100vh; background: #F1F5F9; }
|
||||
<style lang="scss" scoped>
|
||||
$font: 'SourceHanSerifCN', '思源宋体', -apple-system, 'PingFang SC', sans-serif;
|
||||
$primary: #3c9cff;
|
||||
|
||||
.page { min-height: 100vh; background: #f7f8fa; font-family: $font; }
|
||||
.scroll-content { height: 100vh; }
|
||||
|
||||
/* === 空状态 === */
|
||||
@@ -255,38 +258,38 @@ onUnmounted(() => { if (timer) clearInterval(timer) })
|
||||
justify-content: center; min-height: 100vh; padding: 40rpx;
|
||||
}
|
||||
.empty-icon-card {
|
||||
width: 120rpx; height: 80rpx; border-radius: 12rpx;
|
||||
background: linear-gradient(135deg, #0052FF, #4D7CFF);
|
||||
width: 120rpx; height: 80rpx; border-radius: 24rpx;
|
||||
background: linear-gradient(135deg, $primary, #398ade);
|
||||
display: flex; flex-direction: column; justify-content: center;
|
||||
padding: 16rpx; gap: 8rpx; margin-bottom: 32rpx;
|
||||
}
|
||||
.empty-icon-stripe { height: 8rpx; background: rgba(255,255,255,0.6); border-radius: 4rpx; width: 100%; }
|
||||
.empty-icon-stripe.short { width: 60%; }
|
||||
.empty-text { font-size: 32rpx; font-weight: 700; color: #0F172A; margin-bottom: 12rpx; }
|
||||
.empty-desc { font-size: 26rpx; color: #94A3B8; margin-bottom: 40rpx; }
|
||||
.empty-text { font-size: 32rpx; font-weight: 700; color: #111111; margin-bottom: 12rpx; }
|
||||
.empty-desc { font-size: 26rpx; color: #666666; margin-bottom: 40rpx; }
|
||||
.empty-btn {
|
||||
background: #0052FF; border-radius: 44rpx; padding: 20rpx 80rpx;
|
||||
background: $primary; border-radius: 44rpx; padding: 20rpx 80rpx;
|
||||
min-height: 88rpx; display: flex; align-items: center; justify-content: center;
|
||||
margin-bottom: 20rpx; transition: opacity 150ms;
|
||||
}
|
||||
.empty-btn:active { opacity: 0.7; }
|
||||
.empty-btn-text { font-size: 30rpx; color: #fff; font-weight: 600; }
|
||||
.empty-btn-text { font-size: 30rpx; color: #fff; font-weight: 500; }
|
||||
.empty-btn-secondary {
|
||||
padding: 20rpx 60rpx; border-radius: 44rpx;
|
||||
border: 2rpx solid #E2E8F0; background: #fff;
|
||||
border: 2rpx solid #eeeeee; background: #fff;
|
||||
transition: opacity 150ms;
|
||||
}
|
||||
.empty-btn-secondary:active { opacity: 0.7; }
|
||||
.empty-btn-secondary-text { font-size: 28rpx; color: #475569; }
|
||||
.empty-btn-secondary-text { font-size: 28rpx; color: #333333; }
|
||||
|
||||
/* === 卡面展示区域 === */
|
||||
.card-swiper-wrap { margin: 20rpx 20rpx 20rpx; overflow: visible; }
|
||||
.card-swiper { height: 440rpx; }
|
||||
.card-face {
|
||||
margin: 0 12rpx;
|
||||
border-radius: 20rpx;
|
||||
border-radius: 24rpx;
|
||||
position: relative; overflow: hidden;
|
||||
background: #1E293B;
|
||||
background: #222222;
|
||||
display: flex; align-items: center; justify-content: center;
|
||||
}
|
||||
.card-bg {
|
||||
@@ -307,18 +310,18 @@ onUnmounted(() => { if (timer) clearInterval(timer) })
|
||||
/* === 持卡人信息 === */
|
||||
.holder-panel {
|
||||
margin: 0 20rpx; background: #fff;
|
||||
border-radius: 20rpx; padding: 28rpx;
|
||||
border-radius: 24rpx; padding: 28rpx;
|
||||
box-shadow: 0 4rpx 20rpx rgba(15, 23, 42, 0.06);
|
||||
}
|
||||
.holder-header {
|
||||
display: flex; align-items: center; gap: 20rpx;
|
||||
padding-bottom: 24rpx; margin-bottom: 20rpx;
|
||||
border-bottom: 1rpx solid #F1F5F9;
|
||||
border-bottom: 1rpx solid #f7f8fa;
|
||||
}
|
||||
.avatar-wrap { position: relative; width: 96rpx; height: 96rpx; flex-shrink: 0; }
|
||||
.holder-avatar {
|
||||
width: 96rpx; height: 96rpx; border-radius: 50%;
|
||||
border: 3rpx solid #E2E8F0;
|
||||
border: 3rpx solid #eeeeee;
|
||||
}
|
||||
.avatar-zoom {
|
||||
position: absolute; bottom: -2rpx; right: -2rpx;
|
||||
@@ -326,21 +329,31 @@ onUnmounted(() => { if (timer) clearInterval(timer) })
|
||||
border-radius: 50%; display: flex; align-items: center;
|
||||
justify-content: center; box-shadow: 0 2rpx 8rpx rgba(0,0,0,0.1);
|
||||
}
|
||||
.zoom-icon { font-size: 18rpx; }
|
||||
.zoom-icon {
|
||||
width: 24rpx; height: 24rpx;
|
||||
border: 3rpx solid $primary; border-radius: 50%;
|
||||
position: relative;
|
||||
}
|
||||
.zoom-icon::after {
|
||||
content: ''; width: 8rpx; height: 3rpx;
|
||||
background: $primary; position: absolute;
|
||||
bottom: -4rpx; right: -4rpx;
|
||||
transform: rotate(45deg); border-radius: 2rpx;
|
||||
}
|
||||
.holder-main { flex: 1; }
|
||||
.holder-name { font-size: 32rpx; font-weight: 600; color: #0F172A; display: block; }
|
||||
.holder-name { font-size: 32rpx; font-weight: 500; color: #111111; display: block; }
|
||||
.holder-tag {
|
||||
display: inline-block; font-size: 22rpx; color: #10B981;
|
||||
background: #F0FDF4; padding: 2rpx 12rpx; border-radius: 6rpx; margin-top: 6rpx;
|
||||
display: inline-block; font-size: 22rpx; color: #00b42a;
|
||||
background: #f0fff4; padding: 2rpx 12rpx; border-radius: 6rpx; margin-top: 6rpx;
|
||||
}
|
||||
.holder-details { display: flex; flex-direction: column; gap: 14rpx; }
|
||||
.detail-row { display: flex; justify-content: space-between; align-items: center; }
|
||||
.detail-label { font-size: 26rpx; color: #94A3B8; }
|
||||
.detail-label { font-size: 26rpx; color: #666666; }
|
||||
.detail-value-wrap { display: flex; align-items: center; gap: 12rpx; }
|
||||
.detail-value { font-size: 26rpx; color: #334155; }
|
||||
.detail-value { font-size: 26rpx; color: #333333; }
|
||||
.copy-btn {
|
||||
font-size: 22rpx; color: #0052FF;
|
||||
padding: 4rpx 16rpx; border: 1rpx solid #0052FF;
|
||||
font-size: 22rpx; color: $primary;
|
||||
padding: 4rpx 16rpx; border: 1rpx solid $primary;
|
||||
border-radius: 8rpx; transition: opacity 150ms;
|
||||
}
|
||||
.copy-btn:active { opacity: 0.6; }
|
||||
@@ -349,38 +362,38 @@ onUnmounted(() => { if (timer) clearInterval(timer) })
|
||||
.qrcode-section {
|
||||
display: flex; flex-direction: column; align-items: center;
|
||||
margin: 0 20rpx 20rpx; background: #fff;
|
||||
border-radius: 20rpx; padding: 28rpx;
|
||||
border-radius: 24rpx; padding: 28rpx;
|
||||
box-shadow: 0 4rpx 20rpx rgba(15, 23, 42, 0.06);
|
||||
}
|
||||
.qrcode-title {
|
||||
font-size: 30rpx; font-weight: 600; color: #0F172A;
|
||||
font-size: 30rpx; font-weight: 500; color: #111111;
|
||||
display: block; margin-bottom: 20rpx; align-self: flex-start;
|
||||
}
|
||||
.qrcode-box {
|
||||
width: 360rpx; height: 360rpx; background: #F8FAFC;
|
||||
width: 360rpx; height: 360rpx; background: #f8fafc;
|
||||
border-radius: 16rpx; display: flex; align-items: center;
|
||||
justify-content: center; border: 1rpx solid #E2E8F0;
|
||||
justify-content: center; border: 1rpx solid #eeeeee;
|
||||
margin-bottom: 16rpx;
|
||||
}
|
||||
.qrcode-img { width: 300rpx; height: 300rpx; }
|
||||
.qrcode-countdown { display: flex; align-items: center; gap: 8rpx; }
|
||||
.countdown-icon {
|
||||
width: 20rpx; height: 20rpx;
|
||||
border: 3rpx solid #94A3B8; border-radius: 50%;
|
||||
border: 3rpx solid #666666; border-radius: 50%;
|
||||
position: relative;
|
||||
}
|
||||
.countdown-icon::before {
|
||||
content: ''; position: absolute;
|
||||
width: 3rpx; height: 8rpx; background: #94A3B8;
|
||||
width: 3rpx; height: 8rpx; background: #666666;
|
||||
top: 2rpx; left: 50%; transform: translateX(-50%);
|
||||
border-radius: 1rpx;
|
||||
}
|
||||
.countdown-text { font-size: 24rpx; color: #94A3B8; }
|
||||
.countdown-text { font-size: 24rpx; color: #666666; }
|
||||
|
||||
/* === 功能入口 === */
|
||||
.feature-panel {
|
||||
margin: 0 20rpx 20rpx; background: #fff;
|
||||
border-radius: 20rpx; padding: 28rpx;
|
||||
border-radius: 24rpx; padding: 28rpx;
|
||||
box-shadow: 0 4rpx 20rpx rgba(15, 23, 42, 0.06);
|
||||
}
|
||||
.feature-grid {
|
||||
@@ -395,5 +408,5 @@ onUnmounted(() => { if (timer) clearInterval(timer) })
|
||||
width: 88rpx; height: 88rpx;
|
||||
margin-bottom: 10rpx;
|
||||
}
|
||||
.feature-label { font-size: 24rpx; color: #475569; }
|
||||
.feature-label { font-size: 24rpx; color: #333333; }
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user