score.wxml 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  1. <view class='bar-bottom buttons-row'>
  2. <navigator open-type="switchTab" url="/pages/home/index" hover-class='none' class='button button-warn'>{{info.role.level == 0 ? '赚取积分':'立即使用'}}</navigator>
  3. </view>
  4. <view class='content'>
  5. <view class="vip-box">
  6. <view class='vip-rule-text'><navigator url="../rule/index">积分规则</navigator></view>
  7. <scroll-view class="group-sheet" scroll-x="true" scroll-left="{{scrollLeft}}" scroll-with-animation="true">
  8. <view class="container">
  9. <view class="sheet">
  10. <view class="li{{info.role.level == 0 ? ' current':''}}">
  11. <view class="ball-scale-multiple"></view>
  12. <view class="linear"></view>
  13. <view class="linear-mask{{width[0] > 0 ? ' animate':''}}" style="width:{{width[0]}}%;"></view>
  14. <view class="info">
  15. <text class="level"></text>
  16. <text class="point"></text>
  17. </view>
  18. </view>
  19. <view class="li{{info.role.level == 1 ? ' current':''}}">
  20. <view class="ball-scale-multiple">
  21. <image src="{{config.imgUrl}}/img/vip_level_1.png" class='img'></image>
  22. </view>
  23. <view class="linear"></view>
  24. <view class="linear-mask{{width[1] > 0 ? ' animate':''}}" style="width:{{width[1]}}%;"></view>
  25. <view class="info">
  26. <text class="level">青铜</text>
  27. <text class="point">500</text>
  28. </view>
  29. </view>
  30. <view class="li{{info.role.level == 2 ? ' current':''}}">
  31. <view class="ball-scale-multiple">
  32. <image src="{{config.imgUrl}}/img/vip_level_2.png" class='img'></image>
  33. </view>
  34. <view class="linear"></view>
  35. <view class="linear-mask{{width[2] > 0 ? ' animate':''}}" style="width:{{width[2]}}%;"></view>
  36. <view class="info">
  37. <text class="level">白银</text>
  38. <text class="point">1000</text>
  39. </view>
  40. </view>
  41. <view class="li{{info.role.level == 3 ? ' current':''}}">
  42. <view class="ball-scale-multiple">
  43. <image src="{{config.imgUrl}}/img/vip_level_3.png" class='img'></image>
  44. </view>
  45. <view class="linear"></view>
  46. <view class="linear-mask{{width[3] > 0 ? ' animate':''}}" style="width:{{width[3]}}%;"></view>
  47. <view class="info">
  48. <text class="level">黄金</text>
  49. <text class="point">3000</text>
  50. </view>
  51. </view>
  52. <view class="li{{info.role.level == 4 ? ' current':''}}">
  53. <view class="ball-scale-multiple">
  54. <image src="{{config.imgUrl}}/img/vip_level_4.png" class='img'></image>
  55. </view>
  56. <view class="linear"></view>
  57. <view class="linear-mask{{width[4] > 0 ? ' animate':''}}" style="width:{{width[4]}}%;"></view>
  58. <view class="info">
  59. <text class="level">铂金</text>
  60. <text class="point">5000</text>
  61. </view>
  62. </view>
  63. <view class="li{{info.role.level == 5 ? ' current':''}}">
  64. <view class="ball-scale-multiple">
  65. <image src="{{config.imgUrl}}/img/vip_level_5.png" class='img'></image>
  66. </view>
  67. <view class="linear"></view>
  68. <view class="linear-mask{{width[5] > 0 ? ' animate':''}}" style="width:{{width[5]}}%;"></view>
  69. <view class="info">
  70. <text class="level">钻石</text>
  71. <text class="point">10000</text>
  72. </view>
  73. </view>
  74. <view class="li{{info.role.level == 6 ? ' current':''}} last">
  75. <view class="ball-scale-multiple">
  76. <image src="{{config.imgUrl}}/img/vip_level_6.png" class='img'></image>
  77. </view>
  78. <view class="linear"></view>
  79. <view class="linear-mask{{width[6] > 0 ? ' animate':''}}" style="width:{{width[6]}}%;"></view>
  80. <view class="info">
  81. <text class="level">星耀</text>
  82. <text class="point">30000以上</text>
  83. </view>
  84. </view>
  85. </view>
  86. </view>
  87. </scroll-view>
  88. <view class="group-text">当前积分 <text>{{info.score}}</text><block wx:if="{{info.role.level < 6}}">,升级到{{info.nextLevel.levelName}}段还需 <text>{{info.nextLevel.nextscore}}</text> 积分</block></view>
  89. </view>
  90. <view wx:if="{{info.role.level == 0}}" class='noDataText'>
  91. <text>您当前积分为<text class="font16">{{info.score}}</text>,\n暂时还没有可享受的优惠哦,\n你可购买线路赚取积分。</text>
  92. </view>
  93. <view wx:else class='content-block'>
  94. <view class='subtitleColor font14'>我的优惠</view>
  95. <view class="grids vip-safe-box mTop5">
  96. <view class="wgrid" wx:if="{{info.role.days}}">
  97. <view class="VS-box"><view class="VS-box-text">{{info.role.days}}</view><text>折</text></view>
  98. 常规半日/单日线
  99. </view>
  100. <view class="wgrid" wx:if="{{info.role.mini}}">
  101. <view class="VS-box"><view class="VS-box-text">{{info.role.mini}}</view><text>折</text></view>
  102. 迷你营
  103. </view>
  104. <view class="wgrid" wx:if="{{info.role.camp}}">
  105. <view class="VS-box"><view class="VS-box-text">{{info.role.camp}}</view><text>折</text></view>
  106. 冬夏令营
  107. </view>
  108. </view>
  109. <view class='gray font12 mTop5'>注:迷你营指:2天1夜、3天2夜的线路</view>
  110. <view class='font14 vip-childs' wx:if="{{info.child}}">
  111. 以上优惠限<text class="blue">{{info.child}}</text>使用。
  112. </view>
  113. <view class='font14 vip-childs' wx:else>
  114. 以上优惠限绑定儿童使用。
  115. <view class='vip-childs-button'><navigator url="../childs/index" class="button button-radius button-subtitle">去绑定</navigator></view>
  116. </view>
  117. </view>
  118. <block wx:if="{{info.role.level > 1}}">
  119. <view class='vip-privilege'>
  120. <view class='content-block'>
  121. <view class='subtitleColor font14'>我的特权</view>
  122. <view class="grids vip-safe-box mTop5">
  123. <view class="wgrid time">
  124. <text class="icon icon-time"></text>
  125. <text>任意线路\n提前{{info.role.time}}分钟购买</text>
  126. </view>
  127. </view>
  128. </view>
  129. </view>
  130. </block>
  131. </view>