user.vue 20 KB

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