index.wxml 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  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)}}
  26. </view>
  27. </view>
  28. <view class="btn" bindtap="activityEvent" data-info="{{item}}">立即参与</view>
  29. </view>
  30. </view>
  31. <view class="ranking-class-1" wx:if="{{item.bannerType==2}}">
  32. <view class="header">
  33. <view class="title">{{item.title}}</view>
  34. <view class="toAll" bindtap="activityEvent" data-info="{{item}}">查看全部
  35. <image src="/static/black.png" class="backIcon" />
  36. </view>
  37. </view>
  38. <view class="body">
  39. <view class="top">
  40. <view class="userBox">
  41. <view class="secondUser">
  42. <image src="{{item.userList[1].avatar||'/static/nullAvatar.png'}}" class="avatar" bindtap="jumpUserInfo"
  43. data-uid='{{item.userList[1].uid}}' />
  44. </view>
  45. <view class="nickName textOver">{{item.userList[1].nickName||item.userList[1].eid}}</view>
  46. </view>
  47. <view class="userBox">
  48. <view class="firstUser">
  49. <image src="{{item.userList[0].avatar||'/static/nullAvatar.png'}}" class="avatar" bindtap="jumpUserInfo"
  50. data-uid='{{item.userList[0].uid}}' />
  51. </view>
  52. <view class="nickName textOver">{{item.userList[0].nickName||item.userList[0].eid}}</view>
  53. </view>
  54. <view class="userBox">
  55. <view class="thirdUser">
  56. <image src="{{item.userList[2].avatar||'/static/nullAvatar.png'}}" class="avatar" bindtap="jumpUserInfo"
  57. data-uid='{{item.userList[2].uid}}' />
  58. </view>
  59. <view class="nickName textOver">{{item.userList[2].nickName||item.userList[2].eid}}</view>
  60. </view>
  61. </view>
  62. <view class="btm">
  63. <view class="userBox" wx:for="{{5}}" wx:key="index" wx:for-item="items">
  64. <image src="{{item.userList[index+3].avatar||'/static/nullAvatar.png'}}" class="avatar"
  65. bindtap="jumpUserInfo" data-uid='{{item.userList[index+3].uid}}' />
  66. <view class="nickName textOver">
  67. {{item.userList[index+3].nickName||item.userList[index+3].eid||'请你来挑战'}}
  68. </view>
  69. </view>
  70. </view>
  71. </view>
  72. </view>
  73. <view class="ranking-class-2 {{item.type=='1'?'yxb':item.type=='3'?'rbb':'pkb'}}" wx:if="{{item.bannerType==3}}">
  74. <view class="header">
  75. <view class="left">
  76. <image src="{{item.type=='1'?'/static/yxb.png':item.type=='3'?'/static/rbb.png':'/static/pkb.png'}}"
  77. class="icon" />
  78. <view class="title">{{item.title}}</view>
  79. </view>
  80. <view class="toAll" bindtap="activityEvent" data-info="{{item}}">查看全部
  81. <image src="/static/rBtn.png" class="backIcon" />
  82. </view>
  83. </view>
  84. <view class="body">
  85. <view class="row" wx:for="{{3}}" wx:key="index" wx:for-item='items'>
  86. <view class="left">
  87. <image src="/static/{{index+1}}-1.png" class="stand" />
  88. <image src="{{item.userList[index].avatar||'/static/nullAvatar.png'}}" class="avatar" bindtap="jumpUserInfo"
  89. data-uid='{{item.userList[index].uid}}' />
  90. <view class="nickName textOver">{{item.userList[index].nickName||item.userList[index].eid}}
  91. </view>
  92. </view>
  93. <view class="right">
  94. <image src="{{item.type=='1'?'/static/yx.png':item.type=='3'?'/static/play.png':'/static/win.png'}}"
  95. class="playIcon" />
  96. <view class="num">{{item.userList[index].count}}</view>
  97. </view>
  98. </view>
  99. <!-- <view class="row">
  100. <view class="left">
  101. <image src="/static/2-1.png" class="stand" />
  102. <image src="/static/play-big.png" class="avatar" bindtap="jumpUserInfo" data-uid='{{userList[1].uid}}' />
  103. <view class="nickName textOver">樱桃小丸子</view>
  104. </view>
  105. <view class="right">
  106. <image src="{{type=='2'?'/static/yx.png':type=='3'?'/static/play.png':'/static/win.png'}}"
  107. class="playIcon" />
  108. <view class="num">186</view>
  109. </view>
  110. </view>
  111. <view class="row">
  112. <view class="left">
  113. <image src="/static/3-1.png" class="stand" />
  114. <image src="/static/play-big.png" class="avatar" bindtap="jumpUserInfo" data-uid='{{userList[1].uid}}' />
  115. <view class="nickName textOver">樱桃小丸子</view>
  116. </view>
  117. <view class="right">
  118. <image src="{{type=='2'?'/static/yx.png':type=='3'?'/static/play.png':'/static/win.png'}}"
  119. class="playIcon" />
  120. <view class="num">186</view>
  121. </view>
  122. </view> -->
  123. </view>
  124. </view>
  125. </block>
  126. </view>