bangdan.wxml 2.0 KB

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