style:场馆卡片类型与社保卡标签并为同一行(类型在前,行内不换行)

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
jacobxu666
2026-10-29 09:42:41 +08:00
co-authored by Claude Fable 5
parent c0a94a0d6d
commit 6d1bfc2f1f
+16 -13
View File
@@ -28,12 +28,12 @@
</view>
<view class="card-info">
<text class="card-name">{{ item.name }}</text>
<!-- xuchao: 标签展示位——场馆均支持实体/电子社保卡,固定两枚 -->
<!-- xuchao: 类型 + 社保卡标签同一行(类型在前,场馆均支持实体/电子社保卡) -->
<view class="card-tags">
<text class="card-category">{{ item.category }}</text>
<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>
<view class="card-distance" v-if="item.distance !== null">
@@ -307,14 +307,26 @@ export default {
white-space: nowrap;
}
/* xuchao: 标签展示位——品牌红调胶囊,形制同折扣页 tag-coupon */
/* xuchao: 类型 + 标签同一行;标签为品牌红调胶囊,形制同折扣页 tag-coupon */
.card-tags {
display: flex;
align-items: center;
gap: 8rpx;
flex-shrink: 0;
min-width: 0;
}
.card-category {
/* xuchao: 类型可收缩省略,保证整行不换行(胶囊不缩) */
font-size: 22rpx;
color: #999999;
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.tag-card {
flex-shrink: 0;
font-size: 20rpx;
color: #E8542F;
background: rgba(232, 84, 47, 0.08);
@@ -323,15 +335,6 @@ export default {
line-height: 1.4;
}
.card-category {
font-size: 22rpx;
color: #999999;
width: 100%;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.card-bottom {
display: flex;
align-items: center;