This repository has been archived on 2024-07-11. You can view files and clone it, but cannot push or open issues or pull requests.
yoshop-wechat/components/diy/banner/banner.wxml

11 lines
837 B
Plaintext
Raw Permalink Normal View History

2020-04-25 22:59:04 +08:00
<!-- banner轮播 -->
<view class="diy-banner">
<swiper autoplay="{{ autoplay }}" class="banner-box swiper-box dot-{{ itemStyle.btnShape }}" duration="{{ duration }}" circular="{{ true }}" indicator-dots="{{ indicatorDots }}" interval="{{ params.interval }}" indicator-color="{{ itemStyle.btnColor }}" indicator-active-color="#000"
bindchange="_bindChange" data-item-key="{{ itemIndex }}" style="height: {{ imgHeights[imgCurrent] }}rpx">
<swiper-item wx:for-item="banner" wx:for="{{dataList}}" wx:key="this">
<image mode="widthFix" catchtap="navigationTo" data-url="{{ banner.linkUrl }}" class="slide-image" bindload="_imagesHeight" src="{{banner.imgUrl}}" data-id="{{index}}" data-item-key="{{ itemIndex }}"></image>
</swiper-item>
</swiper>
<!-- 顶部置灰 -->
<!-- <view class="linear"></view> -->
</view>