抖音c端
25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

index.ttml 1.1 KiB

2 년 전
12345678910111213141516171819
  1. <view tt:if="{{list.length>0&&mouldType==0}}" class="index-slide-view">
  2. <swiper class="imageContainer" bindchange="handleChange" previous-margin="39rpx" next-margin="40rpx" circular autoplay>
  3. <block tt:for="{{list}}" tt:key="{{index}}">
  4. <swiper-item class="item">
  5. <image data-id="{{item.id}}" data-data="{{item}}" bindtap='gotobannerdetail' class="itemImg {{currentIndex == index ? 'active': ''}}" src="{{item.coverImg}}"></image>
  6. </swiper-item>
  7. </block>
  8. </swiper>
  9. </view>
  10. <view tt:if="{{list.length>0&&mouldType==1}}" class="index-slide-view1">
  11. <swiper class="imageContainer1" bindchange="handleChange" indicator-color indicator-active-color="#fff" indicator-dots circular autoplay>
  12. <block tt:for="{{list}}" tt:key="{{index}}">
  13. <swiper-item class="item1">
  14. <image data-id="{{item.id}}" data-data="{{item}}" bindtap='gotobannerdetail' class="itemImg1 {{currentIndex == index ? 'active1_a': 'active1'}}" src="{{item.coverImg}}"></image>
  15. </swiper-item>
  16. </block>
  17. </swiper>
  18. </view>