index.wxml 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242
  1. <wxs src='../../../pages/wxs/util.wxs' module='filter' />
  2. <view class="coin-head" ref="coinHead">
  3. <view class="head-user">
  4. <text class="tip" data-url="/pages/account/monetaryCenter/ruleInstract" bindtap="jumpPage">
  5. <text class='icon icon-exclamatory font18'></text>
  6. </text>
  7. <view class="headImg">
  8. <image src="{{avatar || '../../static/img/default_logo.jpg'}}" style="width:100%;height:100%"></image>
  9. </view>
  10. <text class="level"><text class='icon icon-vip'></text> <text>{{levelName}}</text></text>
  11. <view class="coin"><text class="con">宝贝币</text> {{stat.sumCoin}}</view>
  12. <view class="show-detail" data-url="/pages/account/monetaryCenter/monetaryDetail" bindtap="jumpPage">查看明细</view>
  13. </view>
  14. <swiper class="swipe" previous-margin="20px" next-margin="20px" current="{{initialSwipe}}">
  15. <swiper-item class="swipe-item" wx:for="{{BB_coin}}" wx:key="level">
  16. <view class="item-box" style="{{'background:url('+item.bg_url+') no-repeat;background-size:100%'}}">
  17. <view class="current-level" wx:if="{{initialSwipe<=index}}">{{index-initialSwipe>0?'未达成':'当前等级'}}</view>
  18. <view class="member">
  19. <text class="member-type">{{item.levelName}}会员</text>
  20. <text class="member-num">(累计获得{{item.min_num}})</text>
  21. </view>
  22. <view class="speed-rate">
  23. <view class="rate-ins" wx:if="{{(stat.allCoin>=item.max_num||(stat.allCoin>=item.min_num&&item.level==6))}}">{{item.level==6?'已达到最高等级':'已达成当前等级'}}</view>
  24. <view class="rate-ins" wx:else>再获得{{item.min_num-stat.allCoin<=0?item.max_num-stat.allCoin:item.min_num-stat.allCoin}}即可升级至{{item.min_num-stat.allCoin<=0? item.next_level:item.levelName}}</view>
  25. <view class="tate">
  26. <view class="rate-wid" style="{{(stat.allCoin>item.max_num||(item.level==6&&stat.allCoin>item.min_num))?'width:100%':(stat.allCoin<item.min_num?'width:0%':('width:'+((stat.allCoin-item.min_num)/(item.max_num-item.min_num)*100)+'%'))}}"></view>
  27. </view>
  28. </view>
  29. </view>
  30. </swiper-item>
  31. </swiper>
  32. </view>
  33. <view class="modular">
  34. <view class="modal-title">等级特权</view>
  35. <view style="padding:0 20rpx">
  36. <view class="privilege-type">
  37. <view class="type-item">
  38. <view class="type-item-box {{defaultLevel==1?'act_privilege':''}}" data-index="1" bindtap="checkOptions">
  39. <text class='icon icon-coin-goods' style="font-size:54rpx"></text>
  40. <view class="type-item-name">电商抵扣</view>
  41. </view>
  42. </view>
  43. <view class="type-item">
  44. <view class="type-item-box {{defaultLevel==2?'act_privilege':''}}" data-index="2" bindtap="checkOptions">
  45. <text class='icon icon-coin-act' style="line-height: .8;font-size: 62rpx;"></text>
  46. <view class="type-item-name">活动抵扣</view>
  47. </view>
  48. </view>
  49. <view class="type-item">
  50. <view class="type-item-box {{defaultLevel==3?'act_privilege':''}}" data-index="3" bindtap="checkOptions">
  51. <!-- <text class='icon icon-lock font16 position-icon 'wx:if="{{initialSwipe<1}}"></text> -->
  52. <text class='icon icon-vip-privilege' style="line-height: .8;"></text>
  53. <view class="type-item-name">抢购特权</view>
  54. </view>
  55. </view>
  56. <view class="type-item">
  57. <view class="type-item-box {{defaultLevel==4?'act_privilege':''}}" data-index="4" bindtap="checkOptions">
  58. <text class='icon icon-more' style="font-size:54rpx"></text>
  59. <view class="type-item-name">敬请期待</view>
  60. </view>
  61. </view>
  62. </view>
  63. <view class="privilege-ins">
  64. <view class="arrow" style="{{'left:calc('+percent+' - 15rpx - 25%/2)'}}"></view>
  65. <view class="card" wx:if="{{defaultLevel==1}}">
  66. <view class="card-title">
  67. <view class="card-left">电商抵扣</view>
  68. <view class="card-right" data-url="/pages/product/goods/index" bindtap="jumpPage">更多</view>
  69. </view>
  70. <view class="card-content goods-fixed">
  71. <view class="good-item" wx:for="{{levelList.goods}}" wx:key="aid" data-aid="{{item.aid}}" data-type="goods" bindtap="jumpToDetail">
  72. <view class="item-top-img">
  73. <image src="{{item.logo}}" mode="widthFix" style="width:100%;display: block;;height: auto;"></image>
  74. </view>
  75. <view class="goods-title">
  76. {{item.title}}
  77. </view>
  78. <view class="sign subtitleColor">
  79. 宝贝币最高可抵{{item.maxUserCoin/10}}元
  80. </view>
  81. <view class="good-price subtitleColor">
  82. <view class="btn-box">
  83. <view class="btn">¥{{item.finalPrice}}</view>
  84. </view>
  85. <text class="price-ins">抵扣后</text>
  86. </view>
  87. </view>
  88. </view>
  89. </view>
  90. <view class="card" wx:if="{{defaultLevel==2}}">
  91. <view class="card-title">
  92. <view class="card-left">活动抵扣</view>
  93. <view class="card-right" data-url="/pages/home/index" bindtap="jumpPage">更多</view>
  94. </view>
  95. <view class="card-content">
  96. <view class="act-item" wx:for="{{levelList.activite}}" wx:key="aid" data-aid="{{item.aid}}" data-type="act" bindtap="jumpToDetail">
  97. <view class="act-l">
  98. <image src="{{filter.formatImg(imgPath, item.logo)}}" mode="widthFix" style="width:100%;display: block;height: auto;"></image>
  99. </view>
  100. <view class="act-c">
  101. <view class="act-title">{{item.title}}</view>
  102. <view class="act-sign subtitleColor">宝贝币最高可抵{{item.maxUserCoin/10}}元</view>
  103. </view>
  104. <view class="act-r subtitleColor">
  105. <view class="btn-box">
  106. <view class="btn"><text class="font12">¥</text>{{item.finalPrice}}</view>
  107. </view>
  108. <view class="price-ins">抵扣后</view>
  109. </view>
  110. </view>
  111. </view>
  112. </view>
  113. <view class="card" wx:if="{{defaultLevel==3}}">
  114. <view class="card-title">
  115. <view class="card-left">抢购特权</view>
  116. </view>
  117. <view class="card-content">
  118. <view class="privilege-title">
  119. <view>在活动未开售时,可使用宝贝币来兑换抢购特权。</view>
  120. <view>兑换方法<text class="subtitleColor">详见每个未开售的活动详情。</text>每个等级可兑换特权不同,具体如下:</view> </view>
  121. <view class="privilege-content">
  122. <view class="table">
  123. <view class="tr">
  124. <view class="th">等级</view><view class="th">可兑换特权</view>
  125. </view>
  126. <view class="tr">
  127. <view class="td">普通</view><view class="td">无</view>
  128. </view>
  129. <view class="tr">
  130. <view class="td">白银</view><view class="td">提前5分钟</view>
  131. </view>
  132. <view class="tr">
  133. <view class="td">黄金</view><view class="td">提前5、10分钟</view>
  134. </view>
  135. <view class="tr">
  136. <view class="td">一钻</view><view class="td">提前5、10、15分钟</view>
  137. </view>
  138. <view class="tr">
  139. <view class="th">二钻</view><view class="th">提前5、10、15、20分钟</view>
  140. </view>
  141. <view class="tr">
  142. <view class="th">三钻</view><view class="th">提前5、10、15、20分钟</view>
  143. </view>
  144. </view>
  145. </view>
  146. </view>
  147. </view>
  148. <view class="card" wx:if="{{defaultLevel==4}}">
  149. <view class="card-title">
  150. <view class="card-left">敬请期待</view>
  151. </view>
  152. <view class="card-content">
  153. <view class="privilege-title">更多特权正在筹备中,敬请期待~</view>
  154. <view class="privilege-content">
  155. <image src="https://img.bbztx.com/image_test/upload/thumbs/20220513/logo/1652434489715080641.png" mode="widthFix" style="width: 35%;display: block;margin: 0 auto;"></image>
  156. </view>
  157. </view>
  158. </view>
  159. </view>
  160. </view>
  161. </view>
  162. <view class="modular">
  163. <view class="modal-title">获取宝贝币</view>
  164. <view class="modal-label card" style="padding: 30rpx 20rpx 30rpx 34rpx;margin-top: 15rpx;">
  165. <view class="card-title coin-card-mar">
  166. <view class="card-left">推荐任务</view>
  167. </view>
  168. <!-- <view class="coin-list">
  169. <view class="coin-list-l">
  170. <view class="icon-box">
  171. <text class='icon icon-coin-consumption'></text>
  172. </view>
  173. </view>
  174. <view class="coin-list-c">
  175. <view class="get-method">
  176. <text>参加活动 </text>
  177. <text class="subtitleColor">至少+200宝贝币</text>
  178. </view>
  179. <view class="get-ins">若参与者的实付金额≥200,那么在参加活动后,可获得实付金额等额的宝贝币。</view>
  180. </view>
  181. <view class="coin-list-r" data-url="/pages/home/index" bindtap="jumpPage">去购买</view>
  182. </view>
  183. <view class="coin-list">
  184. <view class="coin-list-l">
  185. <view class="icon-box">
  186. <text class='icon icon-coin-comment'></text>
  187. </view>
  188. </view>
  189. <view class="coin-list-c">
  190. <view class="get-method">
  191. <text>评价活动 </text>
  192. <text class="subtitleColor">+ 50~100宝贝币</text>
  193. </view>
  194. <view class="get-ins">对活动进行评价后,可随机获得50~100枚不等的宝贝币。</view>
  195. </view>
  196. <view class="coin-list-r" data-url="/pages/order/index/order?otype=3" bindtap="jumpPage">
  197. 去评价
  198. </view>
  199. </view> -->
  200. <view class="coin-list" wx:for="{{taskList.recommend_task}}" wx:key="id">
  201. <view class="coin-list-l">
  202. <view class="icon-box">
  203. <text class='icon {{filter.getIcon(item.code)}}'></text>
  204. </view>
  205. </view>
  206. <view class="coin-list-c">
  207. <view class="get-method">
  208. <text>{{item.title}} </text>
  209. <text wx:if="{{item.code=='browseArticle'}}">({{item.passCount+'/'+item.maxPassCount}}) </text>
  210. <text class="subtitleColor" wx:if="{{item.prizeDesc}}">{{item.prizeDesc}}</text>
  211. <text class="subtitleColor" wx:else>+{{item.prizeNum}}宝贝币</text>
  212. </view>
  213. <view class="get-ins">{{item.content}}</view>
  214. </view>
  215. <view class="coin-list-r {{(item.maxPassCount!=-1&&item.passCount>=item.maxPassCount)?'finished-task':''}}" data-code="{{item.code}}" data-id="{{item.id}}" bindtap="{{(item.maxPassCount!=-1&&item.passCount>=item.maxPassCount)?'':'checkTask'}}">
  216. {{item.maxPassCount==-1?item.btnText:(item.passCount>=item.maxPassCount?'已完成':item.btnText)}}
  217. </view>
  218. </view>
  219. <view class="card-title coin-card-mar">
  220. <view class="card-left">新人任务</view>
  221. </view>
  222. <view class="coin-list" wx:for="{{taskList.newUser_task}}" wx:key="id">
  223. <view class="coin-list-l">
  224. <view class="icon-box">
  225. <text class='icon {{filter.getIcon(item.code)}}'></text>
  226. </view>
  227. </view>
  228. <view class="coin-list-c">
  229. <view class="get-method">
  230. <text>{{item.title}} </text>
  231. <text class="subtitleColor" wx:if="{{item.prizeDesc}}">{{item.prizeDesc}}</text>
  232. <text class="subtitleColor" wx:else>+{{item.prizeNum}}宝贝币</text>
  233. </view>
  234. <view class="get-ins">{{item.content}}</view>
  235. </view>
  236. <view class="coin-list-r {{(item.maxPassCount!=-1&&item.passCount>=item.maxPassCount)?'finished-task':''}}" data-code="{{item.code}}" data-id="{{item.id}}" bindtap="{{(item.maxPassCount!=-1&&item.passCount>=item.maxPassCount)?'':'checkTask'}}">
  237. {{item.maxPassCount==-1?item.btnText:(item.passCount>=item.maxPassCount?'已完成':item.btnText)}}
  238. </view>
  239. </view>
  240. </view>
  241. </view>