user.vue 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800
  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">
  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('/pages/money/wallet')" 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 (!this.hasLogin) {
  249. // 保存地址
  250. saveUrl();
  251. // 登录拦截
  252. interceptor();
  253. } else {
  254. uni.navigateTo({
  255. url,
  256. fail() {
  257. uni.switchTab({
  258. url
  259. });
  260. }
  261. });
  262. }
  263. },
  264. /**
  265. * 会员卡下拉和回弹
  266. * 1.关闭bounce避免ios端下拉冲突
  267. * 2.由于touchmove事件的缺陷(以前做小程序就遇到,比如20跳到40,h5反而好很多),下拉的时候会有掉帧的感觉
  268. * transition设置0.1秒延迟,让css来过渡这段空窗期
  269. * 3.回弹效果可修改曲线值来调整效果,推荐一个好用的bezier生成工具 http://cubic-bezier.com/
  270. */
  271. coverTouchstart(e) {
  272. // console.log(e);
  273. if (pageAtTop === false) {
  274. return;
  275. }
  276. this.coverTransition = 'transform .1s linear';
  277. startY = e.touches[0].clientY;
  278. },
  279. coverTouchmove(e) {
  280. // console.log(e);
  281. moveY = e.touches[0].clientY;
  282. let moveDistance = moveY - startY;
  283. let maxDowm = this.userMaxDowm;
  284. let Dowm = this.userDowm;
  285. if (moveDistance < 0) {
  286. this.moving = false;
  287. return;
  288. }
  289. this.moving = true;
  290. if (moveDistance >= Dowm && moveDistance < maxDowm) {
  291. moveDistance = Dowm;
  292. }
  293. if (moveDistance > 0 && moveDistance <= Dowm) {
  294. this.coverTransform = `translateY(${moveDistance}px)`;
  295. }
  296. },
  297. coverTouchend() {
  298. if (this.moving === false) {
  299. return;
  300. }
  301. this.moving = false;
  302. this.coverTransition = 'transform 0.3s cubic-bezier(.21,1.93,.53,.64)';
  303. this.coverTransform = 'translateY(0px)';
  304. },
  305. kfOpen() {
  306. this.$refs.popupkf.open()
  307. },
  308. kfClose() {
  309. this.$refs.popupkf.close()
  310. },
  311. comfirm(text) {
  312. console.log(text);
  313. const result = uniCopy(text);
  314. if (result === false) {
  315. uni.showToast({
  316. title: '不支持'
  317. });
  318. } else {
  319. uni.showToast({
  320. title: '复制成功',
  321. icon: 'none'
  322. });
  323. }
  324. this.$refs.popup.close();
  325. },
  326. }
  327. };
  328. </script>
  329. <style lang="scss">
  330. page {
  331. height: 100%;
  332. }
  333. %flex-center {
  334. display: flex;
  335. flex-direction: column;
  336. justify-content: center;
  337. align-items: center;
  338. }
  339. %section {
  340. display: flex;
  341. justify-content: space-around;
  342. align-content: center;
  343. background: #fff;
  344. border-radius: 10rpx;
  345. }
  346. .container {
  347. height: 100%;
  348. background-color: $page-color-base;
  349. }
  350. .content-box {
  351. height: 100%;
  352. }
  353. .vheigh {
  354. height: var(--status-bar-height);
  355. background-color: $base-color;
  356. }
  357. .user-section {
  358. height: 435rpx;
  359. padding: 15rpx 30rpx 0;
  360. position: relative;
  361. .bg {
  362. position: absolute;
  363. left: 0;
  364. top: 0;
  365. width: 100%;
  366. height: 100%;
  367. background-color: $base-color;
  368. }
  369. }
  370. .user-info-box {
  371. height: 180rpx;
  372. color: white;
  373. display: flex;
  374. align-items: center;
  375. justify-content: space-between;
  376. position: relative;
  377. z-index: 1;
  378. .detail {
  379. height: 130rpx;
  380. .portrait-box {
  381. height: 100%;
  382. .portrait {
  383. width: 130rpx;
  384. height: 100%;
  385. border: 5rpx solid #fff;
  386. border-radius: 50%;
  387. }
  388. }
  389. .info-box {
  390. margin-left: 20rpx;
  391. line-height: 1.5;
  392. .username {
  393. font-size: $font-lg + 6rpx;
  394. height: 100%;
  395. }
  396. }
  397. }
  398. .config {
  399. font-size: 48rpx;
  400. height: 130rpx;
  401. .setting {
  402. margin-right: 51rpx;
  403. }
  404. }
  405. }
  406. .vip-card-box {
  407. display: flex;
  408. flex-direction: column;
  409. color: #f7d680;
  410. height: 240rpx;
  411. background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.8));
  412. border-radius: 16rpx 16rpx 0 0;
  413. overflow: hidden;
  414. position: relative;
  415. padding: 20rpx 24rpx;
  416. .card-bg {
  417. position: absolute;
  418. top: 20rpx;
  419. right: 0;
  420. width: 380rpx;
  421. height: 260rpx;
  422. }
  423. .b-btn {
  424. position: absolute;
  425. right: 20rpx;
  426. top: 16rpx;
  427. width: 132rpx;
  428. height: 40rpx;
  429. text-align: center;
  430. line-height: 40rpx;
  431. font-size: 22rpx;
  432. color: #36343c;
  433. border-radius: 20px;
  434. background: linear-gradient(left, #f9e6af, #ffd465);
  435. z-index: 1;
  436. }
  437. .tit {
  438. font-size: $font-base + 2rpx;
  439. color: #f7d680;
  440. margin-bottom: 28rpx;
  441. .iconfont {
  442. color: #f6e5a3;
  443. margin-right: 16rpx;
  444. }
  445. }
  446. .e-b {
  447. font-size: $font-sm;
  448. color: #d8cba9;
  449. margin-top: 10rpx;
  450. }
  451. }
  452. .cover-container {
  453. background: $page-color-base;
  454. margin-top: -150rpx;
  455. padding: 0 30rpx;
  456. position: relative;
  457. background: #f5f5f5;
  458. padding-bottom: 20rpx;
  459. .arc {
  460. position: absolute;
  461. left: 0;
  462. top: -34rpx;
  463. width: 100%;
  464. height: 36rpx;
  465. }
  466. }
  467. .tj-sction {
  468. @extend %section;
  469. .tj-item {
  470. @extend %flex-center;
  471. flex-direction: column;
  472. height: 140rpx;
  473. font-size: $font-sm;
  474. color: #75787d;
  475. }
  476. .num {
  477. font-size: $font-lg;
  478. color: $font-color-dark;
  479. margin-bottom: 8rpx;
  480. }
  481. }
  482. .item-box {
  483. width: 708rpx;
  484. height: 163rpx;
  485. background: #fff;
  486. border-radius: 28rpx;
  487. background-color: white;
  488. margin: -40rpx auto 30rpx;
  489. position: relative;
  490. // margin-top: 20rpx;
  491. .box-title {
  492. line-height: 1;
  493. padding: 30rpx;
  494. .title {
  495. font-size: $font-lg;
  496. font-weight: bold;
  497. }
  498. .link {
  499. font-size: $font-base - 2rpx;
  500. color: $font-color-light;
  501. }
  502. }
  503. .order-section {
  504. @extend %section;
  505. padding: 28rpx 0;
  506. .order-item {
  507. @extend %flex-center;
  508. width: 120rpx;
  509. height: 120rpx;
  510. border-radius: 10rpx;
  511. font-size: $font-sm;
  512. color: $font-color-dark;
  513. }
  514. .iconfont {
  515. font-size: 48rpx;
  516. margin-bottom: 18rpx;
  517. color: #fa436a;
  518. }
  519. .icon-shouhoutuikuan {
  520. font-size: 44rpx;
  521. }
  522. .icon {
  523. height: 50rpx;
  524. width: 48rpx;
  525. margin-bottom: 18rpx;
  526. background-size: 100%;
  527. background-repeat: no-repeat;
  528. background-position: center;
  529. .icon-img {
  530. width: 100%;
  531. height: 100%;
  532. }
  533. }
  534. }
  535. }
  536. .history-section {
  537. // padding: 30rpx 0 0;
  538. margin-top: 20rpx;
  539. background: #fff;
  540. border-radius: 10rpx;
  541. .sec-header {
  542. display: flex;
  543. align-items: center;
  544. font-size: $font-base;
  545. color: $font-color-dark;
  546. line-height: 40rpx;
  547. margin-left: 30rpx;
  548. padding-top: 30rpx;
  549. .iconfont {
  550. font-size: 44rpx;
  551. color: $color-red;
  552. margin-right: 16rpx;
  553. line-height: 40rpx;
  554. }
  555. }
  556. .h-list {
  557. white-space: nowrap;
  558. padding: 30rpx 30rpx 0;
  559. .h-list-image {
  560. display: inline-block;
  561. width: 160rpx;
  562. height: 160rpx;
  563. margin-right: 20rpx;
  564. border-radius: 10rpx;
  565. }
  566. }
  567. }
  568. .user-top {
  569. height: 564rpx;
  570. position: relative;
  571. .user-top-bg {
  572. width: 750rpx;
  573. height: 564rpx;
  574. // width: 100%;
  575. // position: absolute;
  576. }
  577. .user-info {
  578. width: 750rpx;
  579. position: absolute;
  580. top: 66rpx;
  581. display: flex;
  582. flex-direction: column;
  583. justify-content: center;
  584. align-items: center;
  585. .avtar {
  586. width: 134rpx;
  587. height: 134rpx;
  588. border-radius: 50%;
  589. }
  590. .name {
  591. margin-top: 20rpx;
  592. font-size: 39rpx;
  593. font-family: PingFang SC;
  594. font-weight: bold;
  595. color: #FFFFFF;
  596. }
  597. .phone {
  598. margin-top: 13rpx;
  599. font-size: 29rpx;
  600. font-family: PingFang SC;
  601. font-weight: 500;
  602. color: #FFFFFF;
  603. }
  604. }
  605. .sy-box {
  606. position: absolute;
  607. bottom: 30rpx;
  608. height: 148rpx;
  609. width: 750rpx;
  610. // background-color: #bfa;
  611. .sy-item {
  612. width: 30%;
  613. flex-grow: 1;
  614. text-align: center;
  615. font-size: 28rpx;
  616. font-family: PingFang SC;
  617. font-weight: 500;
  618. color: #ffffff;
  619. .sy-item-val {
  620. font-size: 39rpx;
  621. }
  622. }
  623. .jg {
  624. width: 2rpx;
  625. height: 68rpx;
  626. background-color: #fff;
  627. }
  628. }
  629. }
  630. .item-box-b {
  631. width: 710rpx;
  632. height: 221rpx;
  633. background: #ffffff;
  634. margin: 20rpx auto 60rpx;
  635. }
  636. .btm-box {
  637. width: 706rpx;
  638. height: 104rpx;
  639. background: #ffffff;
  640. box-shadow: 0px 0px 20rpx 0px rgba(50, 50, 52, 0.06);
  641. border-radius: 28rpx;
  642. margin: 20rpx auto;
  643. position: relative;
  644. padding: 0 33rpx 0 24rpx;
  645. font-size: 29rpx;
  646. font-weight: bold;
  647. color: #5d5d5d;
  648. .left-img {
  649. width: 40rpx;
  650. }
  651. .right-img {
  652. width: 14rpx;
  653. }
  654. view {
  655. flex-grow: 1;
  656. padding-left: 12rpx;
  657. }
  658. }
  659. .popup-box {
  660. width: 522rpx;
  661. height: 605rpx;
  662. background-color: #ffffff;
  663. border-radius: 20rpx;
  664. position: relative;
  665. .img {
  666. position: relative;
  667. top: -56rpx;
  668. left: 0;
  669. width: 522rpx;
  670. height: 132rpx;
  671. display: flex;
  672. justify-content: center;
  673. image {
  674. border-radius: 20rpx 20rpx 0 0;
  675. width: 450rpx;
  676. height: 132rpx;
  677. }
  678. }
  679. .mian {
  680. margin-top: -44rpx;
  681. display: flex;
  682. flex-direction: column;
  683. align-items: center;
  684. // padding: 32rpx 32rpx;
  685. background-color: #ffffff;
  686. border-radius: 0 0 20rpx 20rpx;
  687. text-align: center;
  688. .delivery {
  689. font-size: 40rpx;
  690. color: #333333;
  691. display: flex;
  692. align-items: center;
  693. flex-direction: column;
  694. .title {}
  695. image {
  696. margin-top: 48rpx;
  697. width: 172rpx;
  698. height: 160rpx;
  699. }
  700. }
  701. .nocancel {
  702. font-size: 32rpx;
  703. color: #333333;
  704. margin-top: 14rpx;
  705. }
  706. .comfirm-box {
  707. margin-top: 52rpx;
  708. display: flex;
  709. // margin-bottom: 32rpx;
  710. // justify-content: space-around;
  711. .cancel {
  712. display: flex;
  713. align-items: center;
  714. justify-content: center;
  715. width: 197rpx;
  716. height: 74rpx;
  717. border: 1px solid #dcc786;
  718. border-radius: 38rpx;
  719. font-size: 32rpx;
  720. color: #605128;
  721. }
  722. .comfirm {
  723. margin-left: 32rpx;
  724. display: flex;
  725. align-items: center;
  726. justify-content: center;
  727. width: 197rpx;
  728. height: 74rpx;
  729. background: linear-gradient(-90deg, #d1ba77 0%, #f7e8ad 100%);
  730. border-radius: 38px;
  731. font-size: 32rpx;
  732. color: #605128;
  733. }
  734. }
  735. }
  736. }
  737. </style>