index.vue 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177
  1. <template>
  2. <!-- index.wxml -->
  3. <view class="wrap">
  4. <view class="section_w">
  5. <view class="section_t">
  6. <image class="section_icon" src="/static/statics/img/icon_level.png"></image>
  7. <view class="section_title">
  8. <view class="title_text">羊汤馆会员等级</view>
  9. <view class="desc_text">羊汤馆会员:您成功登录羊汤馆,并绑定账户即可成为羊汤馆会员。</view>
  10. </view>
  11. </view>
  12. <view class="level_list">
  13. <view class="row head">
  14. <view class="col">会员等级</view>
  15. <view class="col">所需经验值</view>
  16. </view>
  17. <view class="row">
  18. <view class="col">Lv0-Lv5</view>
  19. <view class="col">0-500</view>
  20. </view>
  21. <view class="row">
  22. <view class="col">Lv5-Lv10</view>
  23. <view class="col">500-1000</view>
  24. </view>
  25. <view class="row">
  26. <view class="col">Lv10-Lv15</view>
  27. <view class="col">1000-1500</view>
  28. </view>
  29. <view class="row">
  30. <view class="col">Lv15-Lv20</view>
  31. <view class="col">1500-2000</view>
  32. </view>
  33. <view class="row">
  34. <view class="col">Lv20-Lv25</view>
  35. <view class="col">2000-2500</view>
  36. </view>
  37. <view class="row">
  38. <view class="col">Lv25-Lv30</view>
  39. <view class="col">2500-3000</view>
  40. </view>
  41. </view>
  42. </view>
  43. <view class="section_w sec">
  44. <view class="section_t">
  45. <image class="section_icon xing" src="/static/statics/img/icon_xing.png"></image>
  46. <view class="section_title">
  47. <view class="title_text">经验值的计算方式</view>
  48. <view class="desc_text">
  49. <view class="desc_item">经验值是根据用户在羊汤馆的消费金额,按比例算出的会员经验值。</view>
  50. <view class="desc_item">会员每消费人民币1元可获得1点经验值,(如会员消费人民币10元,获得10经验值。)</view>
  51. <view class="desc_item">配送费用不计入经验值,优惠的金额无法累积经验值。</view>
  52. </view>
  53. </view>
  54. </view>
  55. </view>
  56. </view>
  57. </template>
  58. <script>
  59. // index.js
  60. export default {
  61. data() {
  62. return {};
  63. },
  64. onLoad: function (options) {
  65. // Do some initialize when page load.
  66. },
  67. onShow: function () {
  68. // Do something when page show.
  69. let that = this;
  70. },
  71. onReady: function () {
  72. // Do something when page ready.
  73. },
  74. onHide: function () {
  75. // Do something when page hide.
  76. },
  77. onUnload: function () {
  78. // Do something when page close.
  79. },
  80. onPullDownRefresh: function () {
  81. // Do something when pull down.
  82. },
  83. onReachBottom: function () {
  84. // Do something when page reach bottom.
  85. },
  86. onPageScroll: function () {
  87. // Do something when page scroll
  88. },
  89. onResize: function () {
  90. // Do something when page resize
  91. },
  92. methods: {}
  93. };
  94. </script>
  95. <style>
  96. /**index.wxss**/
  97. .section_w {
  98. padding: 30rpx 45rpx 0;
  99. }
  100. .section_t {
  101. display: flex;
  102. }
  103. .section_icon {
  104. display: block;
  105. width: 30rpx;
  106. height: 26rpx;
  107. }
  108. .section_icon.xing {
  109. width: 34rpx;
  110. height: 33rpx;
  111. }
  112. .section_title {
  113. flex: 1;
  114. padding-left: 12rpx;
  115. }
  116. .section_title .title_text {
  117. font-size: 32rpx;
  118. font-weight: 600;
  119. color: #333333;
  120. }
  121. .section_title .desc_text {
  122. padding-top: 20rpx;
  123. font-size: 26rpx;
  124. color: rgba(51, 51, 51, 0.7);
  125. }
  126. /* 等级列表 */
  127. .level_list {
  128. width: 660rpx;
  129. margin-top: 30rpx;
  130. border: 1px solid rgba(0, 0, 0, 0.1);
  131. font-size: 24rpx;
  132. color: #333333;
  133. }
  134. .level_list .row {
  135. display: flex;
  136. align-items: center;
  137. border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  138. }
  139. .level_list .row.head {
  140. background: #f2f3f7;
  141. font-size: 26rpx;
  142. }
  143. .level_list .row:last-child {
  144. border-bottom: 0 none;
  145. }
  146. .level_list .row .col {
  147. flex: 1;
  148. display: flex;
  149. align-items: center;
  150. justify-content: center;
  151. padding: 15rpx 0;
  152. }
  153. .level_list .row .col:not(:last-child) {
  154. border-right: 1px solid rgba(0, 0, 0, 0.1);
  155. }
  156. /* */
  157. .section_w.sec {
  158. padding-top: 40rpx;
  159. }
  160. .section_title .desc_item {
  161. margin-top: 20rpx;
  162. display: flex;
  163. align-items: flex-start;
  164. }
  165. .section_title .desc_item::before {
  166. content: '';
  167. display: block;
  168. width: 6rpx;
  169. height: 6rpx;
  170. border-radius: 50%;
  171. background: rgba(0, 0, 0, 0.7);
  172. margin-right: 16rpx;
  173. margin-top: 15rpx;
  174. }
  175. </style>