user.vue 23 KB

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