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

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