user.vue 20 KB

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