user.vue 19 KB

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