user.vue 25 KB

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