From 4c472f6bbf82e5ef95b60ac8e417760d89a7ba36 Mon Sep 17 00:00:00 2001 From: yiming <m13691596795@163.com> Date: 星期五, 29 三月 2024 19:39:17 +0800 Subject: [PATCH] 购物车2 --- pages/home/home.wxml | 12 +++++++++++- 1 files changed, 11 insertions(+), 1 deletions(-) diff --git a/pages/home/home.wxml b/pages/home/home.wxml index 18466b5..d965282 100644 --- a/pages/home/home.wxml +++ b/pages/home/home.wxml @@ -13,7 +13,17 @@ </t-search> </view> <view class="swiper-wrap"> - <t-swiper wx:if="{{bannerList.length > 0}}" list="{{bannerList}}" autoplay="{{autoplay}}" duration="{{duration}}" interval="{{interval}}" navigation="{{navigation}}" bind:click="navToActivityDetail" /> + <!-- <t-swiper wx:if="{{bannerList.length > 0}}" list="{{bannerList}}" autoplay="{{autoplay}}" duration="{{duration}}" interval="{{interval}}" navigation="{{ { type: 'dots' } }}" height="380rpx" bind:click="navToActivityDetail" /> --> + <swiper interval="5000" indicator-dots="true" autoplay="true" circular="true" class="swiper" wx:if="{{bannerList.length > 0}}"> + <swiper-item wx:for="{{bannerList}}" wx:for-index="index" wx:key="index" data-info="{{item}}" bindtap="navToActivityDetail"> + <view class="swiperItem"> + <image src="{{item.value}}" mode="aspectFill" class="img" /> + </view> + </swiper-item> + </swiper> + <view class="body-loading" wx:else> + <t-loading theme="circular" size="40rpx" class="wrapper" /> + </view> </view> </view> <view class="home-page-menu"> -- Gitblit v1.9.1