index.wxml 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  1. <wxs src="../../utils/filter.wxs" module="filters" />
  2. <view class="activityList">
  3. <!-- <view class="activityBox" wx:for="{{activityList}}" wx:key="id">
  4. <image src="" class="cover" />
  5. <view class="footer">
  6. <view class="info">
  7. <view class="title">{{item.name}}</view>
  8. <view class="timeOut {{item.second=='00'?'closing':''}}" wx:if="{{item.second}}">距活动结束:
  9. <view class="outNum">{{item.hour}}</view>
  10. <view class="outSplit">:</view>
  11. <view class="outNum">{{item.minute}}</view>
  12. <view class="outSplit">:</view>
  13. <view class="outNum">{{item.second}}</view>
  14. </view>
  15. </view>
  16. <view class="btn {{item.second=='00'?'closingBtn':''}}">立即参与</view>
  17. </view>
  18. </view> -->
  19. <block wx:for="{{activityList}}" wx:key="id">
  20. <view class="activityBox" wx:if="{{item.bannerType==1}}">
  21. <image src="{{item.icon}}" class="cover" />
  22. <view class="footer">
  23. <view class="info">
  24. <view class="title">{{item.title}}</view>
  25. <view class="time">{{filters.formatDate(item.startTime,2)}}—{{filters.formatDate(item.endTime,2)}}</view>
  26. </view>
  27. <view class="btn" bindtap="activityEvent" data-type='{{item.type}}'>立即参与</view>
  28. </view>
  29. </view>
  30. <view class="ranking-class-1" wx:if="{{item.bannerType==2}}">
  31. <view class="header">
  32. <view class="title">{{item.title}}</view>
  33. <view class="toAll" bindtap="activityEvent" data-type='{{item.type}}'>查看全部
  34. <image src="/static/black.png" class="backIcon" />
  35. </view>
  36. </view>
  37. <view class="body">
  38. <view class="top">
  39. <view class="userBox">
  40. <view class="secondUser">
  41. <image src="{{item.userList[1].avatar}}" class="avatar" />
  42. </view>
  43. <view class="nickName textOver">{{item.userList[1].nickName||item.userList[1].eid}}</view>
  44. </view>
  45. <view class="userBox">
  46. <view class="firstUser">
  47. <image src="{{item.userList[0].avatar}}" class="avatar" />
  48. </view>
  49. <view class="nickName textOver">{{item.userList[0].nickName||item.userList[0].eid}}</view>
  50. </view>
  51. <view class="userBox">
  52. <view class="thirdUser">
  53. <image src="{{item.userList[2].avatar}}" class="avatar" />
  54. </view>
  55. <view class="nickName textOver">{{item.userList[2].nickName||item.userList[2].eid}}</view>
  56. </view>
  57. </view>
  58. <view class="btm">
  59. <view class="userBox" wx:for="{{5}}" wx:key="index" wx:for-item="items">
  60. <image src="{{item.userList[index+3].avatar}}" class="avatar" />
  61. <view class="nickName textOver">{{item.userList[index+3].nickName||item.userList[index+3].eid||'请你来挑战'}}
  62. </view>
  63. </view>
  64. </view>
  65. </view>
  66. </view>
  67. <view class="ranking-class-2 {{item.type=='1'?'yxb':item.type=='3'?'rbb':'pkb'}}" wx:if="{{item.bannerType==3}}">
  68. <view class="header">
  69. <view class="left">
  70. <image src="{{item.type=='1'?'/static/yxb.png':item.type=='3'?'/static/rbb.png':'/static/pkb.png'}}"
  71. class="icon" />
  72. <view class="title">{{item.title}}</view>
  73. <!-- <view class="title">{{type=='2'?'邀新榜':type=='3'?'热播榜':'PK榜'}}</view><text>TOP100</text> -->
  74. </view>
  75. <view class="toAll" bindtap="activityEvent" data-type='{{item.type}}'>查看全部
  76. <image src="/static/rBtn.png" class="backIcon" />
  77. </view>
  78. </view>
  79. <view class="body">
  80. <view class="row" wx:for="{{3}}" wx:key="index" wx:for-item='items'>
  81. <view class="left">
  82. <image src="/static/{{index+1}}-1.png" class="stand" />
  83. <image src="{{item.userList[index].avatar}}" class="avatar" />
  84. <view class="nickName textOver">{{item.userList[index].nickName||item.userList[index].eid}}</view>
  85. </view>
  86. <view class="right">
  87. <image src="{{item.type=='1'?'/static/yx.png':item.type=='3'?'/static/play.png':'/static/win.png'}}"
  88. class="playIcon" />
  89. <view class="num">{{item.userList[index].count}}</view>
  90. </view>
  91. </view>
  92. <!-- <view class="row">
  93. <view class="left">
  94. <image src="/static/2-1.png" class="stand" />
  95. <image src="/static/play-big.png" class="avatar" />
  96. <view class="nickName textOver">樱桃小丸子</view>
  97. </view>
  98. <view class="right">
  99. <image src="{{type=='2'?'/static/yx.png':type=='3'?'/static/play.png':'/static/win.png'}}"
  100. class="playIcon" />
  101. <view class="num">186</view>
  102. </view>
  103. </view>
  104. <view class="row">
  105. <view class="left">
  106. <image src="/static/3-1.png" class="stand" />
  107. <image src="/static/play-big.png" class="avatar" />
  108. <view class="nickName textOver">樱桃小丸子</view>
  109. </view>
  110. <view class="right">
  111. <image src="{{type=='2'?'/static/yx.png':type=='3'?'/static/play.png':'/static/win.png'}}"
  112. class="playIcon" />
  113. <view class="num">186</view>
  114. </view>
  115. </view> -->
  116. </view>
  117. </view>
  118. </block>
  119. </view>