user.vue 20 KB

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