user.vue 23 KB

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