index.vue 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232
  1. <template>
  2. <div class="uc_vip_container">
  3. <div class="banner">
  4. <view class="banner_text">
  5. <text>{{ userinfo['level_name'] }}</text>
  6. </view>
  7. </div>
  8. <div class="content">
  9. <div class="title">
  10. <text>我的会员权益</text>
  11. </div>
  12. <!-- 权益列表-->
  13. <van-row gutter="10" class="benefit-row">
  14. <van-col span="8">
  15. <view class="benefit">
  16. <img src="https://img.shuimuai.com/quanyi_icon_1.png" alt="" class="icon1">
  17. <view>
  18. <text class="title">会员卡</text>
  19. </view>
  20. <view>
  21. <text class="subtitle">{{ datas.card }}张</text>
  22. </view>
  23. </view>
  24. </van-col>
  25. <van-col span="8">
  26. <view class="benefit">
  27. <img src="https://img.shuimuai.com/quanyi_icon_2.png" alt="" class="icon2">
  28. <view>
  29. <text class="title">核销时间{{ datas.play_time }}分钟</text>
  30. </view>
  31. <view>
  32. <text class="subtitle">游玩限期{{ datas.validity }}个月</text>
  33. </view>
  34. </view>
  35. </van-col>
  36. <van-col span="8">
  37. <view class="benefit">
  38. <img src="https://img.shuimuai.com/quanyi_icon_3.png" alt="" class="icon3">
  39. <view>
  40. <text class="title">参与活动</text>
  41. </view>
  42. <view>
  43. <text class="subtitle">{{ datas.activity }}个月内</text>
  44. </view>
  45. </view>
  46. </van-col>
  47. <van-col span="8">
  48. <view class="benefit">
  49. <img src="https://img.shuimuai.com/quanyi_icon_4.png" alt="" class="icon4">
  50. <view>
  51. <text class="title">租售产品</text>
  52. </view>
  53. <view>
  54. <text class="subtitle">租{{ datas.lease_num }}套每天{{ datas.lease_time }}分钟</text>
  55. </view>
  56. </view>
  57. </van-col>
  58. <van-col span="8">
  59. <view class="benefit">
  60. <img src="https://img.shuimuai.com/quanyi_icon_5.png" alt="" class="icon5">
  61. <view>
  62. <text class="title">参与课程</text>
  63. </view>
  64. <view>
  65. <text class="subtitle">{{ datas.course }}个月</text>
  66. </view>
  67. </view>
  68. </van-col>
  69. <van-col span="8">
  70. <view class="benefit">
  71. <img src="https://img.shuimuai.com/quanyi_icon_6.png" alt="" class="icon6">
  72. <view>
  73. <text class="title">邀请有奖</text>
  74. </view>
  75. <view>
  76. <text class="subtitle">{{ datas.activity }}个月</text>
  77. </view>
  78. </view>
  79. </van-col>
  80. </van-row>
  81. <!-- 权益描述-->
  82. <view class="desc" v-html="datas.content">
  83. </view>
  84. </div>
  85. </div>
  86. </template>
  87. <script>
  88. import {vipPowerLevel} from "../../../requests/vip";
  89. import utils from '../../../utils/index'
  90. var $this
  91. export default {
  92. name: "uc_vip_container",
  93. components: {},
  94. data() {
  95. return {
  96. datas: [],
  97. userinfo: {},
  98. }
  99. },
  100. methods: {
  101. //获取页面数据初始化
  102. getData() {
  103. vipPowerLevel().then((res) => {
  104. let $data = res.data;
  105. $this.datas = $data.data
  106. })
  107. }
  108. }
  109. ,
  110. mounted() {
  111. $this.getData()
  112. $this.userinfo = wx.getStorageSync('userinfo')
  113. $this.userinfo['level_name'] = utils.get_level_name($this.userinfo['level'])
  114. },
  115. created() {
  116. $this = this;
  117. },
  118. onLoad() {
  119. }
  120. }
  121. </script>
  122. <style scoped>
  123. .banner {
  124. width: 100%;
  125. height: 100px;
  126. background-image: url("https://img.shuimuai.com/web/banner_huiyuan.png");
  127. background-size: 100% 100%;
  128. background-position: center;
  129. }
  130. .uc_vip_container .content {
  131. padding: 10px;
  132. }
  133. .uc_vip_container .content .title {
  134. font-size: 12px;
  135. font-family: PingFang SC;
  136. font-weight: 400;
  137. color: #6B6B6B;
  138. line-height: 24px;
  139. }
  140. /*权益grid*/
  141. .benefit {
  142. text-align: center;
  143. margin-top: 20px;
  144. }
  145. .benefit .icon:first-child {
  146. width: 44px;
  147. height: 31px;
  148. }
  149. .benefit .title {
  150. font-size: 14px;
  151. font-family: PingFang SC;
  152. font-weight: 400;
  153. color: #6B6B6B;
  154. line-height: 20px;
  155. }
  156. .benefit .subtitle {
  157. font-size: 10px;
  158. font-family: PingFang SC;
  159. font-weight: 400;
  160. color: #6B6B6B;
  161. }
  162. .desc {
  163. margin: 30px 0px;
  164. width: 355px;
  165. height: 273px;
  166. font-size: 12px;
  167. font-family: PingFang SC;
  168. font-weight: 400;
  169. color: #6B6B6B;
  170. line-height: 20px;
  171. padding: 15px;
  172. }
  173. .banner_text {
  174. width: 100%;
  175. height: 17px;
  176. font-size: 18px;
  177. font-family: Microsoft YaHei;
  178. font-weight: bold;
  179. color: #FFFFFF;
  180. text-align: center;
  181. padding-top: 60px;
  182. }
  183. .icon1 {
  184. width: 44px;
  185. height: 31px;
  186. }
  187. .icon2 {
  188. width: 35px;
  189. height: 37px;
  190. }
  191. .icon3 {
  192. width: 45px;
  193. height: 43px;
  194. }
  195. .icon4 {
  196. width: 34px;
  197. height: 39px;
  198. }
  199. .icon5 {
  200. width: 37px;
  201. height: 32px;
  202. }
  203. .icon6 {
  204. width: 33px;
  205. height: 36px;
  206. }
  207. </style>