user.vue 23 KB

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