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

View File

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

View File

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