style:文旅场馆/商户详情/权益包详情三页风格对齐现行设计基准

- 场馆列表:搜索栏与卡片按折扣页规格重构(36px 搜索栏、16rpx 圆角卡片、rpx 字号体系),卡片新增固定标签展示位「实体社保卡 / 电子社保卡」;
- 商户详情:奶油底+棕色文字系改为首页暖米底 #FDECE2 + 全站灰阶(#333/#666/#999),栏目标题统一 34rpx 加粗渐变条规格,头部卡改纯白,距离与图标底色统一品牌红/浅灰;
- 权益详情:旧灰白卡与 OSS 切图标题升级为当前设计语言(暖米底、28rpx 白卡、渐变条标题、柔描边日期卡、红色渐变预约按钮)。

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
jacobxu666
2026-10-29 09:33:36 +08:00
co-authored by Claude Fable 5
parent 069609f409
commit c0a94a0d6d
3 changed files with 144 additions and 108 deletions
+63 -38
View File
@@ -4,11 +4,11 @@
<view class="search-area">
<view class="nav-row">
<view class="back-btn" @click="goBack">
<u-icon name="arrow-left" color="#333333" size="40"></u-icon>
<u-icon name="arrow-left" color="#333333" size="32"></u-icon>
<text class="back-text">返回</text>
</view>
<view class="search-bar">
<u-icon name="search" color="#8e8e93" size="36"></u-icon>
<u-icon name="search" color="#8e8e93" size="30"></u-icon>
<input class="search-input" v-model="keyword" placeholder="请搜索场馆名" confirm-type="search" @confirm="onSearch" />
<view class="search-btn" @click="onSearch">搜索</view>
</view>
@@ -28,6 +28,11 @@
</view>
<view class="card-info">
<text class="card-name">{{ item.name }}</text>
<!-- xuchao: 标签展示位——场馆均支持实体/电子社保卡,固定两枚 -->
<view class="card-tags">
<text class="tag-card">实体社保卡</text>
<text class="tag-card">电子社保卡</text>
</view>
<text class="card-category">{{ item.category }}</text>
<view class="card-bottom">
<text class="card-address">{{ item.address }}</text>
@@ -173,7 +178,8 @@ export default {
.search-area {
background-color: #ffffff;
padding: 6px 12px 0;
/* xuchao: 底部留 8px 灰底间隔,与下方卡片不贴死(对齐折扣页) */
padding: 6px 12px 8px;
/* xuchao: 滚动时固定在页面顶部;z-index 高于筛选遮罩(90),保证面板与选中态不被压住 */
position: sticky;
top: 0;
@@ -190,7 +196,7 @@ export default {
display: flex;
align-items: center;
justify-content: center;
height: 44px;
height: 36px;
flex-shrink: 0;
gap: 2px;
}
@@ -204,25 +210,25 @@ export default {
flex: 1;
display: flex;
align-items: center;
height: 44px;
height: 36px;
background-color: #ffffff;
border: 1px solid #f2f2f7;
border-radius: 100px;
padding: 4px 8px;
gap: 12px;
gap: 10px;
}
.search-input {
flex: 1;
font-size: 16px;
font-size: 14px;
color: #333;
}
.search-btn {
background-color: #E8542F;
color: #ffffff;
font-size: 14px;
padding: 4px 10px;
font-size: 13px;
padding: 3px 10px;
border-radius: 50px;
white-space: nowrap;
}
@@ -230,27 +236,31 @@ export default {
.list-area {
/* xuchao: 顶部 12px 必须是页面灰底(不能放进头部的白底里),否则与白色卡片连成一片看不出间隔 */
padding: 12px;
/* xuchao: border-box 防止 padding 撑出页面横向滚动 */
box-sizing: border-box;
}
.venue-card {
display: flex;
align-items: flex-end;
align-items: flex-start;
box-sizing: border-box;
background-color: #ffffff;
border: 1px solid #f2f2f7;
border-radius: 6px;
padding: 24px 12px;
gap: 12px;
border-radius: 16rpx;
padding: 24rpx;
gap: 20rpx;
box-shadow: 0 2px 3px #f2f2f7;
margin: 12px;
margin-bottom: 12px;
}
.card-thumb {
width: 75px;
height: 75px;
border-radius: 6px;
width: 180rpx;
height: 180rpx;
border-radius: 16rpx;
overflow: hidden;
position: relative;
flex-shrink: 0;
background-color: #f7f7f7;
}
/* xuchao: image 由 thumb 裁圆角,自身不再设圆角 */
@@ -266,12 +276,12 @@ export default {
left: 0;
display: block;
max-width: 100%;
padding: 1px 5px;
border-radius: 0 0 6px 0;
padding: 2rpx 10rpx;
border-radius: 0 0 16rpx 0;
background: rgba(0, 0, 0, 0.45);
color: #ffffff;
font-size: 10px;
line-height: 14px;
font-size: 20rpx;
line-height: 28rpx;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
@@ -283,14 +293,13 @@ export default {
min-width: 0;
display: flex;
flex-direction: column;
gap: 0;
width: 100%;
min-width: 0;
align-items: flex-start;
gap: 8rpx;
}
.card-name {
font-size: 16px;
font-weight: 500;
font-size: 30rpx;
font-weight: 600;
color: #000000;
width: 100%;
overflow: hidden;
@@ -298,27 +307,43 @@ export default {
white-space: nowrap;
}
/* xuchao: 标签展示位——品牌红调胶囊,形制同折扣页 tag-coupon */
.card-tags {
display: flex;
gap: 8rpx;
flex-shrink: 0;
}
.tag-card {
font-size: 20rpx;
color: #E8542F;
background: rgba(232, 84, 47, 0.08);
border-radius: 6rpx;
padding: 4rpx 10rpx;
line-height: 1.4;
}
.card-category {
font-size: 14px;
color: #727272;
margin-top: 8px;
/* xuchao: 分类为空也预留一行高度,防止卡片内容底部对齐时名称上下跳动 */
min-height: 20px;
line-height: 20px;
font-size: 22rpx;
color: #999999;
width: 100%;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.card-bottom {
display: flex;
align-items: center;
justify-content: flex-end;
margin-top: 8px;
gap: 8px;
width: 100%;
gap: 8rpx;
}
.card-address {
flex: 1;
font-size: 14px;
color: #727272;
font-size: 22rpx;
color: #999999;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
@@ -333,8 +358,8 @@ export default {
}
.distance-text {
font-size: 12px;
color: #727272;
font-size: 22rpx;
color: #999999;
}
.nomore-area {