user.vue 21 KB

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