添加轮播图

This commit is contained in:
Dev
2026-10-15 16:25:51 +08:00
parent 3bc5ea70fe
commit 373ac94411
9 changed files with 154 additions and 41 deletions
+18 -11
View File
@@ -12,17 +12,24 @@
<t-tab-panel wx:for="{{tabList}}" wx:for-index="index" wx:if="{{item.key != -1}}" wx:key="index" label="{{item.text}}" value="{{item.key}}" />
</t-tabs>
</view>
<view class="home-card entry-card">
<t-grid class="block" column="{{4}}" theme="card" border="{{false}}">
<t-grid-item text="Python" image="/assets/image/Python.png" />
<t-grid-item text="C" image="/assets/image/C.png" />
<t-grid-item text="C++" image="/assets/image/C__.png" />
<t-grid-item text="C#" image="/assets/image/C_.png" />
<t-grid-item text="Java" image="/assets/image/Java.png" />
<t-grid-item text="JavaScript" image="/assets/image/JavaScript.png" />
<t-grid-item text="PHP" image="/assets/image/PHP.png" />
<t-grid-item text="Go" image="/assets/image/Go.png" />
</t-grid>
<view class="home-card entry-card" wx:if="{{bannerList.length > 0}}">
<view class="entry-swiper">
<t-swiper
autoplay="{{true}}"
duration="{{500}}"
interval="{{5000}}"
navigation="{{bannerNavigation}}"
paginationPosition="top-right"
imageProps="{{bannerImageProps}}"
list="{{bannerList}}"
height="416rpx"
bind:change="onBannerChange"
/>
<view class="entry-swiper__caption" wx:if="{{currentBanner.title || currentBanner.subtitle}}">
<view class="entry-swiper__title" wx:if="{{currentBanner.title}}">{{currentBanner.title}}</view>
<view class="entry-swiper__subtitle" wx:if="{{currentBanner.subtitle}}">{{currentBanner.subtitle}}</view>
</view>
</view>
</view>
<view class="home-card guarantee-card">
<t-cell title="平台保障" bind:click="toSubscribe" description="3分钟客服响应 平台监管售后" align="top" image="/assets/image/baozhang.png" hover bordered="{{false}}" />