playback.wxml 1.1 KB

123456789101112131415161718192021222324
  1. <view>
  2. <view class="chapter-container plv-mp-skin__{{ skin }}">
  3. <view wx:if="{{ playBackListData.length > 0 }}">
  4. <view
  5. class="chapter-li"
  6. wx:for="{{ playBackListData }}"
  7. wx:key="index"
  8. bindtap="tapPlayback"
  9. data-idx="{{ index }}"
  10. >
  11. <view class="playback-image">
  12. <image mode="aspectFill" class="playback-first-image" src="{{ item.firstImage }}"/>
  13. <image mode="aspectFill" class="cover-icon back-playing" src="{{ index === currentIndex ? currentImage[0] : '../../assets/images/icon-play-back.png' }}" />
  14. </view>
  15. <view class="playback-list-msg">
  16. <text class="charpter-text list-title {{ index === currentIndex ? 'chapter-color' : 'title-color' }} ">{{ item.title }}</text>
  17. <image mode="aspectFill" class="list-duration-icon"
  18. src="{{ index === currentIndex ? currentImage[1] : ('../../assets/images/' + skin + '/icon-duration.png') }}" />
  19. <text class="harpter-text list-time {{ index === currentIndex ? 'chapter-color' : 'title-color' }}">{{ item.duration }}</text>
  20. </view>
  21. </view>
  22. </view>
  23. </view>
  24. </view>