style(ui): 深度优化首页分类导航HOT热门角标,精简标签滥用并强化电竞流光质感

这个提交包含在:
wikiboss
2026-09-16 19:56:58 +08:00
父节点 8bc0d018fe
当前提交 7211c6a2b0
共有 3 个文件被更改,包括 35 次插入 和 14 次删除

查看文件

@@ -20,7 +20,9 @@
>
<image class="cat-icon-svg" :src="item.icon" mode="aspectFit" />
<text class="cat-name">{{ item.name }}</text>
<view v-if="item.hot" class="cat-badge">HOT</view>
<view v-if="item.hot" class="cat-badge">
<text class="badge-text">HOT</text>
</view>
</view>
</view>
</scroll-view>
@@ -241,7 +243,7 @@ const navTo = (url) => {
.category-scroll {
white-space: nowrap;
padding: 10rpx 32rpx 20rpx;
padding: 16rpx 32rpx 20rpx;
width: 100%;
box-sizing: border-box;
@@ -277,15 +279,28 @@ const navTo = (url) => {
}
.cat-badge {
position: absolute;
top: -8rpx;
top: -10rpx;
right: -8rpx;
background: #EF4444;
color: #FFF;
font-size: 16rpx;
padding: 2rpx 8rpx;
border-radius: 12rpx;
font-weight: 700;
box-shadow: 0 2rpx 6rpx rgba(239, 68, 68, 0.4);
height: 26rpx;
display: inline-flex;
align-items: center;
justify-content: center;
background: linear-gradient(135deg, #FF3B30 0%, #FF2D55 100%);
border: 2rpx solid #0A0F1D;
padding: 0 10rpx;
border-radius: 14rpx;
box-shadow: 0 4rpx 12rpx rgba(255, 45, 85, 0.5);
z-index: 3;
pointer-events: none;
.badge-text {
color: #FFFFFF;
font-size: 16rpx;
font-weight: 800;
font-style: italic;
line-height: 1;
letter-spacing: 1rpx;
}
}
&.active {