user.vue 21 KB

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