user.vue 20 KB

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