user.vue 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794
  1. <template>
  2. <view class="container">
  3. <scroll-view class="content-box" scroll-y="true">
  4. <view class="user-section">
  5. <view class="bg"><image src="/static/img/user-bg.png" mode=""></image></view>
  6. <!-- #ifdef APP-PLUS -->
  7. <view class="top">
  8. </view>
  9. <!-- #endif -->
  10. <view class="user-info-box ">
  11. <view class="detail flex">
  12. <view class="portrait-box" @click="navTo('/pages/set/userinfo')">
  13. <image class="portrait" :src="userInfo.avatar || '/static/error/missing-face.png'"></image>
  14. </view>
  15. <view class="info-box">
  16. <view class="info-top flex">
  17. <view class="username clamp">{{ userInfo.nickname || '游客' }}</view>
  18. <view class="vip" v-if="userInfo.level > 0">
  19. <image class="vip-bg" src="../../static/img/vip.png" mode=""></image>
  20. <view class="vip-title">{{ userInfo.level_info.name }}</view>
  21. </view>
  22. </view>
  23. <view class="font-size-sm">{{ userInfo.account }}</view>
  24. </view>
  25. </view>
  26. <view class="my-info flex" @click="navTo('/pages/set/userinfo')" v-if="hasLogin">
  27. <image src="../../static/icon/i6.png" mode=""></image>
  28. <view class="title">设置</view>
  29. </view>
  30. </view>
  31. </view>
  32. <view class="box">
  33. <view class="sweets-box">
  34. <view class="sweets" @click="navTo('/pages/money/xfIntegral')">
  35. <view class="limit">{{ userInfo.point*1 || 0 }}</view>
  36. <view class="sweets-name">消费补贴券</view>
  37. </view>
  38. <view class="jiange"></view>
  39. <view class="sweets" @click="navTo('/pages/user/award')">
  40. <view class="limit">{{ money * 1 || 0 }}</view>
  41. <view class="sweets-name">余额</view>
  42. </view>
  43. <view class="jiange"></view>
  44. <view class="sweets" @click="navTo('/pages/money/wallet')">
  45. <view class="limit">{{ userInfo.brokerage_price*1 }}</view>
  46. <view class="sweets-name">佣金</view>
  47. </view>
  48. <view class="jiange"></view>
  49. <view class="sweets" @click="navTo('/pages/money/integral')">
  50. <view class="limit">{{ userInfo.integral * 1 || 0 }}</view>
  51. <view class="sweets-name">消费补贴券</view>
  52. </view>
  53. </view>
  54. </view>
  55. <view class="my-order">
  56. <view class="box-title flex ">
  57. <view class="title1"><text>商城订单</text></view>
  58. <view class="link" @click="navTo('/pages/order/order?state=0')" hover-class="common-hover"><text class="iconfont iconenter"></text></view>
  59. </view>
  60. <view class="order-section">
  61. <view class="order-item" @click="navTo('/pages/order/order?state=0')" hover-class="common-hover" :hover-stay-time="50">
  62. <view class=" icon1 position-relative"><image class="icon-img" src="/static/user/order1.png" mode="aspectFit"></image></view>
  63. <text>待付款</text>
  64. </view>
  65. <view class="order-item" @click="navTo('/pages/order/order?state=1')" hover-class="common-hover" :hover-stay-time="50">
  66. <view class="icon1 position-relative"><image class="icon-img" src="/static/user/order2.png" mode="aspectFit"></image></view>
  67. <text>待发货</text>
  68. </view>
  69. <view class="order-item" @click="navTo('/pages/order/order?state=2')" hover-class="common-hover" :hover-stay-time="50">
  70. <view class="icon1 position-relative"><image class="icon-img" src="/static/user/order3.png" mode="aspectFit"></image></view>
  71. <text>待收货</text>
  72. </view>
  73. <view class="order-item" @click="navTo('/pages/order/order?state=4')" hover-class="common-hover" :hover-stay-time="50">
  74. <view class=" icon1 position-relative"><image class="icon-img" src="/static/user/order4.png" mode="aspectFit"></image></view>
  75. <text>已完成</text>
  76. </view>
  77. </view>
  78. </view>
  79. <view class="history-section icon">
  80. <uni-list>
  81. <uni-list-item title="我的收藏" @click="navTo('/pages/user/favorites')" thumb="/static/user/shoucang.png"></uni-list-item>
  82. <uni-list-item title="收货地址" @click="navTo('/pages/set/address')" thumb="/static/user/dizhi.png"></uni-list-item>
  83. <!-- <uni-list-item title="联系客服" @click="showPopup" thumb="/static/user/kefu.png"></uni-list-item> -->
  84. <uni-list-item title="绑定手机号" @click="navTo('/pages/set/phone')" thumb="/static/user/setphone.png"></uni-list-item>
  85. <uni-list-item title="分享海报" @click="navTo('/pages/user/shareQrCode')" thumb="/static/user/share.png"></uni-list-item>
  86. <uni-list-item title="我的推广" @click="navTo('/pages/user/team')" thumb="/static/user/team.png"></uni-list-item>
  87. <uni-list-item title="会员协议" @click="navTo('/pages/contract/agreement')" thumb="/static/user/vipxy.png"></uni-list-item>
  88. <uni-list-item title="隐私政策" @click="navTo('/pages/contract/privacy')" thumb="/static/user/yszc.png"></uni-list-item>
  89. <!-- <uni-list-item title="关于我们" @click="navTo('/pages/user/about')" thumb="/static/user/about.png"></uni-list-item> -->
  90. </uni-list>
  91. </view>
  92. </scroll-view>
  93. <uni-popup ref="popup" type="center">
  94. <view class="popup-box">
  95. <view class="img"><image src="../../static/img/img009.png" mode=""></image></view>
  96. <view class="mian">
  97. <view class="delivery">
  98. <view class="title">已经为您定制专属客服</view>
  99. <image src="../../static/img/img010.png" mode=""></image>
  100. </view>
  101. <view class="nocancel">客服VX:{{ weixin }}</view>
  102. <view class="comfirm-box">
  103. <view class="cancel" @click="close">取消</view>
  104. <view class="comfirm" @click="copy()">复制微信</view>
  105. </view>
  106. </view>
  107. </view>
  108. </uni-popup>
  109. </view>
  110. </template>
  111. <script>
  112. import { mapState, mapMutations } from 'vuex';
  113. import { spreadCommission, userBalance } from '@/api/wallet.js';
  114. import uniList from '@/components/uni-list/uni-list.vue';
  115. import uniListItem from '@/components/uni-list-item/uni-list-item.vue';
  116. import { orderData, getUserInfo, service } from '@/api/user.js';
  117. import { saveUrl, interceptor } from '@/utils/loginUtils.js';
  118. import { logout } from '@/api/set.js';
  119. // import uniCopy from '@/js_sdk/xb-copy/uni-copy.js';
  120. let startY = 0,
  121. moveY = 0,
  122. pageAtTop = true;
  123. export default {
  124. components: {
  125. uniList,
  126. uniListItem
  127. },
  128. data() {
  129. return {
  130. coverTransform: 'translateY(0px)',
  131. coverTransition: '0s',
  132. moving: false,
  133. erweima: '',
  134. weixin: 'lzmycd0408',
  135. money:'',
  136. };
  137. },
  138. onShow() {
  139. // 判断是否已经登录
  140. if (this.hasLogin) {
  141. this.loadBaseData();
  142. userBalance({}).then(({ data }) => {
  143. this.money = data.now_money;
  144. });
  145. }
  146. },
  147. onReady() {
  148. // 初始化获取页面宽度
  149. uni.createSelectorQuery()
  150. .select('.container')
  151. .fields(
  152. {
  153. size: true
  154. },
  155. data => {
  156. // 计算最多下拉的高度
  157. this.userDowm = Math.floor((data.width / 750) * 185);
  158. // 计算最大触发修改高度事件
  159. this.userMaxDowm = Math.floor((data.width / 750) * 250);
  160. }
  161. )
  162. .exec();
  163. },
  164. // #ifndef MP
  165. // onNavigationBarButtonTap(e) {
  166. // const index = e.index;
  167. // if (index === 0) {
  168. // this.navTo('/pages/set/set');
  169. // } else if (index === 1) {
  170. // // #ifdef APP-PLUS
  171. // const pages = getCurrentPages();
  172. // const page = pages[pages.length - 1];
  173. // const currentWebview = page.$getAppWebview();
  174. // currentWebview.hideTitleNViewButtonRedDot({
  175. // index
  176. // });
  177. // // #endif
  178. // uni.navigateTo({
  179. // url: '/pages/user/notice'
  180. // });
  181. // }
  182. // },
  183. // #endif
  184. computed: {
  185. ...mapState('user', ['userInfo', 'orderInfo', 'hasLogin'])
  186. },
  187. methods: {
  188. ...mapMutations('user', ['setUserInfo', 'logout','setOrderInfo']),
  189. copy() {
  190. let content = this.weixin
  191. /**
  192. * 小程序端 和 app端的复制逻辑
  193. */
  194. //#ifndef H5
  195. uni.setClipboardData({
  196. data: content,
  197. success: function() {
  198. console.log('success');
  199. return true;
  200. }
  201. });
  202. //#endif
  203. /**
  204. * H5端的复制逻辑
  205. */
  206. // #ifdef H5
  207. if (!document.queryCommandSupported('copy')) {
  208. //为了兼容有些浏览器 queryCommandSupported 的判断
  209. // 不支持
  210. return false;
  211. }
  212. let textarea = document.createElement('textarea');
  213. textarea.value = content;
  214. textarea.readOnly = 'readOnly';
  215. document.body.appendChild(textarea);
  216. textarea.select(); // 选择对象
  217. textarea.setSelectionRange(0, content.length); //核心
  218. let result = document.execCommand('copy'); // 执行浏览器复制命令
  219. textarea.remove();
  220. return result;
  221. // #endif
  222. },
  223. bc_code() {
  224. let that = this;
  225. console.log('保存二维码', this.erweima);
  226. uni.downloadFile({
  227. //获得二维码的临时地址
  228. url: this.erweima,
  229. success: res => {
  230. //console.log('获取url',res)
  231. if (res.statusCode == 200) {
  232. uni.saveImageToPhotosAlbum({
  233. filePath: res.tempFilePath, //传入临时地址
  234. success() {
  235. that.$api.msg('保存成功'); //封装的提示
  236. },
  237. fail() {
  238. that.$api.msg('保存失败');
  239. }
  240. });
  241. }
  242. }
  243. });
  244. },
  245. showPopup() {
  246. this.$refs.popup.open();
  247. },
  248. close() {
  249. this.$refs.popup.close();
  250. },
  251. comfirm(text) {
  252. console.log(text);
  253. const result = this.uniCopy(text);
  254. if (result === false) {
  255. uni.showToast({
  256. title: '不支持'
  257. });
  258. } else {
  259. uni.showToast({
  260. title: '复制成功',
  261. icon: 'none'
  262. });
  263. }
  264. this.$refs.popup.close();
  265. },
  266. // 加载初始数据
  267. loadBaseData() {
  268. getUserInfo({})
  269. .then(({ data }) => {
  270. console.log(data, 'userInfo+++++++++++++++++++');
  271. this.setUserInfo(data);
  272. // 获取用户数据完毕后在获取订单数据防止多次跳转到登录页
  273. orderData({})
  274. .then(({ data }) => {
  275. this.setOrderInfo(data);
  276. })
  277. .catch(e => {
  278. this.setOrderInfo({
  279. complete_count: 0, //完成
  280. received_count: 0, //待收货
  281. unshipped_count: 0, //待发货
  282. order_count: 0, //订单总数
  283. unpaid_count: 0 //待付款
  284. });
  285. });
  286. })
  287. .catch(e => {
  288. console.log(e);
  289. });
  290. },
  291. /**
  292. * 统一跳转接口,拦截未登录路由
  293. * navigator标签现在默认没有转场动画,所以用view
  294. */
  295. navTo(url) {
  296. if (!this.hasLogin) {
  297. // 保存地址
  298. saveUrl();
  299. // 登录拦截
  300. interceptor();
  301. } else {
  302. uni.navigateTo({
  303. url
  304. });
  305. }
  306. }
  307. }
  308. };
  309. </script>
  310. <style lang="scss">
  311. page {
  312. height: 100%;
  313. background-color: $page-color-base;
  314. }
  315. %flex-center {
  316. display: flex;
  317. flex-direction: column;
  318. justify-content: center;
  319. align-items: center;
  320. }
  321. %section {
  322. display: flex;
  323. justify-content: space-around;
  324. align-content: center;
  325. background: #fff;
  326. border-radius: 10rpx;
  327. }
  328. .container {
  329. height: 100%;
  330. background-color: #fff;
  331. }
  332. .content-box {
  333. height: 100%;
  334. }
  335. .user-section {
  336. height: 420rpx;
  337. padding: 50rpx 0rpx 0 30rpx;
  338. position: relative;
  339. .bg {
  340. position: absolute;
  341. left: 0;
  342. top: 0;
  343. width: 100%;
  344. height: 100%;
  345. background: linear-gradient(180deg, #08c4e6, #50ead2);
  346. // z-index: 1;
  347. // background-color: $base-color;
  348. image {
  349. width: 100%;
  350. height: 100%;
  351. }
  352. }
  353. }
  354. .top {
  355. height: 50rpx;
  356. }
  357. .user-info-box {
  358. height: 180rpx;
  359. color: white;
  360. display: flex;
  361. align-items: center;
  362. justify-content: space-between;
  363. position: relative;
  364. z-index: 1;
  365. .detail {
  366. height: 130rpx;
  367. .portrait-box {
  368. height: 100%;
  369. .portrait {
  370. width: 130rpx;
  371. height: 100%;
  372. border: 5rpx solid #fff;
  373. border-radius: 50%;
  374. }
  375. }
  376. .info-box {
  377. margin-left: 20rpx;
  378. line-height: 1.5;
  379. .username {
  380. font-size: $font-lg + 2rpx;
  381. height: 100%;
  382. max-width: 200rpx;
  383. }
  384. .vip {
  385. position: relative;
  386. margin-left: 12rpx;
  387. width: 120rpx;
  388. height: 40rpx;
  389. .vip-bg {
  390. position: absolute;
  391. top: 0;
  392. left: 0;
  393. right: 0;
  394. width: 100%;
  395. height: 100%;
  396. }
  397. .vip-title {
  398. position: relative;
  399. z-index: 10;
  400. font-size: 20rpx;
  401. font-family: PingFang SC;
  402. font-weight: 500;
  403. color: #93794b;
  404. padding-left: 36rpx;
  405. line-height: 40rpx;
  406. }
  407. }
  408. .username-t {
  409. font-size: $font-lg + 6rpx;
  410. // height: 32rpx;
  411. display: flex;
  412. align-items: center;
  413. image {
  414. display: inline-block;
  415. margin-left: 10rpx;
  416. width: 147rpx;
  417. height: 32rpx;
  418. }
  419. }
  420. .user-get {
  421. font-size: $font-lg;
  422. text {
  423. font-size: $font-lg + 6rpx;
  424. }
  425. }
  426. }
  427. }
  428. .config {
  429. font-size: 48rpx;
  430. height: 130rpx;
  431. .setting {
  432. margin-right: 51rpx;
  433. }
  434. }
  435. .my-info {
  436. margin-right: 30rpx;
  437. width: 130rpx;
  438. height: 50rpx;
  439. border: 1px solid #ffffff;
  440. border-radius: 26rpx;
  441. justify-content: center;
  442. image {
  443. width: 30rpx;
  444. height: 30rpx;
  445. }
  446. .title {
  447. padding-left: 9rpx;
  448. font-size: 24rpx;
  449. font-family: PingFang SC;
  450. font-weight: 500;
  451. color: #ffffff;
  452. }
  453. }
  454. }
  455. .box {
  456. display: flex;
  457. flex-direction: column;
  458. width: 710rpx;
  459. position: relative;
  460. margin: -80rpx 20rpx;
  461. color: #fefefe;
  462. }
  463. .my-order {
  464. margin: 100rpx auto 0;
  465. display: flex;
  466. justify-content: space-between;
  467. flex-direction: column;
  468. width: 710rpx;
  469. background: #ffffff;
  470. box-shadow: 0rpx 0rpx 20rpx 0rpx rgba(50, 50, 52, 0.06);
  471. border-radius: 20rpx;
  472. }
  473. .box-title {
  474. border-top-left-radius: 20rpx;
  475. border-top-right-radius: 20rpx;
  476. background-color: #ffffff;
  477. line-height: 1;
  478. padding: 26rpx 34rpx 20rpx;
  479. border-bottom: 1px solid #f5f5f5;
  480. .title1 {
  481. font-size: 30rpx;
  482. font-family: PingFang SC;
  483. font-weight: bold;
  484. color: #333333;
  485. }
  486. .link {
  487. font-size: $font-base - 2rpx;
  488. color: $font-color-light;
  489. }
  490. }
  491. .order-section {
  492. display: flex;
  493. flex-wrap: wrap;
  494. align-items: center;
  495. text-align: center;
  496. padding: 34rpx 0 10rpx;
  497. .order-item {
  498. display: flex;
  499. flex-direction: column;
  500. width: 25%;
  501. align-items: center;
  502. height: 140rpx;
  503. font-size: $font-sm;
  504. color: $font-color-dark;
  505. }
  506. .iconfont {
  507. font-size: 48rpx;
  508. margin-bottom: 18rpx;
  509. color: #fa436a;
  510. }
  511. .icon-shouhoutuikuan {
  512. font-size: 44rpx;
  513. }
  514. .icon {
  515. height: 88rpx;
  516. width: 90rpx;
  517. margin-bottom: 18rpx;
  518. background-size: 100%;
  519. background-repeat: no-repeat;
  520. background-position: center;
  521. .icon-img {
  522. width: 100%;
  523. height: 100%;
  524. }
  525. }
  526. .icon1 {
  527. height: 50rpx;
  528. width: 48rpx;
  529. margin-bottom: 18rpx;
  530. background-size: 100%;
  531. background-repeat: no-repeat;
  532. background-position: center;
  533. .icon-img {
  534. width: 100%;
  535. height: 100%;
  536. }
  537. }
  538. }
  539. .sweets-box {
  540. display: flex;
  541. align-items: center;
  542. width: 710rpx;
  543. padding: 48rpx 0;
  544. background: #ffffff;
  545. box-shadow: 0px 0px 20px 0px rgba(50, 50, 52, 0.06);
  546. border-radius: 20rpx;
  547. .jiange {
  548. width: 1rpx;
  549. height: 36rpx;
  550. background: #999999;
  551. }
  552. .sweets {
  553. width: 25%;
  554. display: flex;
  555. flex-direction: column;
  556. align-items: center;
  557. font-size: 28rpx;
  558. font-family: PingFang SC;
  559. font-weight: 500;
  560. .limit {
  561. font-size: 36rpx;
  562. font-family: PingFang SC;
  563. font-weight: bold;
  564. color: #ff0000;
  565. }
  566. .sweets-name {
  567. font-size: 28rpx;
  568. font-family: PingFang SC;
  569. font-weight: 500;
  570. color: #666666;
  571. }
  572. }
  573. }
  574. .cover-container {
  575. background: $page-color-base;
  576. margin-top: -150rpx;
  577. padding: 0 30rpx;
  578. position: relative;
  579. background: #f5f5f5;
  580. padding-bottom: 20rpx;
  581. .arc {
  582. position: absolute;
  583. left: 0;
  584. top: -34rpx;
  585. width: 100%;
  586. height: 36rpx;
  587. }
  588. }
  589. .tj-sction {
  590. @extend %section;
  591. .tj-item {
  592. @extend %flex-center;
  593. flex-direction: column;
  594. height: 140rpx;
  595. font-size: $font-sm;
  596. color: #75787d;
  597. }
  598. .num {
  599. font-size: $font-lg;
  600. color: $font-color-dark;
  601. margin-bottom: 8rpx;
  602. }
  603. }
  604. .history-section {
  605. // padding: 30rpx 0 0;
  606. margin-top: 20rpx;
  607. background: #fff;
  608. border-radius: 10rpx;
  609. .sec-header {
  610. display: flex;
  611. align-items: center;
  612. font-size: $font-base;
  613. color: $font-color-dark;
  614. line-height: 40rpx;
  615. margin-left: 30rpx;
  616. padding-top: 30rpx;
  617. .iconfont {
  618. font-size: 44rpx;
  619. color: $color-red;
  620. margin-right: 16rpx;
  621. line-height: 40rpx;
  622. }
  623. }
  624. .h-list {
  625. white-space: nowrap;
  626. padding: 30rpx 30rpx 0;
  627. .h-list-image {
  628. display: inline-block;
  629. width: 160rpx;
  630. height: 160rpx;
  631. margin-right: 20rpx;
  632. border-radius: 10rpx;
  633. }
  634. }
  635. }
  636. .up-box {
  637. margin: 21rpx auto;
  638. width: 710rpx;
  639. height: 90rpx;
  640. background: linear-gradient(73deg, #ffffff 0%, #fffbeb 0%, #fff1da 0%, #fed591 100%);
  641. border-radius: 20rpx;
  642. image {
  643. width: 100%;
  644. height: 100%;
  645. border-radius: 20rpx;
  646. }
  647. }
  648. .item-box-b {
  649. width: 710rpx;
  650. height: 221rpx;
  651. background: #ffffff;
  652. box-shadow: 0px 0px 20rpx 0px rgba(50, 50, 52, 0.5);
  653. border-radius: 20rpx;
  654. position: relative;
  655. top: -150rpx;
  656. left: 0;
  657. right: 0;
  658. margin: 0 auto -150rpx;
  659. }
  660. .popup-box {
  661. width: 522rpx;
  662. height: 605rpx;
  663. background-color: #ffffff;
  664. border-radius: 20rpx;
  665. position: relative;
  666. .img {
  667. position: relative;
  668. top: -56rpx;
  669. left: 0;
  670. width: 522rpx;
  671. height: 132rpx;
  672. display: flex;
  673. justify-content: center;
  674. image {
  675. border-radius: 20rpx 20rpx 0 0;
  676. width: 450rpx;
  677. height: 132rpx;
  678. }
  679. }
  680. .mian {
  681. margin-top: -44rpx;
  682. display: flex;
  683. flex-direction: column;
  684. align-items: center;
  685. // padding: 32rpx 32rpx;
  686. background-color: #ffffff;
  687. border-radius: 0 0 20rpx 20rpx;
  688. text-align: center;
  689. .delivery {
  690. font-size: 40rpx;
  691. color: #333333;
  692. display: flex;
  693. align-items: center;
  694. flex-direction: column;
  695. .title {
  696. }
  697. image {
  698. margin-top: 48rpx;
  699. width: 172rpx;
  700. height: 160rpx;
  701. }
  702. }
  703. .nocancel {
  704. font-size: 32rpx;
  705. color: #333333;
  706. margin-top: 14rpx;
  707. }
  708. .comfirm-box {
  709. margin-top: 52rpx;
  710. display: flex;
  711. // margin-bottom: 32rpx;
  712. // justify-content: space-around;
  713. .cancel {
  714. display: flex;
  715. align-items: center;
  716. justify-content: center;
  717. width: 197rpx;
  718. height: 74rpx;
  719. border: 1px solid #dcc786;
  720. border-radius: 38rpx;
  721. font-size: 32rpx;
  722. color: #605128;
  723. }
  724. .comfirm {
  725. margin-left: 32rpx;
  726. display: flex;
  727. align-items: center;
  728. justify-content: center;
  729. width: 197rpx;
  730. height: 74rpx;
  731. background: linear-gradient(-90deg, #d1ba77 0%, #f7e8ad 100%);
  732. border-radius: 38px;
  733. font-size: 32rpx;
  734. color: #605128;
  735. }
  736. }
  737. }
  738. }
  739. </style>