bangdan.wxml 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. <!-- 因为其他几个页面和榜单是一样的所以其他3个页面就都用的这一个界面 -->
  2. <block wx:if="{{showCover}}">
  3. <!-- 蒙板内容 要放在蒙板的外面-->
  4. <view class="hmly-menu">
  5. <view class="hmly-menu-item {{currentTab === index ? 'hmly-menu-item-active' : ''}}"
  6. wx:for="{{navTitle}}" wx:key="index" data-index="{{index}}" bindtap="coverCheck">
  7. {{item.title}}
  8. </view>
  9. </view>
  10. <!-- 蒙板 -->
  11. <view class="hmly-cover" bindtap="closeCover"></view>
  12. </block>
  13. <block>
  14. <view class="hmly-top-nav">
  15. <scroll-view class="hmly-scroll-wrapper" scroll-x scroll-with-animation="true" scroll-into-view="item{{currentTab < 4 ? 0 : currentTab - 3}}" catchtouchmove="preventTouchMove" >
  16. <view class="hmly-navigate-item" id="item{{index}}" wx:for="{{navTitle}}" wx:key="index" data-index="{{index}}" bindtap="handleClick">
  17. <view class="hmly-names {{currentTab === index ? 'active' : ''}}">{{item.title}}</view>
  18. <view class="hmly-currtline {{currentTab === index ? 'active' : ''}}"></view>
  19. </view>
  20. </scroll-view>
  21. <!-- 下拉按钮 -->
  22. <view class="hmly-pull-down" bindtap="pullDown">
  23. <view class="icon-right"></view>
  24. </view>
  25. </view>
  26. <!-- 对应的内容区 -->
  27. <view class="hmly-content-item" wx:for="{{list}}" wx:key="index">
  28. <view class="hmly-index-number">
  29. <view>{{index > 10 ? index : '0'+(index+1)}}</view>
  30. </view>
  31. <image src="{{item.albumCoverUrl290}}"></image>
  32. <view class="hmly-content-left">
  33. <view class="hmly-content-title">{{item.title}}</view>
  34. <view class="hmly-content-text">{{item.trackTitle}}</view>
  35. <view class="hmly-count">
  36. <view style="margin-right:25rpx;">
  37. <!-- 本例中33.2亿的单位是写死的,此处应该是后端返回数据吧 -->
  38. <text class="icon-video"></text>
  39. <text class="">33.2亿</text>
  40. </view>
  41. <view>
  42. <text class="icon"></text>
  43. <text class="">44集</text>
  44. </view>
  45. </view>
  46. </view>
  47. </view>
  48. </block>