user.vue 25 KB

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