index.wxml 7.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142
  1. <wxs src="../../utils/filter.wxs" module="filters" />
  2. <view class="activityList">
  3. <block wx:for="{{activityList}}" wx:key="id">
  4. <!-- 邀新活动 -->
  5. <view class="newActivityBox" data-info="{{item}}" bindtap="activityEvent"
  6. wx:if="{{item.bannerType==6||item.bannerType==7||item.bannerType==8}}">
  7. <image src="{{item.icon}}" class="cover" />
  8. <view class="footer">
  9. <view class="row">
  10. <view class="title">{{item.title}}</view>
  11. <view class="btn">
  12. {{item.type=='10'?'立即开通':'立即参与'}}
  13. </view>
  14. </view>
  15. </view>
  16. </view>
  17. <view class="activityBox" wx:if="{{item.bannerType==1}}" bindtap="activityEvent" data-info="{{item}}">
  18. <image src="{{item.icon}}" class="cover" />
  19. </view>
  20. <view class="ranking-class-1 {{item.type=='2'?'yxb':item.type=='3'?'rbb':'pkb'}}"
  21. wx:if="{{item.bannerType==2}}">
  22. <view class="header">
  23. <view class="left">
  24. <image src="{{item.type=='2'?'/static/yxb.png':item.type=='3'?'/static/rbb.png':'/static/pkb.png'}}"
  25. class="icon" />
  26. <view class="title">{{item.title}}</view>
  27. </view>
  28. <view class="toAll" bindtap="activityEvent" data-info="{{item}}">查看全部
  29. <image src="/static/rbtn.png" class="backIcon" />
  30. </view>
  31. </view>
  32. <view class="body">
  33. <view class="top">
  34. <view class="userBox" bindtap="jumpUserInfo" data-uid='{{item.userList[1].uid}}'>
  35. <view class="secondUser">
  36. <image src="{{item.userList[1].avatar||'/static/nullAvatar.png'}}" class="avatar" />
  37. </view>
  38. <view class="nickName textOver">{{item.userList[1].nickName||item.userList[1].eid||'等你来占位'}}
  39. </view>
  40. </view>
  41. <view class="userBox" bindtap="jumpUserInfo" data-uid='{{item.userList[0].uid}}'>
  42. <view class="firstUser">
  43. <image src="{{item.userList[0].avatar||'/static/nullAvatar.png'}}" class="avatar" />
  44. </view>
  45. <view class="nickName textOver">{{item.userList[0].nickName||item.userList[0].eid||'等你来占位'}}
  46. </view>
  47. </view>
  48. <view class="userBox" bindtap="jumpUserInfo" data-uid='{{item.userList[2].uid}}'>
  49. <view class="thirdUser">
  50. <image src="{{item.userList[2].avatar||'/static/nullAvatar.png'}}" class="avatar" />
  51. </view>
  52. <view class="nickName textOver">{{item.userList[2].nickName||item.userList[2].eid||'等你来占位'}}
  53. </view>
  54. </view>
  55. </view>
  56. <view class="btm">
  57. <view class="userBox" wx:for="{{5}}" wx:key="index" wx:for-item="items">
  58. <image src="{{item.userList[index+3].avatar||'/static/nullAvatar.png'}}" class="avatar"
  59. bindtap="jumpUserInfo" data-uid='{{item.userList[index+3].uid}}' />
  60. <view class="nickName textOver">
  61. {{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=='2'?'yxb':item.type=='3'?'rbb':'pkb'}}"
  68. wx:if="{{item.bannerType==3}}">
  69. <view class="header">
  70. <view class="left">
  71. <image src="{{item.type=='2'?'/static/yxb.png':item.type=='3'?'/static/rbb.png':'/static/pkb.png'}}"
  72. class="icon" />
  73. <view class="title">{{item.title}}</view>
  74. </view>
  75. <view class="toAll" bindtap="activityEvent" data-info="{{item}}">查看全部
  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' bindtap="jumpUserInfo"
  81. data-uid='{{item.userList[index].uid}}'>
  82. <view class="left">
  83. <image src="/static/{{index+1}}-1.png" class="stand" />
  84. <image src="{{item.userList[index].avatar||'/static/nullAvatar.png'}}" class="avatar" />
  85. <view class="nickName textOver">
  86. {{item.userList[index].nickName||item.userList[index].eid||'等你来占位'}}
  87. </view>
  88. </view>
  89. <view class="right">
  90. <image
  91. src="{{item.type=='2'?'/static/yx.png':item.type=='3'?'/static/play.png':'/static/win.png'}}"
  92. class="playIcon" />
  93. <view class="num">{{item.userList[index].count}}</view>
  94. </view>
  95. </view>
  96. </view>
  97. </view>
  98. <view class="activityBox" wx:if="{{item.bannerType==4&&!isIos}}">
  99. <image src="{{item.icon}}" class="cover-small " />
  100. <view class="footer">
  101. <view class="info">
  102. <view class="title">{{item.title}}</view>
  103. <view class="time" wx:if="{{!item.voucherType}}">
  104. {{filters.formatDate(item.startTime,2)}}—{{filters.formatDate(item.endTime,2)}}
  105. </view>
  106. <view class="timeOut {{item.finish?'closing':''}}" wx:if="{{item.voucherType}}">距活动结束:
  107. <view class="outNum">{{item.hour}}</view>
  108. <view class="outSplit">:</view>
  109. <view class="outNum">{{item.minute}}</view>
  110. <view class="outSplit">:</view>
  111. <view class="outNum">{{item.second}}</view>
  112. </view>
  113. </view>
  114. <view class="btn {{item.finish?'closingBtn':''}}" data-info='{{item}}' bindtap="drawVoucher">
  115. {{item.finish?
  116. '已结束':item.voucherType?'立即使用':'立即领取'}}
  117. </view>
  118. </view>
  119. </view>
  120. <view class="newActivityBox" wx:if="{{item.bannerType==5}}" data-info="{{item}}" bindtap="activityEvent">
  121. <image src="{{item.icon}}" class="cover" />
  122. <view class="footer">
  123. <view class="row">
  124. <view class="title">{{item.title}}</view>
  125. <view class="partake">
  126. <text>{{filters.numFilter(item.joinCount)}}</text>人参与
  127. </view>
  128. </view>
  129. <view class="row" style="margin-top: 10rpx;">
  130. <view class="time">
  131. {{filters.formatDate(item.startTime,2)}}—{{filters.formatDate(item.endTime,2)}}
  132. </view>
  133. <view class="btn">
  134. 立即参与
  135. </view>
  136. </view>
  137. </view>
  138. </view>
  139. </block>
  140. </view>
  141. <buyVip id="buyVip" bind:toBuy="toBuy" />
  142. <Voucher id="voucher" bind:reload='getActivities' />