金诚优选前端代码
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.

222 lines
6.1 KiB

  1. <template>
  2. <view>
  3. <lf-nav :spreadOut="false" :showIcon="false" titleColor="white" bgColor="transparent!important" title="会员中心"></lf-nav>
  4. <view class="center-top">
  5. <view class="ocupy"></view>
  6. <view class="lf-flex lf-p-32 lf-row-between">
  7. <view class="lf-row-between" @click="$url('/pages/user/my/setting')">
  8. <view>
  9. <image src="https://hainan.lanzulive.com/storage/images/v2-deb89623e0ee2a2dad34bcded6dfd1ed_1440w.png" mode="aspectFill" class="center-img"></image>
  10. </view>
  11. <view class="lf-row-center">
  12. <view class="lf-color-white lf-font-36 lf-m-l-20">182****5380 </view>
  13. <view class="lf-iconfont icon-xiangyou lf-font-24 lf-m-l-10 lf-color-white"></view>
  14. </view>
  15. </view>
  16. <view class="lf-row-center lf-flex-column" @click="$url('/pages/user/member/code')">
  17. <view class="lf-iconfont icon-shoucang lf-color-white"></view>
  18. <view class="lf-font-24 lf-color-white">支付码</view>
  19. </view>
  20. </view>
  21. <view class="lf-flex lf-row-between center-tag">
  22. <view class="lf-row-center lf-flex-column" @click="$url('/pages/point/detail/detail')">
  23. <view class="lf-font-36 lf-color-white">0</view>
  24. <view class="lf-font-24 lf-color-white">积分</view>
  25. </view>
  26. <view class="lf-row-center lf-flex-column" @click="$url('/pages/recharge/balance/balance')">
  27. <view class="lf-font-36 lf-color-white">0.00</view>
  28. <view class="lf-font-24 lf-color-white">余额</view>
  29. </view>
  30. <view class="lf-row-center lf-flex-column" @click="$url('/pages/coupon/index/index')">
  31. <view class="lf-font-36 lf-color-white">0</view>
  32. <view class="lf-font-24 lf-color-white">优惠券</view>
  33. </view>
  34. </view>
  35. <view class="center-card">
  36. <view class="lf-p-30 lf-row-between lf-w-100" @click="$url('/pages/user/member/quanyi')">
  37. <view class="lf-flex-column">
  38. <view class="lf-font-48 lf-font-bold" style="color: #15716E;">
  39. VIP 预备会员
  40. </view>
  41. <view class="lf-font-28" style="color: #15716E;">卡号: 638329</view>
  42. </view>
  43. <view class="card-tag">
  44. 会员权益
  45. </view>
  46. </view>
  47. </view>
  48. </view>
  49. <view class="lf-row-center">
  50. <view class="order-card">
  51. <view class="lf-row-between">
  52. <view class="lf-color-black lf-font-32 lf-font-bold">
  53. 商城订单
  54. </view>
  55. <view class="lf-flex" @click="$url('/pages/order/index/onlineorder')">
  56. <view class="lf-font-24 lf-color-777">全部订单</view><text class="lf-iconfont icon-xiangyou lf-font-24 lf-m-l-10 lf-color-777"></text>
  57. </view>
  58. </view>
  59. <view class="order-tag lf-flex-wrap">
  60. <view class="order-children" v-for="i of 4" @click="$url('/pages/order/index/onlineorder')">
  61. <view class="function-tag"></view>
  62. <view class="lf-color-black lf-font-28 lf-m-t-20">待付款</view>
  63. </view>
  64. </view>
  65. </view>
  66. </view>
  67. <view class="lf-row-center">
  68. <view class="order-card1">
  69. <view class="lf-row-between">
  70. <view class="lf-color-black lf-font-32 lf-font-bold">
  71. 我的服务
  72. </view>
  73. <view></view>
  74. </view>
  75. <view class="order-tag lf-flex-wrap">
  76. <view class="order-children"
  77. v-for="(item, index) in my_service_list" :key="index"
  78. @click="$url(item.path)">
  79. <!-- <view class="function-tag"></view> -->
  80. <view class="lf-iconfont" :class="item.icon"></view>
  81. <view class="lf-color-black lf-font-28 lf-m-t-20" style="white-space: nowrap">{{ item.name }}</view>
  82. </view>
  83. </view>
  84. </view>
  85. </view>
  86. <lf-tabbar></lf-tabbar>
  87. </view>
  88. </template>
  89. <script>
  90. import lfTabbar from '@/components/lf-tabbar/lf-tabbar.vue'
  91. export default {
  92. components: {
  93. lfTabbar
  94. },
  95. data(){
  96. return {
  97. my_service_list: [{
  98. name: '会员服务',
  99. icon: 'icon-huiyuan',
  100. path: '/pages/user/member/service'
  101. },{
  102. name: '在线客服',
  103. icon: 'icon-huiyuan',
  104. path: '/pages/user/my/chatonline'
  105. },{
  106. name: '我的收藏',
  107. icon: 'icon-huiyuan',
  108. path: '/pages/user/my/collect'
  109. },{
  110. name: '地址管理',
  111. icon: 'icon-huiyuan',
  112. path: '/pages/address/list/list'
  113. },{
  114. name: '活动报名',
  115. icon: 'icon-huiyuan',
  116. path: '/pages/user/my/myEventRegistrationList'
  117. },{
  118. name: '积分商城订单',
  119. icon: 'icon-huiyuan',
  120. path: '/pages/point/exchangeRecord/exchangeRecord'
  121. }]
  122. }
  123. }
  124. }
  125. </script>
  126. <style lang="scss" scoped>
  127. .order-children {
  128. width: 134rpx;
  129. height: 100%;
  130. display: flex;
  131. flex-direction: column;
  132. justify-content: center;
  133. align-items: center;
  134. margin-right: 27rpx;
  135. &:nth-child(4n) {
  136. margin-right: 0;
  137. }
  138. &:nth-child(n + 5) {
  139. margin-top: 50rpx;
  140. }
  141. }
  142. .function-tag {
  143. width: 50rpx;
  144. height: 50rpx;
  145. background: #D8D8D8;
  146. border: 1rpx solid #979797;
  147. border-radius: 50%;
  148. }
  149. .order-tag {
  150. padding: 50rpx 0;
  151. display: flex;
  152. flex: wrap;
  153. // justify-content: space-around;
  154. align-items: center;
  155. }
  156. .order-card {
  157. padding: 30rpx 30rpx 0 30rpx;
  158. width: 686rpx;
  159. height: 100%;
  160. background: #FFFFFF;
  161. box-shadow: 0rpx 2rpx 8rpx 1rpx rgba(0, 0, 0, 0.1);
  162. border-radius: 20rpx;
  163. margin: 150rpx 0 30rpx 0;
  164. }
  165. .order-card1 {
  166. padding: 30rpx 30rpx 0 30rpx;
  167. width: 686rpx;
  168. height: 100%;
  169. background: #FFFFFF;
  170. box-shadow: 0rpx 2rpx 8rpx 1rpx rgba(0, 0, 0, 0.1);
  171. border-radius: 20rpx;
  172. margin-bottom: 30rpx;
  173. }
  174. .card-tag {
  175. width: 144rpx;
  176. height: 53rpx;
  177. background: linear-gradient(90deg, #22A2A0 0%, #187B7A 100%);
  178. border-radius: 30rpx;
  179. display: flex;
  180. align-items: center;
  181. color: white;
  182. justify-content: center;
  183. font-size: 26rpx;
  184. }
  185. .center-card {
  186. width: 686rpx;
  187. height: 160rpx;
  188. background: #FFFFFF;
  189. display: flex;
  190. align-items: center;
  191. box-shadow: 0rpx 2rpx 8rpx 1rpx rgba(0, 0, 0, 0.1);
  192. border-radius: 20rpx;
  193. margin: 0 auto;
  194. position: absolute;
  195. bottom: -120rpx;
  196. left: 32rpx;
  197. z-index: 9999;
  198. }
  199. .center-tag {
  200. padding: 0 80rpx 0 80rpx;
  201. }
  202. .ocupy {
  203. height: 160rpx;
  204. width: 100%;
  205. }
  206. .center-top {
  207. position: relative;
  208. width: 750rpx;
  209. height: 512rpx;
  210. background: linear-gradient(90deg, #22A2A0 0%, #187B7A 100%);
  211. }
  212. .center-img {
  213. width: 100rpx;
  214. height: 100rpx;
  215. border: 2rpx solid #FFFFFF;
  216. border-radius: 100%;
  217. }
  218. </style>