2 Commits

Author SHA1 Message Date
c35a97d6da feat: 延迟处理 2026-04-28 16:29:53 +08:00
b91a675cd1 feat: tab的调整 2026-04-28 16:29:41 +08:00
3 changed files with 27 additions and 8 deletions

View File

@@ -13,7 +13,9 @@
class="tab-image" class="tab-image"
mode="scaleToFill" mode="scaleToFill"
/> />
<text class="tab-text">探索发现</text> <view class="tab-label">
<text class="tab-text">探索发现</text>
</view>
</view> </view>
</view> </view>
@@ -29,11 +31,13 @@
class="tab-image" class="tab-image"
mode="scaleToFill" mode="scaleToFill"
/> />
<text class="tab-text">AI伴游</text> <view class="tab-label">
<view <text class="tab-text">AI伴游</text>
v-if="showDot" <view
:class="['status-dot', modelValue === 1 ? 'status-dot--active' : 'status-dot--inactive']" v-if="showDot"
></view> :class="['status-dot', modelValue === 1 ? 'status-dot--active' : 'status-dot--inactive']"
></view>
</view>
</view> </view>
</view> </view>
</view> </view>

View File

@@ -39,7 +39,6 @@
font-size: 18px; font-size: 18px;
font-weight: 500; font-weight: 500;
color: rgba(255, 255, 255, 0.65); color: rgba(255, 255, 255, 0.65);
z-index: 20;
} }
.tab-image { .tab-image {
@@ -55,6 +54,14 @@
z-index: 5; z-index: 5;
} }
.tab-label {
display: flex;
align-items: center;
justify-content: center;
position: relative;
z-index: 20;
}
.tab-item.active .tab-text { .tab-item.active .tab-text {
color: #2e312f; color: #2e312f;
font-weight: bold; font-weight: bold;
@@ -64,10 +71,18 @@
margin-right: -24px; margin-right: -24px;
} }
.is-left .tab-label {
transform: translateX(-20px);
}
.is-right { .is-right {
margin-left: -24px; margin-left: -24px;
} }
.is-right .tab-label {
transform: translateX(20px);
}
.status-dot { .status-dot {
display: inline-block; display: inline-block;
margin-left: 6px; margin-left: 6px;

View File

@@ -47,7 +47,7 @@
<yo-indicator-dot <yo-indicator-dot
:current-index="currentIndex" :current-index="currentIndex"
:length="bannerList.length" :length="bannerList.length"
:duration="duration" :duration="0.5"
default-width="4px" default-width="4px"
active-width="16px" active-width="16px"
dot-height="4px" dot-height="4px"