index.wxml 1.3 KB

12345678910111213141516171819202122
  1. <view class='product-bg'>
  2. <swiper indicator-dots="{{indicatorDots}}" indicator-active-color="#e93323"
  3. autoplay="{{autoplay}}" circular="{{circular}}" interval="{{interval}}" duration="{{duration}}" bindchange="change">
  4. <swiper-item wx:if='{{videoline}}'>
  5. <view class="item">
  6. <video id="myVideo" src='{{videoline}}' objectFit="cover" controls style="width:100%;height:100% " show-center-play-btn show-mute-btn="true" auto-pause-if-navigate custom-cache="{{false}}"></video>
  7. <cover-view class="poster" wx:if="{{controls}}">
  8. <cover-image class="image" src="{{imgUrls[0]}}"></cover-image>
  9. </cover-view>
  10. <cover-view class="stop" wx:if="{{controls}}" bindtap="bindPause">
  11. <cover-image class="image" src="../../images/stop.png"></cover-image>
  12. </cover-view>
  13. </view>
  14. </swiper-item>
  15. <block wx:for="{{imgUrls}}" wx:key='index'>
  16. <swiper-item>
  17. <image src="{{item}}" class="slide-image"/>
  18. </swiper-item>
  19. </block>
  20. </swiper>
  21. <!-- <view class='pages'>{{currents}}/{{imgUrls.length || 1}}</view> -->
  22. </view>