user.vue 20 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003
  1. <template>
  2. <view class="container">
  3. <view class="vheigh"></view>
  4. <view class="user-top">
  5. <view class="userinfo">
  6. <view class="user-info" @click="navTo('/pages/set/set')">
  7. <view class="avatar">
  8. <image class="avatarimg" :src="userInfo.avatar || '/static/error/missing-face.png'" mode="">
  9. </image>
  10. </view>
  11. <view class="name">{{ userInfo.nickname || '游客' }}</view>
  12. <view class="vip" v-if="userInfo.level_name">
  13. <image class="vip-bg" src="../../static/img/vip.png" mode=""></image>
  14. <view class="vip-title">{{ userInfo.level_name }}</view>
  15. </view>
  16. </view>
  17. <view class="sy-box flex">
  18. <view class="sy-item" @click="navTo('/pages/user/mygs')">
  19. <view class="sy-item-val">{{ userInfo.brokeage_price > 0 ? userInfo.brokeage_price : '0.00' }}
  20. </view>
  21. <view class="sy-item-name">我的佣金</view>
  22. </view>
  23. <view class="jg"></view>
  24. <view class="sy-item" @click="navTo('/pages/money/qudou')">
  25. <view class="sy-item-val">{{ userInfo.now_money || '0.00' }}</view>
  26. <view class="sy-item-name">我的余额</view>
  27. </view>
  28. <view class="jg"></view>
  29. <view class="sy-item" @click="navTo('/pages/user/team')">
  30. <view class="sy-item-val">{{ userInfo.sum_pay || '0' }}</view>
  31. <view class="sy-item-name">我的团队</view>
  32. </view>
  33. </view>
  34. </view>
  35. </view>
  36. <view class="my-order">
  37. <view class="box-title flex ">
  38. <view class="title"><text>我的订单</text></view>
  39. <view class="link" @click="navTo('/pages/order/order?state=5')" hover-class="common-hover">查看全部<text
  40. class="iconfont iconenter"></text></view>
  41. </view>
  42. <view class="order-section">
  43. <!-- 后添加 -->
  44. <view class="order-item" @click="navTo('/pages/order/order?state=0')" hover-class="common-hover"
  45. :hover-stay-time="50">
  46. <view class=" icon1 position-relative">
  47. <image class="icon-img" src="/static/user/a.png" mode="aspectFit"></image>
  48. </view>
  49. <text>待付款</text>
  50. </view>
  51. <view class="order-item" @click="navTo('/pages/order/order?state=1')" hover-class="common-hover"
  52. :hover-stay-time="50">
  53. <view class=" icon1 position-relative">
  54. <image class="icon-img" src="/static/user/b.png" mode="aspectFit"></image>
  55. <view class="corner" v-if="orderInfo.unshipped_count > 0">
  56. <text>{{ orderInfo.unshipped_count }}</text>
  57. </view>
  58. </view>
  59. <text>待发货</text>
  60. </view>
  61. <view class="order-item" @click="navTo('/pages/order/order?state=2')" hover-class="common-hover"
  62. :hover-stay-time="50">
  63. <view class="icon1 position-relative">
  64. <image class="icon-img" src="/static/user/c.png" mode="aspectFit"></image>
  65. <view class="corner" v-if="orderInfo.received_count > 0">
  66. <text>{{ orderInfo.received_count }}</text>
  67. </view>
  68. </view>
  69. <text>待收货</text>
  70. </view>
  71. <view class="order-item" @click="navTo('/pages/order/order?state=3')" hover-class="common-hover"
  72. :hover-stay-time="50">
  73. <view class="icon1 position-relative">
  74. <image class="icon-img" src="/static/user/d.png" mode="aspectFit"></image>
  75. <view class="corner" v-if="orderInfo.evaluated_count > 0">
  76. <text>{{ orderInfo.evaluated_count }}</text>
  77. </view>
  78. </view>
  79. <text>已完成</text>
  80. </view>
  81. </view>
  82. </view>
  83. <uni-list class="tool-list margin-t-30">
  84. <uni-list-item class="item" title="我的素材" @click="navTo('/pages/user/release')"
  85. thumb="/static/icon/user-sc.png"></uni-list-item>
  86. <!-- <uni-list-item class="item" title="我的检测" @click="navTo('/pages/user/jiance')"
  87. thumb="/static/icon/user-jc.png"></uni-list-item> -->
  88. <uni-list-item class="item" title="推广海报" @click="navTo('/pages/user/shareQrCode')"
  89. thumb="/static/icon/user-tg.png"></uni-list-item>
  90. <!-- <uni-list-item class="item" title="收款信息" @click="navTo('/pages/collection/collection')"
  91. thumb="/static/icon/user_page.png"></uni-list-item> -->
  92. <uni-list-item class="item" title="收货地址" @click="navTo('/pages/address/address')"
  93. thumb="/static/icon/user-dz.png"></uni-list-item>
  94. <uni-list-item class="item" title="客服" @click="openKf()"
  95. thumb="/static/icon/user-kf.png"></uni-list-item>
  96. <uni-list-item class="item" title="设置" @click="navTo('/pages/set/set')"
  97. thumb="/static/icon/user_set.png"></uni-list-item>
  98. </uni-list>
  99. <uni-popup ref="popupkf" type="center">
  100. <view class="popup-box">
  101. <view class="img">
  102. <image src="../../static/img/img009.png" mode=""></image>
  103. </view>
  104. <view class="mian">
  105. <view class="delivery">
  106. <view class="title">已经为您定制专属客服</view>
  107. <image src="../../static/img/img010.png" mode=""></image>
  108. </view>
  109. <view class="nocancel">客服VX:{{ text }}</view>
  110. <view class="comfirm-box">
  111. <view class="cancel" @click="cancel">取消</view>
  112. <view class="comfirm" @click="comfirm(text)">复制微信</view>
  113. </view>
  114. </view>
  115. </view>
  116. </uni-popup>
  117. <u-tabbar activeColor="#01A6A8" inactive-color='#666666' :list="tabbar"></u-tabbar>
  118. </view>
  119. </template>
  120. <script>
  121. import {
  122. tabbar1
  123. } from '@/utils/tabbar.js';
  124. import {
  125. mapState,
  126. mapMutations
  127. } from 'vuex';
  128. import uniList from '@/components/uni-list/uni-list.vue';
  129. import uniListItem from '@/components/uni-list-item/uni-list-item.vue';
  130. import {
  131. orderData,
  132. getUserInfo,
  133. } from '@/api/user.js';
  134. import {
  135. saveUrl,
  136. interceptor
  137. } from '@/utils/loginUtils.js';
  138. let startY = 0,
  139. moveY = 0,
  140. pageAtTop = true;
  141. export default {
  142. components: {
  143. uniList,
  144. uniListItem
  145. },
  146. data() {
  147. return {
  148. tabbar: tabbar1,
  149. text: '', //客服微信
  150. };
  151. },
  152. onShow() {
  153. // 判断是否已经登录
  154. if (this.hasLogin) {
  155. this.loadBaseData();
  156. }
  157. },
  158. onReady() {
  159. // 初始化获取页面宽度
  160. uni.createSelectorQuery()
  161. .select('.container')
  162. .fields({
  163. size: true
  164. },
  165. data => {
  166. // 计算最多下拉的高度
  167. this.userDowm = Math.floor((data.width / 750) * 185);
  168. // 计算最大触发修改高度事件
  169. this.userMaxDowm = Math.floor((data.width / 750) * 250);
  170. }
  171. )
  172. .exec();
  173. },
  174. computed: {
  175. ...mapState('user', ['userInfo', 'orderInfo', 'hasLogin'])
  176. },
  177. methods: {
  178. ...mapMutations('user', ['setUserInfo', 'setOrderInfo']),
  179. // 加载初始数据
  180. loadBaseData() {
  181. getUserInfo({})
  182. .then(({
  183. data
  184. }) => {
  185. this.setUserInfo(data);
  186. // 获取用户数据完毕后在获取订单数据防止多次跳转到登录页
  187. orderData({})
  188. .then(({
  189. data
  190. }) => {
  191. this.setOrderInfo(data);
  192. })
  193. .catch(e => {
  194. this.setOrderInfo({
  195. complete_count: 0, //完成
  196. received_count: 0, //待收货
  197. unshipped_count: 0, //待发货
  198. order_count: 0, //订单总数
  199. unpaid_count: 0 //待付款
  200. });
  201. });
  202. })
  203. .catch(e => {
  204. console.log(e);
  205. });
  206. },
  207. /**
  208. * 统一跳转接口,拦截未登录路由
  209. * navigator标签现在默认没有转场动画,所以用view
  210. */
  211. navTo(url) {
  212. const obj = this;
  213. if (!this.hasLogin) {
  214. // 保存地址
  215. saveUrl();
  216. // 登录拦截
  217. interceptor();
  218. } else {
  219. uni.navigateTo({
  220. url,
  221. fail(e) {
  222. uni.switchTab({
  223. url,
  224. });
  225. }
  226. });
  227. }
  228. },
  229. useTool(e) {
  230. this.navTo(e.path);
  231. },
  232. // 打开客服
  233. openKf() {
  234. this.$refs.popupkf.open();
  235. },
  236. // 关闭客服
  237. cancel() {
  238. this.$refs.popupkf.close();
  239. }
  240. }
  241. };
  242. </script>
  243. <style lang="scss">
  244. %flex-center {
  245. display: flex;
  246. flex-direction: column;
  247. justify-content: center;
  248. align-items: center;
  249. }
  250. %section {
  251. display: flex;
  252. justify-content: space-around;
  253. align-content: center;
  254. background: #fff;
  255. border-radius: 10rpx;
  256. }
  257. .container,
  258. page {
  259. min-height: 100%;
  260. height: auto;
  261. background-color: $page-color-base;
  262. }
  263. .vheigh {
  264. height: var(--status-bar-height);
  265. background-color: $base-color;
  266. }
  267. .user-section {
  268. height: 435rpx;
  269. padding: 15rpx 30rpx 0;
  270. position: relative;
  271. .bg {
  272. position: absolute;
  273. left: 0;
  274. top: 0;
  275. width: 100%;
  276. height: 100%;
  277. background-color: $base-color;
  278. }
  279. }
  280. .user-info-box {
  281. height: 180rpx;
  282. color: white;
  283. display: flex;
  284. align-items: center;
  285. justify-content: space-between;
  286. position: relative;
  287. z-index: 1;
  288. .detail {
  289. height: 130rpx;
  290. .portrait-box {
  291. height: 100%;
  292. .portrait {
  293. width: 130rpx;
  294. height: 100%;
  295. border: 5rpx solid #fff;
  296. border-radius: 50%;
  297. }
  298. }
  299. .info-box {
  300. margin-left: 20rpx;
  301. line-height: 1.5;
  302. .username {
  303. font-size: $font-lg + 6rpx;
  304. height: 100%;
  305. }
  306. }
  307. }
  308. .config {
  309. font-size: 48rpx;
  310. height: 130rpx;
  311. .setting {
  312. margin-right: 51rpx;
  313. }
  314. }
  315. }
  316. .vip-card-box {
  317. display: flex;
  318. flex-direction: column;
  319. color: #f7d680;
  320. height: 240rpx;
  321. background: linear-gradient(left, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.8));
  322. border-radius: 16rpx 16rpx 0 0;
  323. overflow: hidden;
  324. position: relative;
  325. padding: 20rpx 24rpx;
  326. .card-bg {
  327. position: absolute;
  328. top: 20rpx;
  329. right: 0;
  330. width: 380rpx;
  331. height: 260rpx;
  332. }
  333. .b-btn {
  334. position: absolute;
  335. right: 20rpx;
  336. top: 16rpx;
  337. width: 132rpx;
  338. height: 40rpx;
  339. text-align: center;
  340. line-height: 40rpx;
  341. font-size: 22rpx;
  342. color: #36343c;
  343. border-radius: 20px;
  344. background: linear-gradient(left, #f9e6af, #ffd465);
  345. z-index: 1;
  346. }
  347. .tit {
  348. font-size: $font-base + 2rpx;
  349. color: #f7d680;
  350. margin-bottom: 28rpx;
  351. .iconfont {
  352. color: #f6e5a3;
  353. margin-right: 16rpx;
  354. }
  355. }
  356. .e-b {
  357. font-size: $font-sm;
  358. color: #d8cba9;
  359. margin-top: 10rpx;
  360. }
  361. }
  362. .cover-container {
  363. background: $page-color-base;
  364. margin-top: -150rpx;
  365. padding: 0 30rpx;
  366. position: relative;
  367. background: #f5f5f5;
  368. padding-bottom: 20rpx;
  369. .arc {
  370. position: absolute;
  371. left: 0;
  372. top: -34rpx;
  373. width: 100%;
  374. height: 36rpx;
  375. }
  376. }
  377. .tj-sction {
  378. @extend %section;
  379. .tj-item {
  380. @extend %flex-center;
  381. flex-direction: column;
  382. height: 140rpx;
  383. font-size: $font-sm;
  384. color: #75787d;
  385. }
  386. .num {
  387. font-size: $font-lg;
  388. color: $font-color-dark;
  389. margin-bottom: 8rpx;
  390. }
  391. }
  392. .item-box {
  393. border-radius: 10rpx;
  394. background-color: white;
  395. margin-top: 20rpx;
  396. .box-title {
  397. line-height: 1;
  398. padding: 30rpx;
  399. .title {
  400. font-size: $font-lg;
  401. font-weight: bold;
  402. }
  403. .link {
  404. font-size: $font-base - 2rpx;
  405. color: $font-color-light;
  406. }
  407. }
  408. .order-section {
  409. @extend %section;
  410. padding: 28rpx 0;
  411. .order-item {
  412. @extend %flex-center;
  413. width: 120rpx;
  414. height: 120rpx;
  415. border-radius: 10rpx;
  416. font-size: $font-sm;
  417. color: $font-color-dark;
  418. }
  419. .iconfont {
  420. font-size: 48rpx;
  421. margin-bottom: 18rpx;
  422. color: #fa436a;
  423. }
  424. .icon-shouhoutuikuan {
  425. font-size: 44rpx;
  426. }
  427. .icon {
  428. height: 50rpx;
  429. width: 48rpx;
  430. margin-bottom: 18rpx;
  431. background-size: 100%;
  432. background-repeat: no-repeat;
  433. background-position: center;
  434. .icon-img {
  435. width: 100%;
  436. height: 100%;
  437. }
  438. }
  439. }
  440. }
  441. .history-section {
  442. // padding: 30rpx 0 0;
  443. margin-top: 20rpx;
  444. background: #fff;
  445. border-radius: 10rpx;
  446. .sec-header {
  447. display: flex;
  448. align-items: center;
  449. font-size: $font-base;
  450. color: $font-color-dark;
  451. line-height: 40rpx;
  452. margin-left: 30rpx;
  453. padding-top: 30rpx;
  454. .iconfont {
  455. font-size: 44rpx;
  456. color: $color-red;
  457. margin-right: 16rpx;
  458. line-height: 40rpx;
  459. }
  460. }
  461. .h-list {
  462. white-space: nowrap;
  463. padding: 30rpx 30rpx 0;
  464. .h-list-image {
  465. display: inline-block;
  466. width: 160rpx;
  467. height: 160rpx;
  468. margin-right: 20rpx;
  469. border-radius: 10rpx;
  470. }
  471. }
  472. }
  473. .user-top {
  474. background-image: url("../../static/img/use-bg.png");
  475. background-size: 750rpx auto;
  476. background-repeat: no-repeat;
  477. padding: 60rpx 30rpx 0rpx 30rpx;
  478. .userinfo {
  479. background-color: #FFFFFF;
  480. border-radius: 20rpx;
  481. }
  482. .user-info {
  483. display: flex;
  484. flex-direction: column;
  485. justify-content: center;
  486. align-items: center;
  487. padding: 30rpx;
  488. .avatar {
  489. width: 134rpx;
  490. height: 134rpx;
  491. border-radius: 50%;
  492. overflow: hidden;
  493. .avatarimg {
  494. width: 134rpx;
  495. height: 134rpx;
  496. }
  497. .real {
  498. bottom: 0;
  499. width: 120rpx;
  500. height: 34rpx;
  501. }
  502. }
  503. .name {
  504. margin-top: 20rpx;
  505. font-size: 32rpx;
  506. }
  507. .phone {
  508. justify-content: start;
  509. margin-top: 13rpx;
  510. font-size: 30rpx;
  511. font-family: PingFang SC;
  512. font-weight: 500;
  513. color: #ffffff;
  514. .green {
  515. margin-left: 12rpx;
  516. position: relative;
  517. width: 100rpx;
  518. height: 40rpx;
  519. .green-bg {
  520. position: absolute;
  521. top: 0;
  522. left: 0;
  523. right: 0;
  524. width: 100%;
  525. height: 100%;
  526. }
  527. .green-title {
  528. line-height: 30rpx;
  529. text-align: center;
  530. position: relative;
  531. z-index: 10;
  532. font-size: 20rpx;
  533. font-family: PingFang SC;
  534. font-weight: 500;
  535. // color: #93794b;
  536. color: #fff;
  537. }
  538. }
  539. }
  540. .vip {
  541. margin-top: 20rpx;
  542. position: relative;
  543. width: 120rpx;
  544. height: 40rpx;
  545. .vip-bg {
  546. position: absolute;
  547. top: 0;
  548. left: 0;
  549. right: 0;
  550. width: 100%;
  551. height: 100%;
  552. }
  553. .vip-title {
  554. width: 120rpx;
  555. line-height: 40rpx;
  556. text-align: center;
  557. position: relative;
  558. z-index: 10;
  559. font-size: 20rpx;
  560. font-family: PingFang SC;
  561. font-weight: 500;
  562. color: #93794b;
  563. }
  564. }
  565. }
  566. .sy-box {
  567. bottom: 105rpx;
  568. height: 148rpx;
  569. .sy-item {
  570. flex-grow: 1;
  571. text-align: center;
  572. font-size: 28rpx;
  573. font-weight: 500;
  574. }
  575. .jg {
  576. width: 2rpx;
  577. height: 68rpx;
  578. }
  579. }
  580. }
  581. .my-order {
  582. width: 690rpx;
  583. margin: 20rpx auto 0;
  584. border-radius: 20rpx;
  585. }
  586. .box-title {
  587. line-height: 1;
  588. padding: 30rpx;
  589. background: #ffffff;
  590. .title {
  591. font-size: $font-lg;
  592. font-weight: bold;
  593. }
  594. .link {
  595. font-size: $font-base - 2rpx;
  596. color: $font-color-light;
  597. // width: 51rpx;
  598. // height: 25rpx;
  599. // font-size: 26rpx;
  600. // font-family: SourceHanSansCN;
  601. // font-weight: 400;
  602. // color: #666666;
  603. // line-height: 54rpx;
  604. // display: inline-block
  605. }
  606. }
  607. // .order{
  608. // margin-top: 70rpx;
  609. // }
  610. .order-section {
  611. @extend %section;
  612. padding: 40rpx 0;
  613. align-items: center;
  614. .order-item {
  615. @extend %flex-center;
  616. // width: 120rpx;
  617. width: 25%;
  618. border-radius: 10rpx;
  619. font-size: $font-sm;
  620. color: $font-color-dark;
  621. }
  622. .xian {
  623. height: 30rpx;
  624. width: 1rpx;
  625. background: #000000;
  626. }
  627. .order-num {
  628. font-size: $font-sm + 10rpx;
  629. margin-bottom: 10rpx;
  630. }
  631. .iconfont {
  632. font-size: 48rpx;
  633. margin-bottom: 18rpx;
  634. color: #fa436a;
  635. }
  636. .icon-shouhoutuikuan {
  637. font-size: 44rpx;
  638. }
  639. .icon {
  640. height: 88rpx;
  641. width: 90rpx;
  642. margin-bottom: 18rpx;
  643. background-size: 100%;
  644. background-repeat: no-repeat;
  645. background-position: center;
  646. .icon-img {
  647. width: 100%;
  648. height: 100%;
  649. }
  650. }
  651. .icon1 {
  652. height: 50rpx;
  653. width: 48rpx;
  654. margin-bottom: 18rpx;
  655. background-size: 100%;
  656. background-repeat: no-repeat;
  657. background-position: center;
  658. .icon-img {
  659. width: 100%;
  660. height: 100%;
  661. }
  662. }
  663. }
  664. .qd-box {
  665. width: 690rpx;
  666. height: 210rpx;
  667. background: #ffffff;
  668. box-shadow: 0px 0px 20rpx 0px rgba(50, 50, 52, 0.06);
  669. border-radius: 20rpx;
  670. margin: -105rpx auto 30rpx;
  671. position: relative;
  672. padding: 0 40rpx;
  673. font-size: 26rpx;
  674. font-family: PingFang SC;
  675. font-weight: 500;
  676. color: #666666;
  677. image {
  678. flex-shrink: 0;
  679. width: 65rpx;
  680. height: 68rpx;
  681. }
  682. .qd-info {
  683. flex-grow: 1;
  684. padding-left: 24rpx;
  685. line-height: 46rpx;
  686. }
  687. .qd-btn {
  688. width: 190rpx;
  689. height: 80rpx;
  690. line-height: 80rpx;
  691. border-radius: 20px;
  692. background: #dc262b;
  693. border-radius: 20rpx;
  694. text-align: center;
  695. font-size: 32rpx;
  696. font-family: PingFang SC;
  697. font-weight: 500;
  698. color: #ffffff;
  699. }
  700. .qded {
  701. background: #e8e8e8;
  702. color: #999999;
  703. }
  704. }
  705. .tool-box {
  706. padding-top: 30rpx;
  707. padding-bottom: 46rpx;
  708. width: 690rpx;
  709. background: #ffffff;
  710. box-shadow: 0px 0px 20rpx 0px rgba(50, 50, 52, 0.06);
  711. border-radius: 20rpx;
  712. margin: 30rpx auto;
  713. flex-wrap: wrap;
  714. justify-content: flex-start;
  715. align-content: space-around;
  716. margin-top: -100rpx;
  717. z-index: 10;
  718. position: relative;
  719. .tool-item {
  720. width: 20%;
  721. height: 120rpx;
  722. flex-shrink: 0;
  723. flex-direction: column;
  724. align-content: space-between;
  725. justify-content: center;
  726. font-size: 28rpx;
  727. font-family: PingFang SC;
  728. font-weight: 500;
  729. color: #0c1732;
  730. .tool-item-img {
  731. width: 68rpx;
  732. height: 90rpx;
  733. position: relative;
  734. flex-shrink: 0;
  735. .tool-logo {
  736. position: absolute;
  737. width: 56rpx;
  738. height: 56rpx;
  739. top: 0;
  740. left: 0;
  741. bottom: 0;
  742. right: 0;
  743. margin: auto;
  744. }
  745. }
  746. .tool-item-name {
  747. display: inline-block;
  748. font-size: 26rpx;
  749. }
  750. }
  751. }
  752. .tool-list {
  753. width: 690rpx;
  754. margin: auto;
  755. background: transparent;
  756. .item {
  757. background: #ffffff;
  758. border-radius: 20rpx;
  759. box-shadow: 0px 0px 20rpx 0px rgba(50, 50, 52, 0.06);
  760. margin-bottom: 10rpx;
  761. }
  762. }
  763. .popup-box {
  764. width: 522rpx;
  765. height: 605rpx;
  766. background-color: #ffffff;
  767. border-radius: 20rpx;
  768. position: relative;
  769. .img {
  770. position: relative;
  771. top: -56rpx;
  772. left: 0;
  773. width: 522rpx;
  774. height: 132rpx;
  775. display: flex;
  776. justify-content: center;
  777. image {
  778. border-radius: 20rpx 20rpx 0 0;
  779. width: 450rpx;
  780. height: 132rpx;
  781. }
  782. }
  783. .mian {
  784. margin-top: -44rpx;
  785. display: flex;
  786. flex-direction: column;
  787. align-items: center;
  788. // padding: 32rpx 32rpx;
  789. background-color: #ffffff;
  790. border-radius: 0 0 20rpx 20rpx;
  791. text-align: center;
  792. .delivery {
  793. font-size: 40rpx;
  794. color: #333333;
  795. display: flex;
  796. align-items: center;
  797. flex-direction: column;
  798. .title {}
  799. image {
  800. margin-top: 48rpx;
  801. width: 172rpx;
  802. height: 160rpx;
  803. }
  804. }
  805. .nocancel {
  806. font-size: 32rpx;
  807. color: #333333;
  808. margin-top: 14rpx;
  809. }
  810. .comfirm-box {
  811. margin-top: 52rpx;
  812. display: flex;
  813. // margin-bottom: 32rpx;
  814. // justify-content: space-around;
  815. .cancel {
  816. display: flex;
  817. align-items: center;
  818. justify-content: center;
  819. width: 197rpx;
  820. height: 74rpx;
  821. border: 1px solid #dcc786;
  822. border-radius: 38rpx;
  823. font-size: 32rpx;
  824. color: #605128;
  825. }
  826. .comfirm {
  827. margin-left: 32rpx;
  828. display: flex;
  829. align-items: center;
  830. justify-content: center;
  831. width: 197rpx;
  832. height: 74rpx;
  833. background: linear-gradient(-90deg, #d1ba77 0%, #f7e8ad 100%);
  834. border-radius: 38px;
  835. font-size: 32rpx;
  836. color: #605128;
  837. }
  838. }
  839. }
  840. }
  841. .popup {
  842. width: 560rpx;
  843. padding-bottom: 45rpx;
  844. background-color: #ffffff;
  845. border-radius: 15rpx;
  846. text-align: center;
  847. line-height: 1;
  848. .popup-dox {
  849. position: relative;
  850. .popup-logo {
  851. margin: -160rpx auto 0;
  852. width: 400rpx;
  853. height: 200rpx;
  854. }
  855. }
  856. .popup-title {
  857. margin-top: 85rpx;
  858. font-size: 40rpx;
  859. font-family: PingFang SC;
  860. font-weight: bold;
  861. color: #2a2a2a;
  862. text {
  863. font-size: 56rpx;
  864. color: #e83f30;
  865. }
  866. }
  867. .popup-tip {
  868. margin-top: 20rpx;
  869. font-size: 28rpx;
  870. font-family: PingFang SC;
  871. font-weight: 500;
  872. color: #8c8c8c;
  873. text {
  874. color: #e83f30;
  875. }
  876. }
  877. .popup-btn {
  878. margin: 58rpx auto 0;
  879. width: 270rpx;
  880. height: 66rpx;
  881. background: #f0c838;
  882. border-radius: 34rpx;
  883. text-align: center;
  884. line-height: 66rpx;
  885. font-size: 36rpx;
  886. font-family: Source Han Sans CN;
  887. font-weight: 500;
  888. color: #ffffff;
  889. }
  890. }
  891. .page-btm {
  892. background-color: #f5f5f5;
  893. font-size: 20rpx;
  894. text-align: center;
  895. color: #d6d6d8;
  896. }
  897. </style>