金诚优选前端代码
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

167 lines
3.5 KiB

  1. <template>
  2. <view>
  3. <lf-nav title="会员权益" :showIcon="true" titleColor="#fff" bgColor="#15716E"></lf-nav>
  4. <view class="head">
  5. <image class="img"></image>
  6. <view class="phone">182****5380</view>
  7. </view>
  8. <view>
  9. <lf-swiper :list="card_list"
  10. :height="350" :effect3d="true"
  11. bg-color="#15716E" mode="none"
  12. @clickDiy="swiperClickDiy">
  13. </lf-swiper>
  14. </view>
  15. <view class="content">
  16. <view class="item" :style="{width: 100 / 4 +'%'}"
  17. v-for="(item, index) in quanyi_list" :key="index"
  18. @click="$url('/pages/user/member/explain')">
  19. <view class="icon">
  20. <text class="lf-iconfont lf-color-primary lf-font-60" :class="item.icon"></text>
  21. </view>
  22. <view class="name">{{ item.name }}</view>
  23. </view>
  24. </view>
  25. </view>
  26. </template>
  27. <script>
  28. import lfSwiper from '@/components/lf-swiper/lf-swiper.vue';
  29. export default {
  30. components: {
  31. lfSwiper
  32. },
  33. data(){
  34. return {
  35. card_list: [{
  36. image: 'https://cdn.uviewui.com/uview/swiper/1.jpg',
  37. title: '昨夜星辰昨夜风,画楼西畔桂堂东'
  38. },
  39. {
  40. image: 'https://cdn.uviewui.com/uview/swiper/2.jpg',
  41. title: '身无彩凤双飞翼,心有灵犀一点通'
  42. },
  43. {
  44. image: 'https://cdn.uviewui.com/uview/swiper/3.jpg',
  45. title: '谁念西风独自凉,萧萧黄叶闭疏窗,沉思往事立残阳'
  46. }
  47. ],
  48. quanyi_list: [{
  49. icon: 'icon-huiyuan2',
  50. name: '平日2倍积分'
  51. },{
  52. icon: 'icon-huiyuan2',
  53. name: '生日5倍积分'
  54. },{
  55. icon: 'icon-huiyuan2',
  56. name: '免费停车6小时/天'
  57. },{
  58. icon: 'icon-huiyuan2',
  59. name: '最低8.5折'
  60. },{
  61. icon: 'icon-huiyuan2',
  62. name: '专属沙龙'
  63. },{
  64. icon: 'icon-huiyuan2',
  65. name: '会员日'
  66. },{
  67. icon: 'icon-huiyuan2',
  68. name: '免费包装'
  69. },{
  70. icon: 'icon-huiyuan2',
  71. name: '书籍租借'
  72. },{
  73. icon: 'icon-huiyuan2',
  74. name: '免费雨伞租赁'
  75. },{
  76. icon: 'icon-huiyuan2',
  77. name: '免费童车租赁'
  78. },{
  79. icon: 'icon-huiyuan2',
  80. name: '免费轮椅租赁'
  81. },{
  82. icon: 'icon-huiyuan2',
  83. name: '通惠卡'
  84. },{
  85. icon: 'icon-huiyuan2',
  86. name: '多重生日礼遇'
  87. },{
  88. icon: 'icon-huiyuan2',
  89. name: '每日尊享饮品'
  90. }]
  91. }
  92. },
  93. onLoad(){
  94. },
  95. methods: {
  96. swiperClickDiy(event){
  97. let item = this.card_list[event.index];
  98. if(event.type == 'btn1'){
  99. this.$msg('敬请期待');
  100. }else if(event.type == 'btn2'){
  101. this.$url('/pages/user/member/code');
  102. }
  103. }
  104. }
  105. }
  106. </script>
  107. <style>
  108. page{
  109. background-color: #15716E;
  110. }
  111. </style>
  112. <style lang="scss" scoped="scoped">
  113. .head{
  114. padding: 30rpx 32rpx;
  115. width: 750rpx;
  116. height: max-content;
  117. display: flex;
  118. align-items: center;
  119. .img{
  120. width: 100rpx;
  121. height: 100rpx;
  122. border: 2rpx solid #FFFFFF;
  123. border-radius: 50%;
  124. background-color: #000000;
  125. }
  126. .phone{
  127. font-size: 36rpx;
  128. color: #FFFFFF;
  129. margin-left: 20rpx;
  130. }
  131. }
  132. .content{
  133. padding: 60rpx 32rpx 30rpx;
  134. width: 750rpx;
  135. height: max-content;
  136. display: flex;
  137. flex-wrap: wrap;
  138. .item{
  139. height: max-content;
  140. padding: 0 12rpx;
  141. display: flex;
  142. flex-direction: column;
  143. align-items: center;
  144. margin-bottom: 40rpx;
  145. .icon{
  146. width: 100rpx;
  147. height: 100rpx;
  148. background: #FFFFFF;
  149. border-radius: 50%;
  150. display: flex;
  151. justify-content: center;
  152. align-items: center;
  153. color: #FFFFFF;
  154. }
  155. .name{
  156. margin-top: 10rpx;
  157. font-size: 24rpx;
  158. color: #FFFFFF;
  159. text-align: center;
  160. }
  161. }
  162. }
  163. </style>