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

303 lines
7.8 KiB

4 years ago
4 years ago
  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-20 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-erweima 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/service')">
  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>
  60. <text class="lf-iconfont icon-xiangyou lf-font-20 lf-m-l-10 lf-color-777"></text>
  61. </view>
  62. </view>
  63. <view class="order-tag lf-flex-wrap">
  64. <view class="order-children"
  65. v-for="(item, index) in order_tablist" :key="index"
  66. @click="$url('/pages/order/index/onlineorder')">
  67. <!-- <view class="function-tag"></view> -->
  68. <view class="lf-iconfont lf-font-50" :class="item.icon"></view>
  69. <view class="lf-color-black lf-font-28 lf-m-t-20">{{ item.name }}</view>
  70. </view>
  71. </view>
  72. </view>
  73. </view>
  74. <view class="lf-row-center">
  75. <view class="order-card1">
  76. <view class="lf-row-between">
  77. <view class="lf-color-black lf-font-32 lf-font-bold">
  78. 我的服务
  79. </view>
  80. <view></view>
  81. </view>
  82. <view class="order-tag lf-flex-wrap">
  83. <view class="order-children my-service"
  84. v-for="(item, index) in my_service_list" :key="index"
  85. @click="$url(item.path)">
  86. <!-- <view class="function-tag"></view> -->
  87. <view class="lf-iconfont lf-font-60" :class="item.icon"></view>
  88. <view class="lf-color-black lf-font-28 lf-m-t-20" style="white-space: nowrap">{{ item.name }}</view>
  89. </view>
  90. </view>
  91. </view>
  92. </view>
  93. <lf-tabbar></lf-tabbar>
  94. </view>
  95. </template>
  96. <script>
  97. import lfTabbar from '@/components/lf-tabbar/lf-tabbar.vue'
  98. export default {
  99. components: {
  100. lfTabbar
  101. },
  102. data(){
  103. return {
  104. nav_bg_color: 'transparent' ,// 导航背景颜色
  105. order_tablist: [{
  106. name: '待付款',
  107. icon: 'icon-daifukuan'
  108. },{
  109. name: '待发货',
  110. icon: 'icon-daifahuo'
  111. },{
  112. name: '待收货',
  113. icon: 'icon-daishouhuo'
  114. },{
  115. name: '待提货',
  116. icon: 'icon-tihuo'
  117. }],
  118. my_service_list: [{
  119. name: '会员服务',
  120. icon: 'icon-huiyuan1',
  121. path: '/pages/user/member/service'
  122. },{
  123. name: '在线客服',
  124. icon: 'icon-pinglun',
  125. path: '/pages/user/my/chatonline'
  126. },{
  127. name: '我的收藏',
  128. icon: 'icon-shoucang',
  129. path: '/pages/user/my/collect'
  130. },{
  131. name: '地址管理',
  132. icon: 'icon-dizhi',
  133. path: '/pages/address/list/list'
  134. },{
  135. name: '活动报名',
  136. icon: 'icon-fabujilu',
  137. path: '/pages/user/my/myEventRegistrationList'
  138. },{
  139. name: '积分商城订单',
  140. icon: 'icon-jifen',
  141. path: '/pages/point/exchangeRecord/exchangeRecord'
  142. },{
  143. name: '商家中心',
  144. icon: 'icon-Group-',
  145. path: '/pages/business/center/center'
  146. }]
  147. }
  148. },
  149. // 页面滚动
  150. onPageScroll(event){
  151. if(event.scrollTop >= 50){
  152. this.nav_bg_color = '#22A2A0';
  153. }else{
  154. this.nav_bg_color = 'transparent';
  155. }
  156. },
  157. }
  158. </script>
  159. <style>
  160. page{
  161. overflow-x: hidden;
  162. }
  163. </style>
  164. <style lang="scss" scoped>
  165. .order-children {
  166. width: 134rpx;
  167. height: 100%;
  168. display: flex;
  169. flex-direction: column;
  170. justify-content: center;
  171. align-items: center;
  172. margin-right: 27rpx;
  173. &>view:nth-child(1){
  174. line-height: 1;
  175. }
  176. &:nth-child(4n) {
  177. margin-right: 0;
  178. }
  179. &:nth-child(n + 5) {
  180. margin-top: 50rpx;
  181. }
  182. }
  183. .my-service{
  184. width: 190rpx;
  185. &>view:nth-child(1){
  186. line-height: 1;
  187. }
  188. &:nth-child(3n){
  189. margin-right: 0;
  190. }
  191. &:nth-child(4n) {
  192. margin-right: 27rpx;
  193. }
  194. &:nth-child(n+4){
  195. margin-top: 50rpx;
  196. }
  197. }
  198. .function-tag {
  199. width: 50rpx;
  200. height: 50rpx;
  201. background: #D8D8D8;
  202. border: 1rpx solid #979797;
  203. border-radius: 50%;
  204. }
  205. .order-tag {
  206. padding: 50rpx 0;
  207. display: flex;
  208. flex: wrap;
  209. // justify-content: space-around;
  210. align-items: center;
  211. }
  212. .order-card {
  213. padding: 30rpx 30rpx 0 30rpx;
  214. width: 686rpx;
  215. height: 100%;
  216. background: #FFFFFF;
  217. box-shadow: 0rpx 2rpx 8rpx 1rpx rgba(0, 0, 0, 0.1);
  218. border-radius: 20rpx;
  219. // margin: 150rpx 0 30rpx 0;
  220. margin: 30rpx 0 30rpx 0;
  221. }
  222. .order-card1 {
  223. padding: 30rpx 30rpx 0 30rpx;
  224. width: 686rpx;
  225. height: 100%;
  226. background: #FFFFFF;
  227. box-shadow: 0rpx 2rpx 8rpx 1rpx rgba(0, 0, 0, 0.1);
  228. border-radius: 20rpx;
  229. margin-bottom: 30rpx;
  230. }
  231. .card-tag {
  232. width: 144rpx;
  233. height: 53rpx;
  234. background: linear-gradient(90deg, #22A2A0 0%, #187B7A 100%);
  235. border-radius: 30rpx;
  236. display: flex;
  237. align-items: center;
  238. color: white;
  239. justify-content: center;
  240. font-size: 26rpx;
  241. }
  242. .center-card {
  243. width: 686rpx;
  244. height: 160rpx;
  245. background: #FFFFFF;
  246. display: flex;
  247. align-items: center;
  248. box-shadow: 0rpx 2rpx 8rpx 1rpx rgba(0, 0, 0, 0.1);
  249. border-radius: 20rpx;
  250. margin: -40rpx auto 0;
  251. position: relative;
  252. z-index: 9;
  253. // position: absolute;
  254. // bottom: -120rpx;
  255. // left: 32rpx;
  256. // z-index: 9999;
  257. }
  258. .center-tag {
  259. padding: 0 80rpx 0 80rpx;
  260. position: relative;
  261. z-index: 9;
  262. }
  263. .ocupy {
  264. height: 160rpx;
  265. width: 100%;
  266. }
  267. .center-top {
  268. position: relative;
  269. width: 750rpx;
  270. height: 512rpx;
  271. background: linear-gradient(90deg, #22A2A0 0%, #187B7A 100%);
  272. overflow: hidden;
  273. .bg-left{
  274. position: absolute;
  275. width: 196rpx;
  276. height: 196rpx;
  277. border-radius: 50%;
  278. background-color: rgba(255,255,255,0.04);
  279. left: -92rpx;
  280. bottom: 60rpx;
  281. }
  282. .bg-right{
  283. position: absolute;
  284. width: 520rpx;
  285. height: 520rpx;
  286. border-radius: 50%;
  287. background-color: rgba(255,255,255,0.04);
  288. right: -168rpx;
  289. top: -122rpx;
  290. }
  291. }
  292. .center-img {
  293. width: 100rpx;
  294. height: 100rpx;
  295. border: 2rpx solid #FFFFFF;
  296. border-radius: 100%;
  297. }
  298. </style>