fix(ui): 全局清除残留Emoji并升级性别标签为纯矢量SVG图标,落实TDD规范门禁
这个提交包含在:
@@ -207,5 +207,21 @@ export const ICONS = {
|
||||
<line x1="15" y1="9" x2="9" y2="15"></line>
|
||||
<line x1="9" y1="9" x2="15" y2="15"></line>
|
||||
</svg>
|
||||
`),
|
||||
|
||||
female: svgToUri(`
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="#EC4899" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round">
|
||||
<circle cx="12" cy="9" r="5"></circle>
|
||||
<line x1="12" y1="14" x2="12" y2="21"></line>
|
||||
<line x1="9" y1="18" x2="15" y2="18"></line>
|
||||
</svg>
|
||||
`),
|
||||
|
||||
male: svgToUri(`
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="#60A5FA" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round">
|
||||
<circle cx="10" cy="14" r="5"></circle>
|
||||
<line x1="19" y1="5" x2="13.6" y2="10.4"></line>
|
||||
<polyline points="15 5 19 5 19 9"></polyline>
|
||||
</svg>
|
||||
`)
|
||||
};
|
||||
|
||||
@@ -33,7 +33,7 @@
|
||||
<view class="banner-card" :style="{ background: banner.bg }">
|
||||
<view class="banner-tag">{{ banner.tag }}</view>
|
||||
<view class="banner-title">{{ banner.title }}</view>
|
||||
<view class="banner-sub">点击立即参与 ⚡</view>
|
||||
<view class="banner-sub">点击立即参与</view>
|
||||
</view>
|
||||
</swiper-item>
|
||||
</swiper>
|
||||
@@ -106,7 +106,9 @@
|
||||
<view class="card-body">
|
||||
<view class="row-nickname">
|
||||
<text class="nickname">{{ expert.nickname }}</text>
|
||||
<text class="gender-tag" :class="expert.gender">{{ expert.gender === 'female' ? '♀' : '♂' }}</text>
|
||||
<view class="gender-tag" :class="expert.gender">
|
||||
<image class="gender-svg" :src="expert.gender === 'female' ? ICONS.female : ICONS.male" mode="aspectFit" />
|
||||
</view>
|
||||
</view>
|
||||
<view class="rank-badge">{{ expert.rankTag }}</view>
|
||||
|
||||
@@ -540,17 +542,23 @@ const navTo = (url) => {
|
||||
}
|
||||
|
||||
.gender-tag {
|
||||
font-size: 20rpx;
|
||||
padding: 2rpx 8rpx;
|
||||
width: 32rpx;
|
||||
height: 32rpx;
|
||||
border-radius: 8rpx;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
|
||||
&.female {
|
||||
background: rgba(236, 72, 153, 0.2);
|
||||
color: #F472B6;
|
||||
}
|
||||
&.male {
|
||||
background: rgba(59, 130, 246, 0.2);
|
||||
color: #60A5FA;
|
||||
}
|
||||
|
||||
.gender-svg {
|
||||
width: 20rpx;
|
||||
height: 20rpx;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
在新工单中引用
屏蔽一个用户