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

279 lines
7.3 KiB

  1. <template>
  2. <view>
  3. <lf-nav :spreadOut="false" :showIcon="false" titleColor="white" :bgColor="nav_bg_color" 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>
  38. <view class="center-card">
  39. <view class="lf-p-30 lf-row-between lf-w-100" @click="$url('/pages/user/member/quanyi')">
  40. <view class="lf-flex-column">
  41. <view class="lf-font-bold" style="color: #15716E;">
  42. <text class="lf-font-48">VIP</text>
  43. <text class="lf-font-30 lf-m-l-10">预备会员</text>
  44. </view>
  45. <view class="lf-font-28" style="color: #15716E;">卡号: 638329</view>
  46. </view>
  47. <view class="card-tag">
  48. 会员权益
  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. nav_bg_color: 'transparent' ,// 导航背景颜色
  102. my_service_list: [{
  103. name: '会员服务',
  104. icon: 'icon-huiyuan',
  105. path: '/pages/user/member/service'
  106. },{
  107. name: '在线客服',
  108. icon: 'icon-huiyuan',
  109. path: '/pages/user/my/chatonline'
  110. },{
  111. name: '我的收藏',
  112. icon: 'icon-huiyuan',
  113. path: '/pages/user/my/collect'
  114. },{
  115. name: '地址管理',
  116. icon: 'icon-huiyuan',
  117. path: '/pages/address/list/list'
  118. },{
  119. name: '活动报名',
  120. icon: 'icon-huiyuan',
  121. path: '/pages/user/my/myEventRegistrationList'
  122. },{
  123. name: '积分商城订单',
  124. icon: 'icon-huiyuan',
  125. path: '/pages/point/exchangeRecord/exchangeRecord'
  126. },{
  127. name: '商家中心',
  128. icon: 'icon-huiyuan',
  129. path: '/pages/business/center/center'
  130. }]
  131. }
  132. },
  133. // 页面滚动
  134. onPageScroll(event){
  135. if(event.scrollTop >= 50){
  136. this.nav_bg_color = '#22A2A0';
  137. }else{
  138. this.nav_bg_color = 'transparent';
  139. }
  140. },
  141. }
  142. </script>
  143. <style>
  144. page{
  145. overflow-x: hidden;
  146. }
  147. </style>
  148. <style lang="scss" scoped>
  149. .order-children {
  150. width: 134rpx;
  151. height: 100%;
  152. display: flex;
  153. flex-direction: column;
  154. justify-content: center;
  155. align-items: center;
  156. margin-right: 27rpx;
  157. &:nth-child(4n) {
  158. margin-right: 0;
  159. }
  160. &:nth-child(n + 5) {
  161. margin-top: 50rpx;
  162. }
  163. }
  164. .my-service{
  165. width: 190rpx;
  166. &:nth-child(3n){
  167. margin-right: 0;
  168. }
  169. &:nth-child(4n) {
  170. margin-right: 27rpx;
  171. }
  172. &:nth-child(n+4){
  173. margin-top: 50rpx;
  174. }
  175. }
  176. .function-tag {
  177. width: 50rpx;
  178. height: 50rpx;
  179. background: #D8D8D8;
  180. border: 1rpx solid #979797;
  181. border-radius: 50%;
  182. }
  183. .order-tag {
  184. padding: 50rpx 0;
  185. display: flex;
  186. flex: wrap;
  187. // justify-content: space-around;
  188. align-items: center;
  189. }
  190. .order-card {
  191. padding: 30rpx 30rpx 0 30rpx;
  192. width: 686rpx;
  193. height: 100%;
  194. background: #FFFFFF;
  195. box-shadow: 0rpx 2rpx 8rpx 1rpx rgba(0, 0, 0, 0.1);
  196. border-radius: 20rpx;
  197. // margin: 150rpx 0 30rpx 0;
  198. margin: 30rpx 0 30rpx 0;
  199. }
  200. .order-card1 {
  201. padding: 30rpx 30rpx 0 30rpx;
  202. width: 686rpx;
  203. height: 100%;
  204. background: #FFFFFF;
  205. box-shadow: 0rpx 2rpx 8rpx 1rpx rgba(0, 0, 0, 0.1);
  206. border-radius: 20rpx;
  207. margin-bottom: 30rpx;
  208. }
  209. .card-tag {
  210. width: 144rpx;
  211. height: 53rpx;
  212. background: linear-gradient(90deg, #22A2A0 0%, #187B7A 100%);
  213. border-radius: 30rpx;
  214. display: flex;
  215. align-items: center;
  216. color: white;
  217. justify-content: center;
  218. font-size: 26rpx;
  219. }
  220. .center-card {
  221. width: 686rpx;
  222. height: 160rpx;
  223. background: #FFFFFF;
  224. display: flex;
  225. align-items: center;
  226. box-shadow: 0rpx 2rpx 8rpx 1rpx rgba(0, 0, 0, 0.1);
  227. border-radius: 20rpx;
  228. margin: -40rpx auto 0;
  229. position: relative;
  230. z-index: 9;
  231. // position: absolute;
  232. // bottom: -120rpx;
  233. // left: 32rpx;
  234. // z-index: 9999;
  235. }
  236. .center-tag {
  237. padding: 0 80rpx 0 80rpx;
  238. }
  239. .ocupy {
  240. height: 160rpx;
  241. width: 100%;
  242. }
  243. .center-top {
  244. position: relative;
  245. width: 750rpx;
  246. height: 512rpx;
  247. background: linear-gradient(90deg, #22A2A0 0%, #187B7A 100%);
  248. overflow: hidden;
  249. .bg-left{
  250. position: absolute;
  251. width: 196rpx;
  252. height: 196rpx;
  253. border-radius: 50%;
  254. background-color: rgba(255,255,255,0.04);
  255. left: -92rpx;
  256. bottom: 60rpx;
  257. }
  258. .bg-right{
  259. position: absolute;
  260. width: 520rpx;
  261. height: 520rpx;
  262. border-radius: 50%;
  263. background-color: rgba(255,255,255,0.04);
  264. right: -168rpx;
  265. top: -122rpx;
  266. }
  267. }
  268. .center-img {
  269. width: 100rpx;
  270. height: 100rpx;
  271. border: 2rpx solid #FFFFFF;
  272. border-radius: 100%;
  273. }
  274. </style>