user.vue 21 KB

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