user.vue 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899
  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. // userInfo: {},
  257. // is_promoter: {},
  258. // extension_status: {}
  259. };
  260. },
  261. onShow() {
  262. console.log(this.userInfo)
  263. // 判断是否已经登录
  264. if (this.hasLogin) {
  265. this.loadBaseData();
  266. console.log(this.userInfo)
  267. // console.log(this.userInfo)
  268. }
  269. },
  270. onReady() {
  271. // 初始化获取页面宽度
  272. uni.createSelectorQuery()
  273. .select('.container')
  274. .fields(
  275. {
  276. size: true
  277. },
  278. data => {
  279. // 计算最多下拉的高度
  280. this.userDowm = Math.floor((data.width / 750) * 185);
  281. // 计算最大触发修改高度事件
  282. this.userMaxDowm = Math.floor((data.width / 750) * 250);
  283. }
  284. )
  285. .exec();
  286. },
  287. // #ifndef MP
  288. // onNavigationBarButtonTap(e) {
  289. // const index = e.index;
  290. // if (index === 0) {
  291. // this.navTo('/pages/set/set');
  292. // } else if (index === 1) {
  293. // // #ifdef APP-PLUS
  294. // const pages = getCurrentPages();
  295. // const page = pages[pages.length - 1];
  296. // const currentWebview = page.$getAppWebview();
  297. // currentWebview.hideTitleNViewButtonRedDot({
  298. // index
  299. // });
  300. // // #endif
  301. // uni.navigateTo({
  302. // url: '/pages/user/notice'
  303. // });
  304. // }
  305. // },
  306. // #endif
  307. computed: {
  308. ...mapState('user', ['userInfo', 'orderInfo', 'hasLogin'])
  309. },
  310. filters: {
  311. hiddenphone(value) {
  312. return value.substring(0, 3) + '****' + value.substring(7, 12);
  313. }
  314. },
  315. methods: {
  316. ...mapMutations('user', ['setUserInfo', 'setOrderInfo']),
  317. // 加载初始数据
  318. loadBaseData() {
  319. getUserInfo({})
  320. .then(({ data }) => {
  321. this.setUserInfo(data);
  322. console.log(data, '++++++++++++');
  323. // 获取用户数据完毕后在获取订单数据防止多次跳转到登录页
  324. orderData({})
  325. .then(({ data }) => {
  326. this.setOrderInfo(data);
  327. })
  328. .catch(e => {
  329. this.setOrderInfo({
  330. complete_count: 0, //完成
  331. received_count: 0, //待收货
  332. unshipped_count: 0, //待发货
  333. order_count: 0, //订单总数
  334. unpaid_count: 0 //待付款
  335. });
  336. });
  337. })
  338. .catch(e => {
  339. console.log(e);
  340. });
  341. },
  342. /**
  343. * 统一跳转接口,拦截未登录路由
  344. * navigator标签现在默认没有转场动画,所以用view
  345. */
  346. navTo(url) {
  347. if (!this.hasLogin) {
  348. // 保存地址
  349. saveUrl();
  350. // 登录拦截
  351. interceptor();
  352. } else {
  353. uni.navigateTo({
  354. url
  355. });
  356. }
  357. },
  358. /**
  359. * 会员卡下拉和回弹
  360. * 1.关闭bounce避免ios端下拉冲突
  361. * 2.由于touchmove事件的缺陷(以前做小程序就遇到,比如20跳到40,h5反而好很多),下拉的时候会有掉帧的感觉
  362. * transition设置0.1秒延迟,让css来过渡这段空窗期
  363. * 3.回弹效果可修改曲线值来调整效果,推荐一个好用的bezier生成工具 http://cubic-bezier.com/
  364. */
  365. coverTouchstart(e) {
  366. // console.log(e);
  367. if (pageAtTop === false) {
  368. return;
  369. }
  370. this.coverTransition = 'transform .1s linear';
  371. startY = e.touches[0].clientY;
  372. },
  373. coverTouchmove(e) {
  374. // console.log(e);
  375. moveY = e.touches[0].clientY;
  376. let moveDistance = moveY - startY;
  377. let maxDowm = this.userMaxDowm;
  378. let Dowm = this.userDowm;
  379. if (moveDistance < 0) {
  380. this.moving = false;
  381. return;
  382. }
  383. this.moving = true;
  384. if (moveDistance >= Dowm && moveDistance < maxDowm) {
  385. moveDistance = Dowm;
  386. }
  387. if (moveDistance > 0 && moveDistance <= Dowm) {
  388. this.coverTransform = `translateY(${moveDistance}px)`;
  389. }
  390. },
  391. coverTouchend() {
  392. if (this.moving === false) {
  393. return;
  394. }
  395. this.moving = false;
  396. this.coverTransition = 'transform 0.3s cubic-bezier(.21,1.93,.53,.64)';
  397. this.coverTransform = 'translateY(0px)';
  398. },
  399. changeIdentity() {
  400. this.userIdentity = !this.userIdentity;
  401. if (this.isUser === 0) {
  402. this.isUser = 1;
  403. } else if (this.isUser === 1) {
  404. this.isUser = 0;
  405. }
  406. },
  407. showPopup() {
  408. this.$refs.popup.open();
  409. },
  410. cancel() {
  411. this.$refs.popup.close();
  412. },
  413. comfirm(text) {
  414. console.log(text);
  415. const result = uniCopy(text);
  416. if (result === false) {
  417. uni.showToast({
  418. title: '不支持'
  419. });
  420. } else {
  421. uni.showToast({
  422. title: '复制成功',
  423. icon: 'none'
  424. });
  425. }
  426. this.$refs.popup.close();
  427. },
  428. /**
  429. * 获取个人用户信息
  430. */
  431. // getUserInfo() {
  432. // console.log('getuserInfo')
  433. // let that = this;
  434. // getUserInfo().then(res => {
  435. // that.userInfo = res.data,
  436. // that.is_promoter = res.data.is_promoter
  437. // that.extension_status = res.data.extension_status
  438. // });
  439. // },
  440. }
  441. };
  442. </script>
  443. <style lang="scss">
  444. page {
  445. height: 100%;
  446. background-color: #f8f6f6;
  447. }
  448. %flex-center {
  449. display: flex;
  450. flex-direction: column;
  451. justify-content: center;
  452. align-items: center;
  453. }
  454. %section {
  455. display: flex;
  456. justify-content: space-around;
  457. align-content: center;
  458. background: #fff;
  459. border-radius: 10rpx;
  460. }
  461. .container {
  462. height: 100%;
  463. background-color: $page-color-base;
  464. }
  465. .content-box {
  466. height: 100%;
  467. }
  468. .vheigh {
  469. height: var(--status-bar-height);
  470. // background-color: $base-color;
  471. background-color: #f6f1ed;
  472. }
  473. .user-section {
  474. height: 380rpx;
  475. padding: 15rpx 30rpx 0;
  476. position: relative;
  477. // background-image: url(../../static/img/main_bg.png);
  478. // background-size: 100% 100%;
  479. .bg {
  480. position: absolute;
  481. left: 0;
  482. top: 0;
  483. width: 100%;
  484. height: 100%;
  485. // background-color: $base-color;
  486. background-image: url(../../static/img/main_bg.png);
  487. background-size: 100% 100%;
  488. // color: #000;
  489. }
  490. }
  491. .user-info-box {
  492. height: 180rpx;
  493. color: white;
  494. display: flex;
  495. align-items: center;
  496. justify-content: space-between;
  497. position: relative;
  498. z-index: 1;
  499. .detail {
  500. height: 120rpx;
  501. .portrait-box {
  502. height: 100%;
  503. .portrait {
  504. width: 120rpx;
  505. height: 100%;
  506. border: 5rpx solid #fff;
  507. border-radius: 50%;
  508. }
  509. }
  510. .info-box {
  511. margin-left: 20rpx;
  512. line-height: 1.5;
  513. color: #000;
  514. .username {
  515. font-size: $font-lg + 6rpx;
  516. height: 100%;
  517. }
  518. }
  519. }
  520. .config {
  521. font-size: 48rpx;
  522. height: 120rpx;
  523. position: relative;
  524. left: -32rpx;
  525. bottom: -41rpx;
  526. .setting {
  527. display: inline-block;
  528. width: 44rpx;
  529. height: 40rpx;
  530. image {
  531. width: 100%;
  532. height: 100%;
  533. }
  534. // margin-right: 51rpx;
  535. // margin-top: 50rpx;
  536. // position: absolute;
  537. // top: 0;
  538. // bottom: 0;
  539. // margin: auto 0;
  540. }
  541. }
  542. }
  543. .vip-card-box {
  544. display: flex;
  545. flex-direction: column;
  546. color: #f7d680;
  547. height: 240rpx;
  548. background: linear-gradient(left, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.8));
  549. border-radius: 16rpx 16rpx 0 0;
  550. overflow: hidden;
  551. position: relative;
  552. padding: 20rpx 24rpx;
  553. .card-bg {
  554. position: absolute;
  555. top: 20rpx;
  556. right: 0;
  557. width: 380rpx;
  558. height: 260rpx;
  559. }
  560. .b-btn {
  561. position: absolute;
  562. right: 20rpx;
  563. top: 16rpx;
  564. width: 132rpx;
  565. height: 40rpx;
  566. text-align: center;
  567. line-height: 40rpx;
  568. font-size: 22rpx;
  569. color: #36343c;
  570. border-radius: 20px;
  571. background: linear-gradient(left, #f9e6af, #ffd465);
  572. z-index: 1;
  573. }
  574. .tit {
  575. font-size: $font-base + 2rpx;
  576. color: #f7d680;
  577. margin-bottom: 28rpx;
  578. .iconfont {
  579. color: #f6e5a3;
  580. margin-right: 16rpx;
  581. }
  582. }
  583. .e-b {
  584. font-size: $font-sm;
  585. color: #d8cba9;
  586. margin-top: 10rpx;
  587. }
  588. }
  589. .cover-container {
  590. background: $page-color-base;
  591. // margin-top: -150rpx;
  592. padding: 0 30rpx;
  593. position: relative;
  594. background: #f5f5f5;
  595. padding-bottom: 20rpx;
  596. .arc {
  597. position: absolute;
  598. left: 0;
  599. top: -34rpx;
  600. width: 100%;
  601. height: 36rpx;
  602. }
  603. }
  604. .tj-sction {
  605. @extend %section;
  606. .tj-item {
  607. @extend %flex-center;
  608. flex-direction: column;
  609. height: 140rpx;
  610. font-size: $font-sm;
  611. color: #75787d;
  612. }
  613. .num {
  614. font-size: $font-lg;
  615. color: $font-color-dark;
  616. margin-bottom: 8rpx;
  617. }
  618. }
  619. .item-box {
  620. border-radius: 10rpx;
  621. background-color: white;
  622. margin-top: 20rpx;
  623. .box-title {
  624. line-height: 1;
  625. padding: 30rpx;
  626. .title {
  627. font-size: $font-lg;
  628. font-weight: bold;
  629. }
  630. .link {
  631. font-size: $font-base - 2rpx;
  632. color: $font-color-light;
  633. }
  634. }
  635. .order-section {
  636. @extend %section;
  637. padding: 28rpx 0;
  638. flex-wrap: wrap;
  639. justify-content: start;
  640. .order-item {
  641. @extend %flex-center;
  642. width: 25%;
  643. height: 120rpx;
  644. border-radius: 10rpx;
  645. font-size: $font-sm;
  646. color: $font-color-dark;
  647. margin-bottom: 10rpx;
  648. }
  649. .iconfont {
  650. font-size: 48rpx;
  651. margin-bottom: 18rpx;
  652. color: #fa436a;
  653. }
  654. .icon-shouhoutuikuan {
  655. font-size: 44rpx;
  656. }
  657. .icon {
  658. height: 50rpx;
  659. width: 48rpx;
  660. margin-bottom: 18rpx;
  661. background-size: 100%;
  662. background-repeat: no-repeat;
  663. background-position: center;
  664. .icon-img {
  665. width: 100%;
  666. height: 100%;
  667. }
  668. }
  669. }
  670. }
  671. .history-section {
  672. // padding: 30rpx 0 0;
  673. margin-top: 20rpx;
  674. background: #fff;
  675. border-radius: 10rpx;
  676. .sec-header {
  677. display: flex;
  678. align-items: center;
  679. font-size: $font-base;
  680. color: $font-color-dark;
  681. line-height: 40rpx;
  682. margin-left: 30rpx;
  683. padding-top: 30rpx;
  684. .iconfont {
  685. font-size: 44rpx;
  686. color: $color-red;
  687. margin-right: 16rpx;
  688. line-height: 40rpx;
  689. }
  690. }
  691. .h-list {
  692. white-space: nowrap;
  693. padding: 30rpx 30rpx 0;
  694. .h-list-image {
  695. display: inline-block;
  696. width: 160rpx;
  697. height: 160rpx;
  698. margin-right: 20rpx;
  699. border-radius: 10rpx;
  700. }
  701. }
  702. }
  703. .user-item {
  704. font-size: 30rpx;
  705. font-weight: bold;
  706. color: #666666;
  707. border-bottom: 1px #f5f5f5 solid;
  708. padding: 25rpx 20rpx 26rpx 20rpx;
  709. display: flex;
  710. justify-content: space-between;
  711. text {
  712. }
  713. }
  714. .user-info {
  715. width: 750rpx;
  716. height: 445rpx;
  717. // background: #3B3B3B;
  718. background-image: url(../../static/img/main_bg.png);
  719. background-size: 100% 100%;
  720. }
  721. .balance {
  722. position: relative;
  723. margin-top: -150rpx;
  724. top: -150rpx;
  725. width: 710rpx;
  726. height: 299rpx;
  727. margin: 0 auto;
  728. border-radius: 10rpx;
  729. // background-color: $base-color;
  730. padding-top: 37rpx;
  731. margin-bottom: -150rpx;
  732. background-image: url(../../static/img/bg4.png);
  733. background-size: 100% 100%;
  734. .balance-top {
  735. padding: 0 31rpx 0 19rpx;
  736. height: 54rpx;
  737. // margin-top: -150rpx;
  738. // background-color: #bfa;
  739. display: flex;
  740. justify-content: space-between;
  741. .withdraw {
  742. font-size: 28rpx;
  743. font-weight: 500;
  744. color: #ffffff;
  745. line-height: 48rpx;
  746. .withdraw-num {
  747. font-size: 37rpx;
  748. }
  749. }
  750. .btn {
  751. width: 160rpx;
  752. height: 54rpx;
  753. text-align: center;
  754. line-height: 54rpx;
  755. background: #ffffff;
  756. opacity: 0.7;
  757. border-radius: 27rpx;
  758. font-weight: bold;
  759. color: #901b21;
  760. }
  761. }
  762. .balance-main {
  763. margin-top: 52rpx;
  764. display: flex;
  765. height: 117rpx;
  766. color: #fff;
  767. .tj-item {
  768. display: flex;
  769. flex-direction: column;
  770. flex-grow: 1;
  771. text-align: center;
  772. font-size: 26rpx;
  773. font-weight: 500;
  774. .num {
  775. margin-top: 32rpx;
  776. font-size: 36rpx;
  777. font-weight: 500;
  778. }
  779. }
  780. .jg {
  781. width: 2rpx;
  782. height: 81rpx;
  783. margin-top: 18rpx;
  784. background-color: #c5868a;
  785. }
  786. }
  787. }
  788. .foot-wrapper {
  789. width: 373rpx;
  790. height: 79rpx;
  791. background: #ffffff;
  792. box-shadow: 0px 3px 10px 0px rgba(180, 183, 187, 0.8);
  793. border-radius: 11rpx;
  794. margin: 46rpx auto 20rpx;
  795. text-align: center;
  796. line-height: 79rpx;
  797. font-size: 30rpx;
  798. font-weight: bold;
  799. color: #901b21;
  800. }
  801. .popup-box {
  802. width: 522rpx;
  803. height: 605rpx;
  804. background-color: #ffffff;
  805. border-radius: 20rpx;
  806. position: relative;
  807. .img {
  808. position: relative;
  809. top: -56rpx;
  810. left: 0;
  811. width: 522rpx;
  812. height: 132rpx;
  813. display: flex;
  814. justify-content: center;
  815. image {
  816. border-radius: 20rpx 20rpx 0 0;
  817. width: 450rpx;
  818. height: 132rpx;
  819. }
  820. }
  821. .mian {
  822. margin-top: -44rpx;
  823. display: flex;
  824. flex-direction: column;
  825. align-items: center;
  826. // padding: 32rpx 32rpx;
  827. background-color: #ffffff;
  828. border-radius: 0 0 20rpx 20rpx;
  829. text-align: center;
  830. .delivery {
  831. font-size: 40rpx;
  832. color: #333333;
  833. display: flex;
  834. align-items: center;
  835. flex-direction: column;
  836. .title {
  837. }
  838. image {
  839. margin-top: 48rpx;
  840. width: 172rpx;
  841. height: 160rpx;
  842. }
  843. }
  844. .nocancel {
  845. font-size: 32rpx;
  846. color: #333333;
  847. margin-top: 14rpx;
  848. }
  849. .comfirm-box {
  850. margin-top: 52rpx;
  851. display: flex;
  852. // margin-bottom: 32rpx;
  853. // justify-content: space-around;
  854. .cancel {
  855. display: flex;
  856. align-items: center;
  857. justify-content: center;
  858. width: 197rpx;
  859. height: 74rpx;
  860. border: 1px solid #dcc786;
  861. border-radius: 38rpx;
  862. font-size: 32rpx;
  863. color: #605128;
  864. }
  865. .comfirm {
  866. margin-left: 32rpx;
  867. display: flex;
  868. align-items: center;
  869. justify-content: center;
  870. width: 197rpx;
  871. height: 74rpx;
  872. background: linear-gradient(-90deg, #d1ba77 0%, #f7e8ad 100%);
  873. border-radius: 38px;
  874. font-size: 32rpx;
  875. color: #605128;
  876. }
  877. }
  878. }
  879. }
  880. </style>