user.vue 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862
  1. <template>
  2. <view class="container">
  3. <!-- #ifdef APP-PLUS -->
  4. <view class="vheigh"></view>
  5. <!-- #endif -->
  6. <!-- 用户头像设置 -->
  7. <view class="user-wrap">
  8. <view class="user-left">
  9. <image :src="userInfo.avatar" mode="" v-if="userInfo.avatar"></image>
  10. <image src="../../static/error/missing-face.png" mode="" v-else></image>
  11. </view>
  12. <view class="user-center">
  13. <view class="user-name clamp2">
  14. {{userInfo.nickname || '游客'}}
  15. </view>
  16. <view class="user-phone" v-if="userInfo.uid">
  17. 邀请码:{{userInfo.uid}}
  18. </view>
  19. <view class="user-phone" v-if="userInfo.uid" @click="navTo('/pages/user/wenpiao')">
  20. 文票:{{userInfo.paper_ticket || '0'}}
  21. </view>
  22. </view>
  23. <view class="user-right" @click="navTo('/pages/set/userinfo')">
  24. <image src="../../static/user/user-set.png" mode=""></image>
  25. </view>
  26. </view>
  27. <!-- 账户数据 -->
  28. <view class=" user-sj">
  29. <image src="../../static/user/user-bg.png" mode="" class="bg"></image>
  30. <view class="info-top">
  31. 账户
  32. </view>
  33. <view class="info-info">
  34. <view class="info-item" @click="navTo('/pages/user/whiteJf')">
  35. <view class="item-val">
  36. {{userInfo.white_integral || '0'}}
  37. </view>
  38. <view class="item-tit">
  39. 白积分
  40. </view>
  41. </view>
  42. <view class="info-item" @click="navTo('/pages/user/greenJf')">
  43. <view class="item-val">
  44. {{userInfo.green_integral || '0'}}
  45. </view>
  46. <view class="item-tit">
  47. 绿积分
  48. </view>
  49. </view>
  50. <view class="info-item" @click="navTo('/pages/user/purpleJf')">
  51. <view class="item-val">
  52. {{userInfo.purple_integral || '0'}}
  53. </view>
  54. <view class="item-tit">
  55. 紫积分
  56. </view>
  57. </view>
  58. <view class="info-item" @click="navTo('/pages/user/mallJf')">
  59. <view class="item-val">
  60. {{userInfo.integral || '0'}}
  61. </view>
  62. <view class="item-tit">
  63. 商城积分
  64. </view>
  65. </view>
  66. <view class="info-item" @click="navTo('/pages/user/shopJf')">
  67. <view class="item-val">
  68. {{userInfo.business_integral || '0'}}
  69. </view>
  70. <view class="item-tit">
  71. 商家积分
  72. </view>
  73. </view>
  74. <view class="info-item" @click="navTo('/pages/user/myGreenCard')">
  75. <view class="item-val">
  76. {{greenNum || '0'}}
  77. </view>
  78. <view class="item-tit">
  79. 绿卡
  80. </view>
  81. </view>
  82. </view>
  83. </view>
  84. <image src="../../static/img/sq-rz.png" mode="widthFix"
  85. style="width: 691rpx;display: block;margin:0rpx auto 20rpx;" @click="navTo('/pages/user/joinShop')"
  86. v-if="userInfo && userInfo.is_merchant == 0">
  87. </image>
  88. <!-- 订单 -->
  89. <view class="item-box item-box-b">
  90. <view class="box-title flex ">
  91. <view class="title"><text>我的订单</text></view>
  92. <view class="link" @click="navTo('/pages/order/order?state=0')" hover-class="common-hover"><text
  93. class="iconfont iconenter"></text></view>
  94. </view>
  95. <view class="order-section">
  96. <view class="order-item" @click="navTo('/pages/order/order?state=0')" hover-class="common-hover"
  97. :hover-stay-time="50">
  98. <view class=" icon position-relative">
  99. <image class="icon-img" src="/static/icon/i1.png" mode="aspectFit"></image>
  100. <view class="corner" v-if="orderInfo.unpaid_count > 0">
  101. <text>{{ orderInfo.unpaid_count }}</text>
  102. </view>
  103. </view>
  104. <text>待付款</text>
  105. </view>
  106. <view class="order-item" @click="navTo('/pages/order/order?state=1')" hover-class="common-hover"
  107. :hover-stay-time="50">
  108. <view class=" icon position-relative">
  109. <image class="icon-img" src="/static/icon/i2.png" mode="aspectFit"></image>
  110. <view class="corner" v-if="orderInfo.unshipped_count > 0">
  111. <text>{{ orderInfo.unshipped_count }}</text>
  112. </view>
  113. </view>
  114. <text>待发货</text>
  115. </view>
  116. <view class="order-item" @click="navTo('/pages/order/order?state=2')" hover-class="common-hover"
  117. :hover-stay-time="50">
  118. <view class="icon position-relative">
  119. <image class="icon-img" src="/static/icon/i3.png" mode="aspectFit"></image>
  120. <view class="corner" v-if="orderInfo.received_count > 0">
  121. <text>{{ orderInfo.received_count }}</text>
  122. </view>
  123. </view>
  124. <text>待收货</text>
  125. </view>
  126. <view class="order-item" @click="navTo('/pages/order/order?state=4')" hover-class="common-hover"
  127. :hover-stay-time="50">
  128. <view class="icon position-relative">
  129. <image class="icon-img" src="/static/icon/i4.png" mode="aspectFit"></image>
  130. <!-- <view class="corner" v-if="orderInfo.complete_count > 0">
  131. <text>{{ orderInfo.complete_count }}</text>
  132. </view> -->
  133. </view>
  134. <text>已完成</text>
  135. </view>
  136. </view>
  137. </view>
  138. <uni-list class="tool-list">
  139. <uni-list-item v-if="userInfo.clerk_type == 1" title="券码核销" @click="shao()" thumb="/static/user/user1.png">
  140. </uni-list-item>
  141. <uni-list-item v-if="userInfo.clerk_type == 1" title="核销历史" @click="navTo('/pages/user/hxjl')"
  142. thumb="/static/user/user2.png"></uni-list-item>
  143. <uni-list-item title="我的推广" @click="navTo('/pages/user/team')" thumb="/static/user/user01.png">
  144. </uni-list-item>
  145. <uni-list-item title="邀请海报" @click="navTo('/pages/user/shareQrCode')" thumb="/static/user/user02.png">
  146. </uni-list-item>
  147. <uni-list-item title="收货地址" @click="navTo('/pages/set/address')" thumb="/static/user/user03.png">
  148. </uni-list-item>
  149. <uni-list-item title="我的收藏" @click="navTo('/pages/user/favorites')" thumb="/static/user/user04.png">
  150. </uni-list-item>
  151. </uni-list>
  152. <view class="btm" style="height: 44px;"></view>
  153. <!-- 客服 -->
  154. <uni-popup ref="popupkf" type="center">
  155. <view class="popup-box">
  156. <view class="img">
  157. <image src="../../static/img/img009.png" mode=""></image>
  158. </view>
  159. <view class="mian">
  160. <view class="delivery">
  161. <view class="title">已经为您定制专属客服</view>
  162. <image src="../../static/img/img010.png" mode=""></image>
  163. </view>
  164. <view class="nocancel">客服VX:{{ text }}</view>
  165. <view class="comfirm-box">
  166. <view class="cancel" @click="kfClose()">取消</view>
  167. <view class="comfirm" @click="comfirm(text)">复制微信</view>
  168. </view>
  169. </view>
  170. </view>
  171. </uni-popup>
  172. </view>
  173. </template>
  174. <script>
  175. import {
  176. mapState,
  177. mapMutations
  178. } from 'vuex';
  179. import uniList from '@/components/uni-list/uni-list.vue';
  180. import uniListItem from '@/components/uni-list-item/uni-list-item.vue';
  181. import {
  182. orderData,
  183. userinfo,
  184. greenList
  185. } from '@/api/user.js';
  186. import {
  187. saveUrl,
  188. interceptor
  189. } from '@/utils/loginUtils.js';
  190. import {
  191. tabbar
  192. } from '@/utils/tabbar.js';
  193. import uniCopy from '@/js_sdk/xb-copy/uni-copy.js';
  194. let startY = 0,
  195. moveY = 0,
  196. pageAtTop = true;
  197. export default {
  198. components: {
  199. uniList,
  200. uniListItem
  201. },
  202. data() {
  203. return {
  204. greenNum: 0,
  205. text: '',
  206. tabbar: tabbar,
  207. current: 4,
  208. coverTransform: 'translateY(0px)',
  209. coverTransition: '0s',
  210. moving: false,
  211. userDowm: 0, //卡片升级专属高度
  212. userMaxDowm: 0 //卡片最高高度
  213. };
  214. },
  215. onShow() {
  216. this.loadBaseData();
  217. // 判断是否已经登录
  218. if (this.hasLogin) {
  219. this.loadBaseData();
  220. this.getGreenList()
  221. }
  222. },
  223. onReady() {
  224. // 初始化获取页面宽度
  225. uni.createSelectorQuery()
  226. .select('.container')
  227. .fields({
  228. size: true
  229. },
  230. data => {
  231. // 计算最多下拉的高度
  232. this.userDowm = Math.floor((data.width / 750) * 185);
  233. // 计算最大触发修改高度事件
  234. this.userMaxDowm = Math.floor((data.width / 750) * 250);
  235. }
  236. )
  237. .exec();
  238. },
  239. computed: {
  240. ...mapState('user', ['userInfo', 'orderInfo', 'hasLogin'])
  241. },
  242. methods: {
  243. ...mapMutations('user', ['setUserInfo', 'setOrderInfo']),
  244. // 绿卡记录
  245. getGreenList() {
  246. greenList({
  247. }).then(res => {
  248. console.log('greenList', res)
  249. this.greenNum = res.data.count
  250. })
  251. },
  252. // 加载初始数据
  253. loadBaseData() {
  254. userinfo({})
  255. .then(({
  256. data
  257. }) => {
  258. this.setUserInfo(data);
  259. // 获取用户数据完毕后在获取订单数据防止多次跳转到登录页
  260. orderData({})
  261. .then(({
  262. data
  263. }) => {
  264. this.setOrderInfo(data);
  265. })
  266. .catch(e => {
  267. this.setOrderInfo({
  268. complete_count: 0, //完成
  269. received_count: 0, //待收货
  270. unshipped_count: 0, //待发货
  271. order_count: 0, //订单总数
  272. unpaid_count: 0 //待付款
  273. });
  274. });
  275. })
  276. .catch(e => {
  277. console.log(e);
  278. });
  279. },
  280. /**
  281. * 统一跳转接口,拦截未登录路由
  282. * navigator标签现在默认没有转场动画,所以用view
  283. */
  284. navTo(url) {
  285. if (url == '') {
  286. this.$api.msg('敬请期待')
  287. }
  288. if (!this.hasLogin) {
  289. // 保存地址
  290. saveUrl();
  291. // 登录拦截
  292. interceptor();
  293. } else {
  294. uni.navigateTo({
  295. url,
  296. fail() {
  297. uni.switchTab({
  298. url
  299. });
  300. }
  301. });
  302. }
  303. },
  304. /**
  305. * 会员卡下拉和回弹
  306. * 1.关闭bounce避免ios端下拉冲突
  307. * 2.由于touchmove事件的缺陷(以前做小程序就遇到,比如20跳到40,h5反而好很多),下拉的时候会有掉帧的感觉
  308. * transition设置0.1秒延迟,让css来过渡这段空窗期
  309. * 3.回弹效果可修改曲线值来调整效果,推荐一个好用的bezier生成工具 http://cubic-bezier.com/
  310. */
  311. coverTouchstart(e) {
  312. // console.log(e);
  313. if (pageAtTop === false) {
  314. return;
  315. }
  316. this.coverTransition = 'transform .1s linear';
  317. startY = e.touches[0].clientY;
  318. },
  319. coverTouchmove(e) {
  320. // console.log(e);
  321. moveY = e.touches[0].clientY;
  322. let moveDistance = moveY - startY;
  323. let maxDowm = this.userMaxDowm;
  324. let Dowm = this.userDowm;
  325. if (moveDistance < 0) {
  326. this.moving = false;
  327. return;
  328. }
  329. this.moving = true;
  330. if (moveDistance >= Dowm && moveDistance < maxDowm) {
  331. moveDistance = Dowm;
  332. }
  333. if (moveDistance > 0 && moveDistance <= Dowm) {
  334. this.coverTransform = `translateY(${moveDistance}px)`;
  335. }
  336. },
  337. coverTouchend() {
  338. if (this.moving === false) {
  339. return;
  340. }
  341. this.moving = false;
  342. this.coverTransition = 'transform 0.3s cubic-bezier(.21,1.93,.53,.64)';
  343. this.coverTransform = 'translateY(0px)';
  344. },
  345. kfOpen() {
  346. this.$refs.popupkf.open()
  347. },
  348. kfClose() {
  349. this.$refs.popupkf.close()
  350. },
  351. comfirm(text) {
  352. console.log(text);
  353. const result = uniCopy(text);
  354. if (result === false) {
  355. uni.showToast({
  356. title: '不支持'
  357. });
  358. } else {
  359. uni.showToast({
  360. title: '复制成功',
  361. icon: 'none'
  362. });
  363. }
  364. this.$refs.popup.close();
  365. },
  366. }
  367. };
  368. </script>
  369. <style lang="scss">
  370. page {
  371. height: 100%;
  372. }
  373. %flex-center {
  374. display: flex;
  375. flex-direction: column;
  376. justify-content: center;
  377. align-items: center;
  378. }
  379. %section {
  380. display: flex;
  381. justify-content: space-around;
  382. align-content: center;
  383. background: #fff;
  384. border-radius: 10rpx;
  385. }
  386. .container {
  387. height: 100%;
  388. background-color: $page-color-base;
  389. }
  390. .content-box {
  391. height: 100%;
  392. }
  393. .vheigh {
  394. height: var(--status-bar-height);
  395. // background-color: #fff;
  396. }
  397. .user-section {
  398. height: 435rpx;
  399. padding: 15rpx 30rpx 0;
  400. position: relative;
  401. .bg {
  402. position: absolute;
  403. left: 0;
  404. top: 0;
  405. width: 100%;
  406. height: 100%;
  407. background-color: $base-color;
  408. }
  409. }
  410. .user-info-box {
  411. height: 180rpx;
  412. color: white;
  413. display: flex;
  414. align-items: center;
  415. justify-content: space-between;
  416. position: relative;
  417. z-index: 1;
  418. .detail {
  419. height: 130rpx;
  420. .portrait-box {
  421. height: 100%;
  422. .portrait {
  423. width: 130rpx;
  424. height: 100%;
  425. border: 5rpx solid #fff;
  426. border-radius: 50%;
  427. }
  428. }
  429. .info-box {
  430. margin-left: 20rpx;
  431. line-height: 1.5;
  432. .username {
  433. font-size: $font-lg + 6rpx;
  434. height: 100%;
  435. }
  436. }
  437. }
  438. .config {
  439. font-size: 48rpx;
  440. height: 130rpx;
  441. .setting {
  442. margin-right: 51rpx;
  443. }
  444. }
  445. }
  446. .vip-card-box {
  447. display: flex;
  448. flex-direction: column;
  449. color: #f7d680;
  450. height: 240rpx;
  451. background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.8));
  452. border-radius: 16rpx 16rpx 0 0;
  453. overflow: hidden;
  454. position: relative;
  455. padding: 20rpx 24rpx;
  456. .card-bg {
  457. position: absolute;
  458. top: 20rpx;
  459. right: 0;
  460. width: 380rpx;
  461. height: 260rpx;
  462. }
  463. .b-btn {
  464. position: absolute;
  465. right: 20rpx;
  466. top: 16rpx;
  467. width: 132rpx;
  468. height: 40rpx;
  469. text-align: center;
  470. line-height: 40rpx;
  471. font-size: 22rpx;
  472. color: #36343c;
  473. border-radius: 20px;
  474. background: linear-gradient(left, #f9e6af, #ffd465);
  475. z-index: 1;
  476. }
  477. .tit {
  478. font-size: $font-base + 2rpx;
  479. color: #f7d680;
  480. margin-bottom: 28rpx;
  481. .iconfont {
  482. color: #f6e5a3;
  483. margin-right: 16rpx;
  484. }
  485. }
  486. .e-b {
  487. font-size: $font-sm;
  488. color: #d8cba9;
  489. margin-top: 10rpx;
  490. }
  491. }
  492. .cover-container {
  493. background: $page-color-base;
  494. margin-top: -150rpx;
  495. padding: 0 30rpx;
  496. position: relative;
  497. background: #f5f5f5;
  498. padding-bottom: 20rpx;
  499. .arc {
  500. position: absolute;
  501. left: 0;
  502. top: -34rpx;
  503. width: 100%;
  504. height: 36rpx;
  505. }
  506. }
  507. .tj-sction {
  508. @extend %section;
  509. .tj-item {
  510. @extend %flex-center;
  511. flex-direction: column;
  512. height: 140rpx;
  513. font-size: $font-sm;
  514. color: #75787d;
  515. }
  516. .num {
  517. font-size: $font-lg;
  518. color: $font-color-dark;
  519. margin-bottom: 8rpx;
  520. }
  521. }
  522. .item-box {
  523. width: 708rpx;
  524. height: 163rpx;
  525. background: #fff;
  526. border-radius: 28rpx;
  527. background-color: white;
  528. margin: -40rpx auto 30rpx;
  529. position: relative;
  530. // margin-top: 20rpx;
  531. .box-title {
  532. line-height: 1;
  533. padding: 30rpx;
  534. .title {
  535. font-size: $font-lg;
  536. font-weight: bold;
  537. }
  538. .link {
  539. font-size: $font-base - 2rpx;
  540. color: $font-color-light;
  541. }
  542. }
  543. .order-section {
  544. @extend %section;
  545. padding: 28rpx 0;
  546. .order-item {
  547. @extend %flex-center;
  548. width: 120rpx;
  549. height: 120rpx;
  550. border-radius: 10rpx;
  551. font-size: $font-sm;
  552. color: $font-color-dark;
  553. }
  554. .iconfont {
  555. font-size: 48rpx;
  556. margin-bottom: 18rpx;
  557. color: #fa436a;
  558. }
  559. .icon-shouhoutuikuan {
  560. font-size: 44rpx;
  561. }
  562. .icon {
  563. height: 50rpx;
  564. width: 48rpx;
  565. margin-bottom: 18rpx;
  566. background-size: 100%;
  567. background-repeat: no-repeat;
  568. background-position: center;
  569. .icon-img {
  570. width: 100%;
  571. height: 100%;
  572. }
  573. }
  574. }
  575. }
  576. .history-section {
  577. // padding: 30rpx 0 0;
  578. margin-top: 20rpx;
  579. background: #fff;
  580. border-radius: 10rpx;
  581. .sec-header {
  582. display: flex;
  583. align-items: center;
  584. font-size: $font-base;
  585. color: $font-color-dark;
  586. line-height: 40rpx;
  587. margin-left: 30rpx;
  588. padding-top: 30rpx;
  589. .iconfont {
  590. font-size: 44rpx;
  591. color: $color-red;
  592. margin-right: 16rpx;
  593. line-height: 40rpx;
  594. }
  595. }
  596. .h-list {
  597. white-space: nowrap;
  598. padding: 30rpx 30rpx 0;
  599. .h-list-image {
  600. display: inline-block;
  601. width: 160rpx;
  602. height: 160rpx;
  603. margin-right: 20rpx;
  604. border-radius: 10rpx;
  605. }
  606. }
  607. }
  608. .item-box-b {
  609. width: 710rpx;
  610. height: 221rpx;
  611. background: #ffffff;
  612. margin: 20rpx auto 60rpx;
  613. }
  614. .popup-box {
  615. width: 522rpx;
  616. height: 605rpx;
  617. background-color: #ffffff;
  618. border-radius: 20rpx;
  619. position: relative;
  620. .img {
  621. position: relative;
  622. top: -56rpx;
  623. left: 0;
  624. width: 522rpx;
  625. height: 132rpx;
  626. display: flex;
  627. justify-content: center;
  628. image {
  629. border-radius: 20rpx 20rpx 0 0;
  630. width: 450rpx;
  631. height: 132rpx;
  632. }
  633. }
  634. .mian {
  635. margin-top: -44rpx;
  636. display: flex;
  637. flex-direction: column;
  638. align-items: center;
  639. // padding: 32rpx 32rpx;
  640. background-color: #ffffff;
  641. border-radius: 0 0 20rpx 20rpx;
  642. text-align: center;
  643. .delivery {
  644. font-size: 40rpx;
  645. color: #333333;
  646. display: flex;
  647. align-items: center;
  648. flex-direction: column;
  649. .title {}
  650. image {
  651. margin-top: 48rpx;
  652. width: 172rpx;
  653. height: 160rpx;
  654. }
  655. }
  656. .nocancel {
  657. font-size: 32rpx;
  658. color: #333333;
  659. margin-top: 14rpx;
  660. }
  661. .comfirm-box {
  662. margin-top: 52rpx;
  663. display: flex;
  664. // margin-bottom: 32rpx;
  665. // justify-content: space-around;
  666. .cancel {
  667. display: flex;
  668. align-items: center;
  669. justify-content: center;
  670. width: 197rpx;
  671. height: 74rpx;
  672. border: 1px solid #dcc786;
  673. border-radius: 38rpx;
  674. font-size: 32rpx;
  675. color: #605128;
  676. }
  677. .comfirm {
  678. margin-left: 32rpx;
  679. display: flex;
  680. align-items: center;
  681. justify-content: center;
  682. width: 197rpx;
  683. height: 74rpx;
  684. background: linear-gradient(-90deg, #d1ba77 0%, #f7e8ad 100%);
  685. border-radius: 38px;
  686. font-size: 32rpx;
  687. color: #605128;
  688. }
  689. }
  690. }
  691. }
  692. .tool-list {
  693. width: 690rpx;
  694. margin: auto;
  695. margin-top: 20rpx;
  696. background: #ffffff;
  697. box-shadow: 0px 0px 20rpx 0px rgba(50, 50, 52, 0.06);
  698. border-radius: 20rpx;
  699. }
  700. .user-sj {
  701. width: 728rpx;
  702. height: 448rpx;
  703. position: relative;
  704. margin: auto;
  705. font-size: 32rpx;
  706. font-weight: bold;
  707. color: #FFFFFF;
  708. .bg {
  709. width: 728rpx;
  710. height: 448rpx;
  711. }
  712. .info-top {
  713. position: absolute;
  714. height: 100rpx;
  715. top: 0;
  716. line-height: 120rpx;
  717. padding-left: 52rpx;
  718. }
  719. .info-info {
  720. position: absolute;
  721. top: 100rpx;
  722. width: 100%;
  723. display: flex;
  724. flex-wrap: wrap;
  725. justify-content: flex-start;
  726. height: 325rpx;
  727. padding: 0 30rpx;
  728. .info-item {
  729. width: 33%;
  730. height: 50%;
  731. text-align: center;
  732. display: flex;
  733. flex-direction: column;
  734. justify-content: center;
  735. .item-val {
  736. margin-bottom: 32rpx;
  737. }
  738. .item-tit {}
  739. }
  740. }
  741. }
  742. .user-wrap {
  743. display: flex;
  744. padding: 80rpx 35rpx 20rpx 30rpx;
  745. .user-left {
  746. flex-shrink: 0;
  747. width: 143rpx;
  748. height: 143rpx;
  749. image {
  750. width: 143rpx;
  751. height: 143rpx;
  752. }
  753. }
  754. .user-center {
  755. flex-grow: 1;
  756. padding: 0 20rpx;
  757. display: flex;
  758. flex-direction: column;
  759. justify-content: center;
  760. .user-name {
  761. font-size: 34rpx;
  762. font-weight: bold;
  763. color: #333333;
  764. }
  765. .user-phone {
  766. font-size: 24rpx;
  767. font-weight: 500;
  768. color: #666666;
  769. }
  770. }
  771. .user-right {
  772. width: 44rpx;
  773. height: 40rpx;
  774. flex-shrink: 0;
  775. image {
  776. width: 44rpx;
  777. height: 40rpx;
  778. }
  779. }
  780. }
  781. </style>