index.vue 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732
  1. <template>
  2. <view class="mine-page">
  3. <!-- <u-navbar title="我的" bgColor="transparent" titleBold></u-navbar> -->
  4. <!-- 顶部用户信息 -->
  5. <view class="user-info">
  6. <view class="user-header" @tap="handleUpdateUserInfo">
  7. <view class="user-avatar">
  8. <image class="avatar" :src="userInfo.imgPath" mode="aspectFill" v-if="userInfo.imgPath"
  9. style="width: 100%; height: 100%; display: block"></image>
  10. <image class="avatar" src="https://shuhi.oss-cn-qingdao.aliyuncs.com/mini/logo3.png"
  11. mode="heightFix" v-else style="width: 100%; height: 116rpx; display: block; border-radius: 10%">
  12. </image>
  13. </view>
  14. <view class="user-detail">
  15. <view class="nickname">{{ userInfo.nickName }}</view>
  16. <view class="user-tag" v-for="(tag, index) in userInfo.tags" :key="index">{{ tag }}</view>
  17. </view>
  18. </view>
  19. <!-- 用户数据 -->
  20. <view class="user-data">
  21. <view class="data-item" @click="navigateToTool('/pages-mine/pages/wallet')">
  22. <view class="amount">{{ userInfo.accountMoney || 0 }}</view>
  23. <view class="label">我的钱包</view>
  24. </view>
  25. <view class="data-item" @click="navigateToTool('/pages-car/pages/red-packet')">
  26. <view class="amount">{{ userInfo.unusedCouponNum || 0 }}</view>
  27. <view class="label">我的红包</view>
  28. <view class="badge" v-if="userInfo.couponNum">{{ userInfo.couponNum }}个可领</view>
  29. </view>
  30. <view class="data-item">
  31. <view class="amount">{{ userInfo.point || 0 }}</view>
  32. <view class="label">我的积分</view>
  33. </view>
  34. </view>
  35. </view>
  36. <!-- 我的订单 -->
  37. <view class="order-section">
  38. <view class="section-header">
  39. <text>买书订单</text>
  40. <view class="view-all" @click="navigateToOrder('/pages-car/pages/my-order')">
  41. <text>查看全部</text>
  42. <u-icon name="arrow-right" size="24" color="#999"></u-icon>
  43. </view>
  44. </view>
  45. <view class="order-types" style="padding: 0 20rpx">
  46. <view class="type-item flex-d flex-a-c" v-for="(item, index) in myOrderTypes" :key="index"
  47. @click="navigateToOrder(item.path)">
  48. <image class="type-icon" :src="item.icon" mode="aspectFit"></image>
  49. <text>{{ item.name }}</text>
  50. <view class="badge" v-if="item.badge">{{ item.badge }}</view>
  51. </view>
  52. </view>
  53. </view>
  54. <!-- 卖书订单 -->
  55. <view class="order-section" style="margin-top: 30rpx;">
  56. <view class="section-header">
  57. <text>卖书订单</text>
  58. <view class="view-all" @click="navigateToOrder('/pages-mine/pages/order-page')">
  59. <text>查看全部</text>
  60. <u-icon name="arrow-right" size="24" color="#999"></u-icon>
  61. </view>
  62. </view>
  63. <view class="order-types" style="padding: 0 20rpx">
  64. <view class="type-item flex-d flex-a-c" v-for="(item, index) in orderTypes" :key="index"
  65. @click="navigateToOrder(item.path)">
  66. <image class="type-icon" :src="item.icon" mode="aspectFit"></image>
  67. <text>{{ item.name }}</text>
  68. <view class="badge" v-if="item.badge">{{ item.badge }}</view>
  69. </view>
  70. </view>
  71. </view>
  72. <!-- 实用工具 -->
  73. <view class="tools-section">
  74. <view class="section-title">实用工具</view>
  75. <view class="tools-grid">
  76. <view class="tool-item flex-d flex-a-c" v-for="(tool, index) in tools" :key="index"
  77. @click="navigateToTool(tool.path)">
  78. <!-- #ifdef MP-ALIPAY -->
  79. <button class="link-service flex-d flex-a-c" v-if="tool.path == 'link-service'"
  80. @click="navigateToCustomerService">
  81. <image class="tool-icon" :src="tool.icon" mode="aspectFit"></image>
  82. <text>联系客服</text>
  83. </button>
  84. <!-- #endif -->
  85. <!-- #ifndef MP-ALIPAY -->
  86. <button class="link-service flex-d flex-a-c" open-type="contact" v-if="tool.path == 'link-service'">
  87. <image class="tool-icon" :src="tool.icon" mode="aspectFit"></image>
  88. <text>联系客服</text>
  89. </button>
  90. <!-- #endif -->
  91. <block v-else>
  92. <image class="tool-icon" :src="tool.icon" mode="aspectFit"></image>
  93. <text>{{ tool.name }}</text>
  94. </block>
  95. </view>
  96. </view>
  97. </view>
  98. <!-- 悬浮提现确认按钮 -->
  99. <withdrawal-confirm :visible="withdrawalOrder && withdrawalOrder.length > 0" :initialPosition="buttonPosition"
  100. @click="navigateToWithdrawal" @position-change="onPositionChange" />
  101. <!-- 活动悬浮按钮 -->
  102. <floating-activity :img="activityInfo.img" :visible="activityInfo.frequency && activityInfo.frequency == 3"
  103. :initialPosition="activityPosition" @click="contactCustomerService"
  104. @position-change="onActivityButtonPositionChange" />
  105. <!-- 提现进度弹窗 -->
  106. <withdrawal-progress :orderInfo="currentWithdrawalOrder" @confirm="confirmWithdrawal" ref="withdrawalRef" />
  107. </view>
  108. </template>
  109. <script>
  110. import WithdrawalProgress from './components/withdrawal-progress.vue';
  111. import WithdrawalConfirm from '../../components/withdrawal-confirm.vue';
  112. import floatingActivity from '../../components/floating-activity.vue';
  113. export default {
  114. components: {
  115. WithdrawalProgress,
  116. WithdrawalConfirm,
  117. floatingActivity
  118. },
  119. data() {
  120. return {
  121. userInfo: {
  122. userId: 0,
  123. openid: '',
  124. imgPath: '',
  125. nickName: '这里是昵称.',
  126. mobile: '',
  127. tags: [],
  128. accountMoney: 0,
  129. couponNum: 0,
  130. unusedCouponNum: 0,
  131. point: 0,
  132. firstAuditNum: 0,
  133. pickUpNum: 0,
  134. auditNum: 0,
  135. payNum: 0,
  136. refundNum: 0,
  137. shopWaitPayNum: 0,
  138. shopWaitSendNum: 0,
  139. shopWaitReceiptNum: 0,
  140. shopRefundNum: 0,
  141. shopFinishNum: 0
  142. },
  143. orderTypes: [
  144. {
  145. name: '待初审',
  146. icon: 'https://shuhi.oss-cn-qingdao.aliyuncs.com/mini/1.png',
  147. badge: 0,
  148. key: 'firstAuditNum',
  149. path: '/pages-mine/pages/order-page?status=2'
  150. },
  151. {
  152. name: '待取件',
  153. icon: 'https://shuhi.oss-cn-qingdao.aliyuncs.com/mini/2.png',
  154. badge: 0,
  155. key: 'pickUpNum',
  156. path: '/pages-mine/pages/order-page?status=3'
  157. },
  158. {
  159. name: '待审核',
  160. icon: 'https://shuhi.oss-cn-qingdao.aliyuncs.com/mini/3.png',
  161. badge: 0,
  162. key: 'auditNum',
  163. path: '/pages-mine/pages/order-page?status=8'
  164. },
  165. {
  166. name: '待到款',
  167. icon: 'https://shuhi.oss-cn-qingdao.aliyuncs.com/mini/4.png',
  168. badge: 0,
  169. key: 'payNum',
  170. path: '/pages-mine/pages/order-page?status=10'
  171. },
  172. {
  173. name: '申请退回',
  174. icon: 'https://shuhi.oss-cn-qingdao.aliyuncs.com/mini/5.png',
  175. badge: 0,
  176. key: 'refundNum',
  177. path: '/pages-mine/pages/apply-return'
  178. }
  179. ],
  180. myOrderTypes: [
  181. {
  182. name: '待付款',
  183. icon: '/static/my-order/icon-1.png',
  184. badge: 0,
  185. key: 'shopWaitPayNum',
  186. path: '/pages-car/pages/my-order?status=1'
  187. },
  188. {
  189. name: '待发货',
  190. icon: '/static/my-order/icon-2.png',
  191. badge: 0,
  192. key: 'shopWaitSendNum',
  193. path: '/pages-car/pages/my-order?status=2'
  194. },
  195. {
  196. name: '待收货',
  197. icon: '/static/my-order/icon-3.png',
  198. badge: 0,
  199. key: 'shopWaitReceiptNum',
  200. path: '/pages-car/pages/my-order?status=3'
  201. },
  202. {
  203. name: '退款/售后',
  204. icon: '/static/my-order/icon-4.png',
  205. badge: 0,
  206. key: 'shopRefundNum',
  207. path: '/pages-car/pages/my-order?status=5'
  208. },
  209. {
  210. name: '已完成',
  211. icon: '/static/my-order/icon-5.png',
  212. badge: 0,
  213. key: 'shopFinishNum',
  214. path: '/pages-car/pages/my-order?status=4'
  215. }
  216. ],
  217. tools: [
  218. {
  219. name: '消息通知',
  220. icon: 'https://shuhi.oss-cn-qingdao.aliyuncs.com/mini/t1.png',
  221. path: '/pages-mine/pages/notice'
  222. },
  223. {
  224. name: '我的收藏',
  225. icon: 'https://shuhi.oss-cn-qingdao.aliyuncs.com/mini/t2.png',
  226. path: '/pages-car/pages/my-fav'
  227. },
  228. {
  229. name: '我的足迹',
  230. icon: 'https://shuhi.oss-cn-qingdao.aliyuncs.com/mini/t3.png',
  231. path: '/pages-car/pages/my-footprint'
  232. },
  233. {
  234. name: '我的地址',
  235. icon: 'https://shuhi.oss-cn-qingdao.aliyuncs.com/mini/t4.png',
  236. path: '/pages-mine/pages/address/list'
  237. },
  238. {
  239. name: '我的红包',
  240. icon: 'https://shuhi.oss-cn-qingdao.aliyuncs.com/mini/t5.png',
  241. path: '/pages-car/pages/red-packet'
  242. },
  243. {
  244. name: '联系客服',
  245. icon: 'https://shuhi.oss-cn-qingdao.aliyuncs.com/mini/t6.png',
  246. path: 'link-service'
  247. },
  248. {
  249. name: '意见反馈',
  250. icon: 'https://shuhi.oss-cn-qingdao.aliyuncs.com/mini/t7.png',
  251. path: '/pages-mine/pages/feedback'
  252. },
  253. {
  254. name: '到货提醒',
  255. icon: 'https://shuhi.oss-cn-qingdao.aliyuncs.com/mini/t8.png',
  256. path: '/pages-car/pages/arrival-reminder'
  257. },
  258. {
  259. name: '合伙人计划',
  260. icon: 'https://shuhi.oss-cn-qingdao.aliyuncs.com/mini/t9.png',
  261. path: '/pages-mine/pages/partner/partner-rule'
  262. },
  263. {
  264. name: '买卖答疑',
  265. icon: 'https://shuhi.oss-cn-qingdao.aliyuncs.com/mini/t10.png',
  266. path: '/pages-mine/pages/rules-for-sellbooks'
  267. },
  268. {
  269. name: '关于书嗨',
  270. icon: 'https://shuhi.oss-cn-qingdao.aliyuncs.com/mini/t11.png',
  271. path: '/pages-home/pages/about-us'
  272. },
  273. {
  274. name: '我的余额',
  275. icon: 'https://shuhi.oss-cn-qingdao.aliyuncs.com/mini/t12.png',
  276. path: '/pages-mine/pages/wallet'
  277. },
  278. {
  279. name: '用户设置',
  280. icon: 'https://shuhi.oss-cn-qingdao.aliyuncs.com/mini/t13.png',
  281. path: '/pages-mine/pages/setting'
  282. }
  283. ],
  284. // 悬浮按钮位置
  285. buttonPosition: {
  286. left: 'auto',
  287. right: 0,
  288. bottom: '10%'
  289. },
  290. // 客服按钮位置
  291. activityPosition: {
  292. left: 'auto',
  293. right: 0,
  294. bottom: '25%'
  295. },
  296. withdrawalOrder: [],
  297. // 提现进度弹窗相关
  298. showWithdrawalModal: false,
  299. currentWithdrawalOrder: {},
  300. //活动弹窗信息
  301. activityInfo: {}
  302. };
  303. },
  304. methods: {
  305. //获取是否显示活动弹窗
  306. getActivityStatus() {
  307. uni.$u.http.post('/token/home/activity/dialog').then((res) => {
  308. if (res.code == 200) {
  309. this.activityInfo = res.data;
  310. }
  311. });
  312. },
  313. //获取是否存在待确认提现的订单
  314. getWithdrawalOrder() {
  315. uni.$u.http.get('/token/user/withdrawWindows').then((res) => {
  316. console.log(res);
  317. if (res.code == 200) {
  318. this.withdrawalOrder = res.data;
  319. }
  320. });
  321. },
  322. //用户信息
  323. handleUpdateUserInfo() {
  324. uni.navigateTo({
  325. url: '/pages-mine/pages/setting'
  326. });
  327. },
  328. //查看全部订单
  329. viewAllOrders() {
  330. uni.navigateTo({
  331. url: '/pages-car/pages/my-order?status=-1'
  332. });
  333. },
  334. //跳转订单
  335. navigateToOrder(path) {
  336. uni.navigateTo({
  337. url: path
  338. });
  339. },
  340. //跳转工具
  341. navigateToTool(path) {
  342. if (path === 'link-service') return
  343. if (!path)
  344. return uni.showToast({
  345. title: '开发中...',
  346. icon: 'none'
  347. });
  348. if (path == '/pages-mine/pages/partner/partner-rule') {
  349. this.getPartnerStatus();
  350. } else {
  351. uni.navigateTo({
  352. url: path
  353. });
  354. }
  355. },
  356. // 导航到提现确认页面
  357. navigateToWithdrawal() {
  358. if (this.withdrawalOrder && this.withdrawalOrder.length > 0) {
  359. // 显示提现进度弹窗,使用第一个提现订单
  360. this.currentWithdrawalOrder = this.withdrawalOrder[0];
  361. this.$refs.withdrawalRef.openModal();
  362. } else {
  363. // 如果没有待确认的提现订单,直接跳转到钱包页面
  364. uni.navigateTo({
  365. url: '/pages-mine/pages/wallet'
  366. });
  367. }
  368. },
  369. //获取用户信息
  370. getUserInfo() {
  371. uni.$u.http.get('/token/user/detail').then((res) => {
  372. console.log(res);
  373. if (res.code == 200) {
  374. this.userInfo = res.data;
  375. uni.setStorageSync('userInfo', this.userInfo);
  376. this.orderTypes.forEach((item) => {
  377. item.badge = this.userInfo[item.key];
  378. });
  379. this.myOrderTypes.forEach((item) => {
  380. item.badge = this.userInfo[item.key];
  381. });
  382. }
  383. });
  384. },
  385. //获取合伙人状态
  386. getPartnerStatus() {
  387. let item = this.tools.find((item) => item.name == '合伙人计划');
  388. uni.$u.get('/token/getUserPartnerInfo').then((res) => {
  389. if (res.code == 200) {
  390. let { status } = res.data;
  391. if (status == -1 || status == 4) {
  392. item.path = '/pages-mine/pages/partner/partner-rule';
  393. } else if (status == 1) {
  394. item.path = '/pages-mine/pages/partner/partner-home';
  395. } else {
  396. item.path = '/pages-mine/pages/partner/partner-status';
  397. }
  398. } else {
  399. item.path = '/pages-mine/pages/partner/partner-status';
  400. }
  401. uni.navigateTo({
  402. url: item.path
  403. });
  404. });
  405. },
  406. // 更新悬浮按钮位置
  407. onPositionChange(position) {
  408. this.buttonPosition = position;
  409. },
  410. // 更新活动按钮位置
  411. onActivityButtonPositionChange(position) {
  412. this.activityPosition = position;
  413. },
  414. // 联系客服
  415. contactCustomerService() {
  416. uni.navigateTo({
  417. url: this.activityInfo.jumpPage
  418. });
  419. },
  420. // 关闭提现进度弹窗
  421. closeWithdrawalModal() {
  422. this.$refs.withdrawalRef.handleClose();
  423. },
  424. confirmWithdrawal(item) {
  425. uni.$u.http
  426. .post('/token/user/withdrawConfirm', {
  427. orderNo: item.orderNo
  428. })
  429. .then((res) => {
  430. if (res.code === 200) {
  431. this.handleConfirmReceipt(res.data);
  432. }
  433. })
  434. .catch((err) => {
  435. uni.showToast({
  436. title: err.message || '确认失败',
  437. icon: 'none'
  438. });
  439. });
  440. },
  441. //执行微信确认收款操作
  442. handleConfirmReceipt(data) {
  443. if (wx.canIUse('requestMerchantTransfer')) {
  444. wx.requestMerchantTransfer({
  445. mchId: data.mchId,
  446. appId: data.appId,
  447. package: data.packageStr,
  448. success: (res) => {
  449. // res.err_msg将在页面展示成功后返回应用时返回ok,并不代表付款成功
  450. uni.showToast({
  451. title: '确认收款成功',
  452. icon: 'none'
  453. });
  454. this.closeWithdrawalModal();
  455. // 刷新列表
  456. this.getWithdrawalOrder();
  457. },
  458. fail: (res) => {
  459. console.log('fail:', res);
  460. }
  461. });
  462. } else {
  463. wx.showModal({
  464. content: '你的微信版本过低,请更新至最新版本。',
  465. showCancel: false
  466. });
  467. }
  468. },
  469. navigateToCustomerService() {
  470. uni.navigateTo({
  471. url: '/pages-mine/pages/customer-service'
  472. });
  473. }
  474. },
  475. onReady() {
  476. // 获取屏幕宽度和高度
  477. uni.getSystemInfo({
  478. success: (res) => {
  479. this.screenWidth = res.windowWidth;
  480. this.screenHeight = res.windowHeight;
  481. }
  482. });
  483. this.getActivityStatus();
  484. },
  485. onShow() {
  486. this.$updateCartBadge();
  487. let token = uni.getStorageSync('token');
  488. if (token) {
  489. this.getUserInfo();
  490. this.getWithdrawalOrder();
  491. }
  492. }
  493. };
  494. </script>
  495. <style lang="scss" scoped>
  496. .mine-page {
  497. min-height: 100vh;
  498. background-color: #f5f5f5;
  499. position: relative;
  500. .link-service {
  501. background: transparent;
  502. border: none;
  503. padding: 0;
  504. margin: 0;
  505. width: 100%;
  506. height: 100%;
  507. line-height: 36rpx;
  508. }
  509. .user-info {
  510. background: url('/static/img/bg.png') no-repeat center center;
  511. background-size: 100% 100%;
  512. position: absolute;
  513. top: 0;
  514. left: 0;
  515. padding: 20rpx 50rpx 120rpx;
  516. color: #fff;
  517. position: relative;
  518. padding-top: 160rpx;
  519. &::after {
  520. width: 140%;
  521. position: absolute;
  522. left: -20%;
  523. top: 0;
  524. z-index: -1;
  525. content: '';
  526. border-radius: 0 0 50% 50%;
  527. background: #fd6954;
  528. }
  529. .user-header {
  530. display: flex;
  531. align-items: center;
  532. margin-bottom: 40rpx;
  533. .user-avatar {
  534. border-radius: 50%;
  535. margin-right: 20rpx;
  536. border: 4rpx solid #fff;
  537. width: 128rpx;
  538. height: 128rpx;
  539. overflow: hidden;
  540. flex-shrink: 0;
  541. background: #fff;
  542. .avatar {
  543. width: 100%;
  544. height: 100%;
  545. border-radius: 50%;
  546. object-fit: cover;
  547. }
  548. }
  549. .user-detail {
  550. .nickname {
  551. font-size: 32rpx;
  552. font-weight: 500;
  553. margin-bottom: 8rpx;
  554. }
  555. .user-tag {
  556. display: inline-block;
  557. font-size: 22rpx;
  558. padding: 4rpx 12rpx;
  559. background: linear-gradient(-90deg, #272321, #4b4542);
  560. border-radius: 4rpx;
  561. margin-top: 8rpx;
  562. margin-right: 10rpx;
  563. }
  564. }
  565. }
  566. .user-data {
  567. display: flex;
  568. justify-content: space-between;
  569. position: relative;
  570. z-index: 1;
  571. padding: 0 40rpx;
  572. .data-item {
  573. position: relative;
  574. text-align: center;
  575. .amount {
  576. font-size: 38rpx;
  577. font-weight: 500;
  578. margin-bottom: 8rpx;
  579. }
  580. .label {
  581. font-size: 24rpx;
  582. font-weight: 400;
  583. opacity: 0.9;
  584. }
  585. .badge {
  586. position: absolute;
  587. top: -15rpx;
  588. right: -120%;
  589. padding: 0 10rpx;
  590. font-size: 20rpx;
  591. line-height: 30rpx;
  592. height: 30rpx;
  593. background: #ff8400;
  594. border-radius: 15rpx 15rpx 15rpx 0rpx;
  595. }
  596. }
  597. }
  598. }
  599. .order-section {
  600. margin: -90rpx 30rpx 20rpx;
  601. background: #fff;
  602. border-radius: 12rpx;
  603. padding: 30rpx;
  604. position: relative;
  605. z-index: 2;
  606. .section-header {
  607. display: flex;
  608. justify-content: space-between;
  609. align-items: center;
  610. margin-bottom: 30rpx;
  611. .view-all {
  612. display: flex;
  613. align-items: center;
  614. color: #999;
  615. font-size: 26rpx;
  616. }
  617. }
  618. .order-types {
  619. display: flex;
  620. justify-content: space-between;
  621. .type-item {
  622. text-align: center;
  623. position: relative;
  624. .badge {
  625. position: absolute;
  626. top: -15rpx;
  627. right: -6px;
  628. padding: 0 10rpx;
  629. font-size: 20rpx;
  630. line-height: 30rpx;
  631. height: 30rpx;
  632. background: #f56c6c;
  633. color: #fff;
  634. border-radius: 15rpx 15rpx 15rpx 0rpx;
  635. }
  636. .type-icon {
  637. width: 60rpx;
  638. height: 60rpx;
  639. margin-bottom: 12rpx;
  640. }
  641. text {
  642. font-size: 26rpx;
  643. color: #333;
  644. }
  645. }
  646. }
  647. }
  648. .tools-section {
  649. margin: 30rpx;
  650. background: #fff;
  651. border-radius: 12rpx;
  652. padding: 30rpx;
  653. position: relative;
  654. z-index: 2;
  655. .section-title {
  656. font-size: 30rpx;
  657. font-weight: 500;
  658. margin-bottom: 30rpx;
  659. }
  660. .tools-grid {
  661. display: grid;
  662. grid-template-columns: repeat(4, 1fr);
  663. gap: 30rpx;
  664. .tool-item {
  665. text-align: center;
  666. .tool-icon {
  667. width: 60rpx;
  668. height: 60rpx;
  669. margin-bottom: 12rpx;
  670. }
  671. text {
  672. font-size: 24rpx;
  673. color: #333;
  674. }
  675. }
  676. }
  677. }
  678. }
  679. </style>