bangdan.wxml 1.9 KB

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