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

272 lines
7.2 KiB

4 years ago
4 years ago
  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" style="position: relative; z-index: 9;" @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. 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. name: '商家中心',
  127. icon: 'icon-huiyuan',
  128. path: '/pages/business/center/center'
  129. }]
  130. }
  131. }
  132. }
  133. </script>
  134. <style>
  135. page{
  136. overflow-x: hidden;
  137. }
  138. </style>
  139. <style lang="scss" scoped>
  140. .order-children {
  141. width: 134rpx;
  142. height: 100%;
  143. display: flex;
  144. flex-direction: column;
  145. justify-content: center;
  146. align-items: center;
  147. margin-right: 27rpx;
  148. &:nth-child(4n) {
  149. margin-right: 0;
  150. }
  151. &:nth-child(n + 5) {
  152. margin-top: 50rpx;
  153. }
  154. }
  155. .my-service{
  156. width: 190rpx;
  157. &:nth-child(3n){
  158. margin-right: 0;
  159. }
  160. &:nth-child(4n) {
  161. margin-right: 27rpx;
  162. }
  163. &:nth-child(n+4){
  164. margin-top: 50rpx;
  165. }
  166. }
  167. .function-tag {
  168. width: 50rpx;
  169. height: 50rpx;
  170. background: #D8D8D8;
  171. border: 1rpx solid #979797;
  172. border-radius: 50%;
  173. }
  174. .order-tag {
  175. padding: 50rpx 0;
  176. display: flex;
  177. flex: wrap;
  178. // justify-content: space-around;
  179. align-items: center;
  180. }
  181. .order-card {
  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: 150rpx 0 30rpx 0;
  189. margin: 30rpx 0 30rpx 0;
  190. }
  191. .order-card1 {
  192. padding: 30rpx 30rpx 0 30rpx;
  193. width: 686rpx;
  194. height: 100%;
  195. background: #FFFFFF;
  196. box-shadow: 0rpx 2rpx 8rpx 1rpx rgba(0, 0, 0, 0.1);
  197. border-radius: 20rpx;
  198. margin-bottom: 30rpx;
  199. }
  200. .card-tag {
  201. width: 144rpx;
  202. height: 53rpx;
  203. background: linear-gradient(90deg, #22A2A0 0%, #187B7A 100%);
  204. border-radius: 30rpx;
  205. display: flex;
  206. align-items: center;
  207. color: white;
  208. justify-content: center;
  209. font-size: 26rpx;
  210. }
  211. .center-card {
  212. width: 686rpx;
  213. height: 160rpx;
  214. background: #FFFFFF;
  215. display: flex;
  216. align-items: center;
  217. box-shadow: 0rpx 2rpx 8rpx 1rpx rgba(0, 0, 0, 0.1);
  218. border-radius: 20rpx;
  219. margin: -40rpx auto 0;
  220. position: relative;
  221. z-index: 9;
  222. // position: absolute;
  223. // bottom: -120rpx;
  224. // left: 32rpx;
  225. // z-index: 9999;
  226. }
  227. .center-tag {
  228. padding: 0 80rpx 0 80rpx;
  229. position: relative;
  230. z-index: 9;
  231. }
  232. .ocupy {
  233. height: 160rpx;
  234. width: 100%;
  235. }
  236. .center-top {
  237. position: relative;
  238. width: 750rpx;
  239. height: 512rpx;
  240. background: linear-gradient(90deg, #22A2A0 0%, #187B7A 100%);
  241. overflow: hidden;
  242. .bg-left{
  243. position: absolute;
  244. width: 196rpx;
  245. height: 196rpx;
  246. border-radius: 50%;
  247. background-color: rgba(255,255,255,0.04);
  248. left: -92rpx;
  249. bottom: 60rpx;
  250. }
  251. .bg-right{
  252. position: absolute;
  253. width: 520rpx;
  254. height: 520rpx;
  255. border-radius: 50%;
  256. background-color: rgba(255,255,255,0.04);
  257. right: -168rpx;
  258. top: -122rpx;
  259. }
  260. }
  261. .center-img {
  262. width: 100rpx;
  263. height: 100rpx;
  264. border: 2rpx solid #FFFFFF;
  265. border-radius: 100%;
  266. }
  267. </style>