user.vue 24 KB

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