user.vue 18 KB

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