user.vue 23 KB

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