user.vue 20 KB

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