user.vue 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864
  1. <template>
  2. <view class="container">
  3. <view class="vheigh"></view>
  4. <view class="top-image">
  5. <image src="../../static/user/user-top.png" mode=""></image>
  6. </view>
  7. <view class="user-set flex">
  8. <view class="set-logo" >
  9. <!-- <image src="../../static/user/user1.png" mode=""></image> -->
  10. </view>
  11. <!-- <view class="xx-logo"><image src="../../static/user/user2.png" mode=""></image></view> -->
  12. </view>
  13. <view class="user-wrap">
  14. <view class="info-left flex">
  15. <view class="user-name">
  16. <image :src="userInfo.avatar" mode="" v-if="userInfo.avatar"></image>
  17. <image src="../../static/error/missing-face.png" mode="" v-else></image>
  18. <view class="user-font">
  19. <view class="name clamp">{{ userInfo.nickname }}</view>
  20. <view class="phone">{{ userInfo.phone }}</view>
  21. <view class="phone" v-if="userInfo.uid">邀请码:{{ userInfo.uid }}</view>
  22. </view>
  23. </view>
  24. <view class="kpi" v-if="userInfo && userInfo.level">
  25. <image src="../../static/img/menber-bg.png" mode=""></image>
  26. <view class="user-level">
  27. V{{userInfo.level}}会员
  28. </view>
  29. </view>
  30. </view>
  31. <view class="flex">
  32. <view class="info-right" @click="navTo('/pages/money/wallet')">
  33. <image class="iright-icon" src="../../static/user/user3.png" mode=""></image>
  34. <view class="iright-font">钱包余额:{{ userInfo.now_money || 0}}</view>
  35. </view>
  36. <view class="info-right" @click="navTo('/pages/money/recharge')">
  37. <image class="iright-icon" src="../../static/user/user3.png" mode=""></image>
  38. <view class="iright-font">充值钱包</view>
  39. </view>
  40. </view>
  41. </view>
  42. <view class="main-box">
  43. <view class="title flex">
  44. <view class="title-left">
  45. <!-- <image class="title-icon" src="../../static/user/user4.png" mode=""></image> -->
  46. <view class="title-font">我的资产</view>
  47. </view>
  48. <!-- <image class="title-right" src="../../static/img/back.png" mode=""></image> -->
  49. </view>
  50. <view class="main flex">
  51. <view class="item" @click="navTo('/pages/user/myjf')">
  52. <view class="item-num">{{ userInfo.dynamic_integral*1 || 0}}</view>
  53. <view class="item-font">动态积分</view>
  54. </view>
  55. <view class="jg">
  56. </view>
  57. <view class="item" @click="navTo('/pages/user/mygwjf')">
  58. <view class="item-num">{{ userInfo.integral*1 || 0}}</view>
  59. <view class="item-font">静态积分</view>
  60. </view>
  61. <view class="jg">
  62. </view>
  63. <view class="item" @click="navTo('/pages/user/mythq')">
  64. <view class="item-num">{{userInfo.consumption*1 || 0}}</view>
  65. <view class="item-font">消费券</view>
  66. </view>
  67. <view class="jg">
  68. </view>
  69. <view class="item" @click="navTo('/pages/user/myggz')">
  70. <view class="item-num">{{userInfo.contribution*1 || 0}}</view>
  71. <view class="item-font">贡献值</view>
  72. </view>
  73. </view>
  74. </view>
  75. <view class="main-box">
  76. <view class="title flex" @click="navTo('/pages/order/order?state=0')">
  77. <view class="title-left">
  78. <!-- <image class="title-icon" src="../../static/user/user5.png" mode=""></image> -->
  79. <view class="title-font">我的订单</view>
  80. </view>
  81. <image class="title-right" src="../../static/img/back.png" mode=""></image>
  82. </view>
  83. <view class="main flex">
  84. <view class="oitem" @click="navTo('/pages/order/order?state=0')">
  85. <image class="oitem-image" src="../../static/user/user6.png" mode=""></image>
  86. <view class="oitem-font">待付款</view>
  87. </view>
  88. <view class="oitem" @click="navTo('/pages/order/order?state=1')">
  89. <image class="oitem-image" src="../../static/user/user7.png" mode=""></image>
  90. <view class="oitem-font">待发货</view>
  91. </view>
  92. <view class="oitem" @click="navTo('/pages/order/order?state=2')">
  93. <image class="oitem-image" src="../../static/user/user8.png" mode=""></image>
  94. <view class="oitem-font">待收货</view>
  95. </view>
  96. <view class="oitem" @click="navTo('/pages/order/order?state=3')">
  97. <image class="oitem-image" src="../../static/user/user9.png" mode=""></image>
  98. <view class="oitem-font">已完成</view>
  99. </view>
  100. </view>
  101. </view>
  102. <view class="my-tools">
  103. <view class="my-order">
  104. <view class="order">我的功能</view>
  105. <!-- <image src="../../static/img/xiangxia.png" mode="scaleToFill"></image> -->
  106. </view>
  107. <view class="tool flex">
  108. <view class="tool-item" @click="navTo('/pages/user/mytg')">
  109. <view class="tool-img"><image src="../../static/icon/gn1.png" mode=""></image></view>
  110. <view class="tool-name">我的推广</view>
  111. </view>
  112. <view class="tool-item" @click="navTo('/pages/user/shareQrCode')">
  113. <view class="tool-img"><image src="../../static/icon/gn2.png" mode=""></image></view>
  114. <view class="tool-name">邀请有礼</view>
  115. </view>
  116. <view class="tool-item" @click="navTo('/pages/user/favorites')">
  117. <view class="tool-img"><image src="../../static/icon/gn3.png" mode=""></image></view>
  118. <view class="tool-name">我的收藏</view>
  119. </view>
  120. <view class="tool-item" @click="navTo('/pages/coupon/myCoupon')()">
  121. <view class="tool-img"><image src="../../static/icon/gn4.png" mode=""></image></view>
  122. <view class="tool-name">我的优惠券</view>
  123. </view>
  124. <view class="tool-item" @click="openKf()">
  125. <view class="tool-img"><image src="../../static/icon/gn5.png" mode=""></image></view>
  126. <view class="tool-name">客服中心</view>
  127. </view>
  128. <view class="tool-item" @click="navTo('/pages/set/address')">
  129. <view class="tool-img"><image src="../../static/icon/gn6.png" mode=""></image></view>
  130. <view class="tool-name">收货地址</view>
  131. </view>
  132. <view class="tool-item" @click="navTo('/pages/set/userinfo')">
  133. <view class="tool-img"><image src="../../static/icon/gn7.png" mode=""></image></view>
  134. <view class="tool-name">设置</view>
  135. </view>
  136. </view>
  137. </view>
  138. <view class="" style="height: 100rpx;">
  139. </view>
  140. <uni-popup ref="popupkf" type="center">
  141. <view class="popup-box">
  142. <view class="img">
  143. <image src="../../static/img/img009.png" mode=""></image>
  144. </view>
  145. <view class="mian">
  146. <view class="delivery">
  147. <view class="title">已经为您定制专属客服</view>
  148. <image src="../../static/img/img010.png" mode=""></image>
  149. </view>
  150. <view class="nocancel">客服VX:{{ text }}</view>
  151. <view class="comfirm-box">
  152. <view class="cancel" @click="cancel">取消</view>
  153. <view class="comfirm" @click="comfirm(text)">复制微信</view>
  154. </view>
  155. </view>
  156. </view>
  157. </uni-popup>
  158. </view>
  159. </template>
  160. <script>
  161. import {
  162. tabbar1
  163. } from '@/utils/tabbar.js';
  164. import {
  165. mapState,
  166. mapMutations
  167. } from 'vuex';
  168. import uniList from '@/components/uni-list/uni-list.vue';
  169. import uniListItem from '@/components/uni-list-item/uni-list-item.vue';
  170. import {
  171. orderData,
  172. getUserInfo
  173. } from '@/api/user.js';
  174. import {
  175. saveUrl,
  176. interceptor
  177. } from '@/utils/loginUtils.js';
  178. let startY = 0,
  179. moveY = 0,
  180. pageAtTop = true;
  181. export default {
  182. components: {
  183. uniList,
  184. uniListItem
  185. },
  186. data() {
  187. return {
  188. current: 4,
  189. tabbar: tabbar1,
  190. qded: false, //是否已签到
  191. text: '15606861277', //客服微信
  192. today_integral: '', //签到获得的数值
  193. today_type: '', //签到获得的数值单位
  194. tom_integral: '', //明天签到获得的数值
  195. tom_type: '', //签到获得的数值单位
  196. userDowm: 0, //卡片升级专属高度
  197. userMaxDowm: 0, //卡片最高高度
  198. toolList: [{
  199. id: 't1',
  200. name: '新人通道',
  201. width: '56rpx',
  202. heigt: '54rpx',
  203. img: '../../static/icon/tool-1.png',
  204. path: '/pages/user/xrtd'
  205. },
  206. {
  207. id: 't2',
  208. name: '邀请好友',
  209. width: '56rpx',
  210. heigt: '57rpx',
  211. img: '../../static/icon/tool-2.png',
  212. path: '/pages/user/shareQrCode'
  213. },
  214. {
  215. id: 't3',
  216. name: '我的粉丝',
  217. width: '68rpx',
  218. heigt: '53rpx',
  219. img: '../../static/icon/tool-3.png',
  220. path: '/pages/user/myfans'
  221. },
  222. {
  223. id: 't4',
  224. name: '我的订单',
  225. width: '55rpx',
  226. heigt: '54rpx',
  227. img: '../../static/icon/tool-4.png',
  228. path: '/pages/order/order'
  229. },
  230. {
  231. id: 't5',
  232. name: '我的商品',
  233. width: '50rpx',
  234. heigt: '58rpx',
  235. img: '../../static/icon/tool-5.png',
  236. path: '/pages/order/order'
  237. },
  238. {
  239. id: 't6',
  240. name: '馆长申请',
  241. width: '59rpx',
  242. heigt: '56rpx',
  243. img: '../../static/icon/tool-6.png',
  244. path: '/pages/user/gzsq'
  245. }
  246. ]
  247. };
  248. },
  249. onShow() {
  250. // 判断是否已经登录
  251. if (this.hasLogin) {
  252. this.loadBaseData();
  253. }
  254. this.loadBaseData();
  255. },
  256. onReady() {
  257. // 初始化获取页面宽度
  258. uni.createSelectorQuery()
  259. .select('.container')
  260. .fields({
  261. size: true
  262. },
  263. data => {
  264. // 计算最多下拉的高度
  265. this.userDowm = Math.floor((data.width / 750) * 185);
  266. // 计算最大触发修改高度事件
  267. this.userMaxDowm = Math.floor((data.width / 750) * 250);
  268. }
  269. )
  270. .exec();
  271. },
  272. computed: {
  273. ...mapState('user', ['userInfo', 'orderInfo', 'hasLogin'])
  274. },
  275. methods: {
  276. ...mapMutations('user', ['setUserInfo', 'setOrderInfo']),
  277. comfirm(text) {
  278. console.log(text);
  279. const result = this.uniCopy(text);
  280. if (result === false) {
  281. uni.showToast({
  282. title: '不支持'
  283. });
  284. } else {
  285. uni.showToast({
  286. title: '复制成功',
  287. icon: 'none'
  288. });
  289. }
  290. this.$refs.popupkf.close();
  291. },
  292. uniCopy(content) {
  293. /**
  294. * 小程序端 和 app端的复制逻辑
  295. */
  296. //#ifndef H5
  297. uni.setClipboardData({
  298. data: content,
  299. success: function() {
  300. console.log('success');
  301. return true;
  302. }
  303. });
  304. //#endif
  305. /**
  306. * H5端的复制逻辑
  307. */
  308. // #ifdef H5
  309. if (!document.queryCommandSupported('copy')) {
  310. //为了兼容有些浏览器 queryCommandSupported 的判断
  311. // 不支持
  312. return false;
  313. }
  314. let textarea = document.createElement('textarea');
  315. textarea.value = content;
  316. textarea.readOnly = 'readOnly';
  317. document.body.appendChild(textarea);
  318. textarea.select(); // 选择对象
  319. textarea.setSelectionRange(0, content.length); //核心
  320. let result = document.execCommand('copy'); // 执行浏览器复制命令
  321. textarea.remove();
  322. return result;
  323. // #endif
  324. },
  325. // 加载初始数据
  326. loadBaseData() {
  327. getUserInfo({})
  328. .then(({
  329. data
  330. }) => {
  331. this.setUserInfo(data);
  332. // 获取用户数据完毕后在获取订单数据防止多次跳转到登录页
  333. orderData({})
  334. .then(({
  335. data
  336. }) => {
  337. this.setOrderInfo(data);
  338. })
  339. .catch(e => {
  340. this.setOrderInfo({
  341. complete_count: 0, //完成
  342. received_count: 0, //待收货
  343. unshipped_count: 0, //待发货
  344. order_count: 0, //订单总数
  345. unpaid_count: 0 //待付款
  346. });
  347. });
  348. })
  349. .catch(e => {
  350. console.log(e);
  351. });
  352. },
  353. /**
  354. * 统一跳转接口,拦截未登录路由
  355. * navigator标签现在默认没有转场动画,所以用view
  356. */
  357. navTo(url) {
  358. console.log(url);
  359. if (!this.hasLogin) {
  360. // 保存地址
  361. saveUrl();
  362. // 登录拦截
  363. interceptor();
  364. } else {
  365. uni.navigateTo({
  366. url
  367. });
  368. }
  369. },
  370. // 签到弹窗
  371. goQd() {
  372. this.$refs.popupqd.open();
  373. this.qded = true;
  374. },
  375. // 关闭签到弹窗
  376. closeQd() {
  377. this.$refs.popupqd.close();
  378. },
  379. // 打开客服
  380. openKf() {
  381. this.$refs.popupkf.open();
  382. },
  383. // 关闭客服
  384. cancel() {
  385. this.$refs.popupkf.close();
  386. }
  387. }
  388. };
  389. </script>
  390. <style lang="scss">
  391. %flex-center {
  392. display: flex;
  393. flex-direction: column;
  394. justify-content: center;
  395. align-items: center;
  396. }
  397. %section {
  398. display: flex;
  399. justify-content: space-around;
  400. align-content: center;
  401. background: #fff;
  402. border-radius: 10rpx;
  403. }
  404. .container,
  405. page {
  406. min-height: 100%;
  407. height: auto;
  408. background-color: $page-color-base;
  409. }
  410. .vheigh {
  411. height: var(--status-bar-height);
  412. background-color: $base-color;
  413. }
  414. .top-image {
  415. position: absolute;
  416. top: 0;
  417. left: 0;
  418. right: 0;
  419. height: 230rpx;
  420. image {
  421. width: 100%;
  422. height: 100%;
  423. }
  424. }
  425. .tool-list {
  426. width: 690rpx;
  427. margin: auto;
  428. margin-top: 20rpx;
  429. background: #ffffff;
  430. box-shadow: 0px 0px 20rpx 0px rgba(50, 50, 52, 0.06);
  431. border-radius: 20rpx;
  432. }
  433. .popup-box {
  434. width: 522rpx;
  435. height: 605rpx;
  436. background-color: #ffffff;
  437. border-radius: 20rpx;
  438. position: relative;
  439. .img {
  440. position: relative;
  441. top: -56rpx;
  442. left: 0;
  443. width: 522rpx;
  444. height: 132rpx;
  445. display: flex;
  446. justify-content: center;
  447. image {
  448. border-radius: 20rpx 20rpx 0 0;
  449. width: 450rpx;
  450. height: 132rpx;
  451. }
  452. }
  453. .mian {
  454. margin-top: -44rpx;
  455. display: flex;
  456. flex-direction: column;
  457. align-items: center;
  458. // padding: 32rpx 32rpx;
  459. background-color: #ffffff;
  460. border-radius: 0 0 20rpx 20rpx;
  461. text-align: center;
  462. .delivery {
  463. font-size: 40rpx;
  464. color: #333333;
  465. display: flex;
  466. align-items: center;
  467. flex-direction: column;
  468. image {
  469. margin-top: 48rpx;
  470. width: 172rpx;
  471. height: 160rpx;
  472. }
  473. }
  474. .nocancel {
  475. font-size: 32rpx;
  476. color: #333333;
  477. margin-top: 14rpx;
  478. }
  479. .comfirm-box {
  480. margin-top: 52rpx;
  481. display: flex;
  482. // margin-bottom: 32rpx;
  483. // justify-content: space-around;
  484. .cancel {
  485. display: flex;
  486. align-items: center;
  487. justify-content: center;
  488. width: 197rpx;
  489. height: 74rpx;
  490. border: 1px solid #dcc786;
  491. border-radius: 38rpx;
  492. font-size: 32rpx;
  493. color: #605128;
  494. }
  495. .comfirm {
  496. margin-left: 32rpx;
  497. display: flex;
  498. align-items: center;
  499. justify-content: center;
  500. width: 197rpx;
  501. height: 74rpx;
  502. background: linear-gradient(-90deg, #d1ba77 0%, #f7e8ad 100%);
  503. border-radius: 38px;
  504. font-size: 32rpx;
  505. color: #605128;
  506. }
  507. }
  508. }
  509. }
  510. .popup {
  511. width: 560rpx;
  512. padding-bottom: 45rpx;
  513. background-color: #ffffff;
  514. border-radius: 15rpx;
  515. text-align: center;
  516. line-height: 1;
  517. .popup-dox {
  518. position: relative;
  519. .popup-logo {
  520. margin: -160rpx auto 0;
  521. width: 400rpx;
  522. height: 200rpx;
  523. }
  524. }
  525. .popup-title {
  526. margin-top: 85rpx;
  527. font-size: 40rpx;
  528. font-family: PingFang SC;
  529. font-weight: bold;
  530. color: #2a2a2a;
  531. text {
  532. font-size: 56rpx;
  533. color: #e83f30;
  534. }
  535. }
  536. .popup-tip {
  537. margin-top: 20rpx;
  538. font-size: 28rpx;
  539. font-family: PingFang SC;
  540. font-weight: 500;
  541. color: #8c8c8c;
  542. text {
  543. color: #e83f30;
  544. }
  545. }
  546. .popup-btn {
  547. margin: 58rpx auto 0;
  548. width: 270rpx;
  549. height: 66rpx;
  550. background: #f0c838;
  551. border-radius: 34rpx;
  552. text-align: center;
  553. line-height: 66rpx;
  554. font-size: 36rpx;
  555. font-family: Source Han Sans CN;
  556. font-weight: 500;
  557. color: #ffffff;
  558. }
  559. }
  560. .user-wrap {
  561. position: relative;
  562. z-index: 10;
  563. width: 690rpx;
  564. height: 283rpx;
  565. background: #ffffff;
  566. box-shadow: 0px 4rpx 13rpx 0px rgba(229, 229, 229, 0.46);
  567. border-radius: 20rpx;
  568. padding: 34rpx 0 40rpx;
  569. margin: auto;
  570. .info-left {
  571. padding-left: 34rpx;
  572. .user-name {
  573. display: flex;
  574. align-items: center;
  575. image {
  576. width: 120rpx;
  577. height: 120rpx;
  578. border-radius: 50%;
  579. }
  580. .user-font {
  581. padding-left: 34rpx;
  582. .name {
  583. width: 250rpx;
  584. font-size: 40rpx;
  585. font-family: Source Han Sans CN;
  586. font-weight: 400;
  587. color: #333333;
  588. }
  589. .phone {
  590. margin-top: 10rpx;
  591. font-size: 20rpx;
  592. font-family: PingFang SC;
  593. font-weight: 500;
  594. color: #999999;
  595. }
  596. }
  597. }
  598. .kpi {
  599. width: 178rpx;
  600. height: 60rpx;
  601. position: relative;
  602. image {
  603. position: absolute;
  604. top: 0;
  605. left: 0;
  606. width: 178rpx;
  607. height: 60rpx;
  608. }
  609. .user-level {
  610. position: absolute;
  611. top: 0;
  612. right: 0;
  613. height: 60rpx;
  614. line-height: 60rpx;
  615. width:120rpx;
  616. // background-color: red;
  617. font-size: 28rpx;
  618. font-weight: 500;
  619. color: #93794B;
  620. text-align: right;
  621. padding-right: 24rpx;
  622. }
  623. }
  624. }
  625. .info-right {
  626. display: flex;
  627. align-items: center;
  628. margin-top: 54rpx;
  629. padding: 0 34rpx;
  630. .iright-icon {
  631. width: 32rpx;
  632. height: 32rpx;
  633. }
  634. .iright-font {
  635. margin-left: 12rpx;
  636. font-size: 28rpx;
  637. font-family: PingFang SC;
  638. font-weight: bold;
  639. color: #333333;
  640. }
  641. }
  642. }
  643. .user-set {
  644. justify-content: flex-end;
  645. height: 100rpx;
  646. view {
  647. flex-shrink: 0;
  648. }
  649. padding: 30rpx;
  650. image {
  651. height: 40rpx;
  652. width: 40rpx;
  653. }
  654. }
  655. .main-box {
  656. margin: 20rpx auto 0;
  657. width: 710rpx;
  658. background: #ffffff;
  659. box-shadow: 0px 4rpx 14rpx 0px rgba(229, 229, 229, 0.46);
  660. border-radius: 20rpx;
  661. .title {
  662. display: flex;
  663. justify-content: space-between;
  664. align-items: center;
  665. padding: 24rpx;
  666. border-bottom: 1px solid #EEEEEE;
  667. .title-left {
  668. display: flex;
  669. align-items: center;
  670. .title-icon {
  671. width: 32rpx;
  672. height: 32rpx;
  673. }
  674. .title-font {
  675. margin-left: 20rpx;
  676. font-size: 28rpx;
  677. font-family: PingFang SC;
  678. font-weight: bold;
  679. color: #333333;
  680. }
  681. }
  682. .title-right {
  683. width: 14rpx;
  684. height: 24rpx;
  685. }
  686. }
  687. .main {
  688. padding: 50rpx 0 30rpx;
  689. .jg {
  690. width: 1px;
  691. height: 100rpx;
  692. background: #EEEEEE;
  693. }
  694. .item {
  695. padding-bottom: 20rpx;
  696. width: 25%;
  697. display: flex;
  698. flex-direction: column;
  699. align-items: center;
  700. .item-num {
  701. font-size: 36rpx;
  702. font-family: PingFang SC;
  703. font-weight: bold;
  704. color: #333333;
  705. }
  706. .item-font {
  707. margin-top: 18rpx;
  708. font-size: 22rpx;
  709. font-family: PingFang SC;
  710. font-weight: 500;
  711. color: #666666;
  712. }
  713. }
  714. .oitem {
  715. width: 25%;
  716. display: flex;
  717. flex-direction: column;
  718. align-items: center;
  719. .oitem-image {
  720. height: 50rpx;
  721. width: 48rpx;
  722. }
  723. .oitem-font {
  724. margin-top: 20rpx;
  725. font-size: 24rpx;
  726. font-family: PingFang SC;
  727. font-weight: 500;
  728. color: #333333;
  729. }
  730. }
  731. }
  732. }
  733. .gpai {
  734. width: 100rpx;
  735. line-height: 40rpx;
  736. border-radius: 25rpx;
  737. position: absolute;
  738. top: 120rpx;
  739. left: 40rpx;
  740. font-size: 24rpx;
  741. color: #c6914e;
  742. text-align: center;
  743. background-color: #f2d4ae;
  744. }
  745. .my-tools {
  746. width: 710rpx;
  747. // height: 418rpx;
  748. background: #FFFFFF;
  749. box-shadow: 0px 0px 20rpx 0px rgba(50, 50, 52, 0.06);
  750. border-radius: 20rpx;
  751. margin: 20rpx auto;
  752. // background-color: red;
  753. .my-order {
  754. height: 73rpx;
  755. width: 100%;
  756. border-bottom: 2rpx solid #F5F5F5;
  757. display: flex;
  758. align-items: center;
  759. justify-content: flex-start;
  760. .order {
  761. font-size: 30rpx;
  762. font-family: PingFang SC;
  763. font-weight: bold;
  764. color: #333333;
  765. margin-left: 36rpx;
  766. margin-right: 520rpx;
  767. }
  768. image {
  769. width: 12rpx;
  770. height: 22rpx;
  771. }
  772. }
  773. .tool {
  774. flex-wrap: wrap;
  775. justify-content: flex-start;
  776. align-items: center;
  777. .tool-item {
  778. width: 25%;
  779. height: 160rpx;
  780. // background-color: #bfa;
  781. display: flex;
  782. align-items: center;
  783. flex-direction: column;
  784. justify-content: center;
  785. .tool-img {
  786. width: 42rpx;
  787. height: 42rpx;
  788. image {
  789. width: 100%;
  790. height: 100%;
  791. }
  792. }
  793. .tool-name {
  794. padding-top: 20rpx;
  795. font-size: 24rpx;
  796. font-family: PingFang SC;
  797. font-weight: 500;
  798. color: #333333;
  799. }
  800. }
  801. }
  802. }
  803. </style>