user.vue 21 KB

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