user.vue 19 KB

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