user.vue 23 KB

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