index.vue 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838
  1. <template>
  2. <view>
  3. <view class="header">
  4. <!-- 用户信息 -->
  5. <view class="userinfo">
  6. <view class="infos" @click="toData">
  7. <view class="head-portrait">
  8. <u-avatar :src="userId ? headImg : '../../assets/img/head.png'" size="96"></u-avatar>
  9. </view>
  10. <view class="username">
  11. <view class="name" :style="elderStatus ? 'font-size: 28px;' : ''">
  12. {{userId ? nickName : '登录 / 注册'}}
  13. </view>
  14. <view class="change" :style="elderStatus ? 'font-size: 16px;' : ''">
  15. {{userId ? '点击修改个人信息' : '登录后享受更多优惠及服务'}}
  16. </view>
  17. </view>
  18. </view>
  19. <view class="right">
  20. <!-- <i class="ri-notification-2-line">
  21. <text class="unread">20</text>
  22. </i> -->
  23. <i class="ri-settings-line" @click="setUp"></i>
  24. </view>
  25. </view>
  26. <!-- 卡片 -->
  27. <view v-for="(item,i) in businessVipList" :key="i"
  28. @click="gotoUrl('pages/user/company-vip?id='+item.platform)"
  29. class="card" >
  30. <view class="title">
  31. <text class="img">
  32. <img src="../../assets/img/riFill-building-fill@4x.png" alt="">
  33. </text>{{item.platformN}}
  34. </view>
  35. <view class="view">
  36. 查看<text class="iconfont">&#xe600;</text>
  37. </view>
  38. </view>
  39. <!-- 立即开通 -->
  40. <view class="open" v-if="userId&&!userCardBool">
  41. <view class="title">
  42. <text class="img">
  43. <img src="../../assets/img/antFill-crown@3x.png" alt="">
  44. </text>充电服务包月卡
  45. </view>
  46. <view class="open-btn" @click="gotoUrl('pages/monthlyCardActivity/monthlyCardBuy')">
  47. 立即开通
  48. <text class="iconfont">&#xe632;</text>
  49. </view>
  50. </view>
  51. <!-- 开通后 -->
  52. <view class="opened" v-if="userId&&userCardBool" @click="gotoUrl('pages/monthlyCardActivity/monthlyCardBuy')">
  53. <view class="title">
  54. <text class="img">
  55. <img src="../../assets/img/antFill-crown@3x.png" alt="">
  56. </text>充电服务费包月卡
  57. </view>
  58. <view class="date">
  59. {{userCard.endTime?userCard.endTime.slice(0,10):''}}到期
  60. <text class="iconfont">&#xe600;</text>
  61. </view>
  62. </view>
  63. <!-- 可用余额 -->
  64. <view class="balance">
  65. <view class="item" @click="toBalance">
  66. <view class="num oldTextjp" oldstyle="font-size: 28px;">
  67. {{personAccount.availableAmount != null ? personAccount.availableAmount.toFixed(2) : '0.00'}}<span style="font-size: 16px;">元</span>
  68. </view>
  69. <view class="name" :style="elderStatus ? 'font-size: 16px;' : ''">
  70. 可用余额{{" "}}
  71. <span class="userData-foot-look">查看</span>
  72. </view>
  73. </view>
  74. <view class="item" @click="toMyCoupon">
  75. <view class="num oldTextjp" oldstyle="font-size: 28px;">
  76. {{recordsTotal}}<span style="font-size: 16px;">张</span>
  77. <!-- <text class="new">新券</text> -->
  78. </view>
  79. <view class="name" :style="elderStatus ? 'font-size: 16px;' : ''">
  80. 优惠券{{" "}}
  81. <span class="userData-foot-look">查看</span>
  82. </view>
  83. </view>
  84. <!-- <view class="item">
  85. <view class="num oldTextjp" oldstyle="font-size: 28px;">
  86. 0
  87. </view>
  88. <view class="name" :style="elderStatus ? 'font-size: 16px;' : ''">
  89. 积分{{" "}}
  90. <span class="userData-foot-look">查看</span>
  91. </view>
  92. </view> -->
  93. </view>
  94. </view>
  95. <!-- 优惠 -->
  96. <view class="discounts">
  97. <u-swiper bg-color="#fff" :img-mode="'scaleToFill'" height="160" :list="bannerList" @click="clickBanner"
  98. :name="'picUrl'">
  99. </u-swiper>
  100. </view>
  101. <!-- 菜单 -->
  102. <view class="menu">
  103. <view class="item" @click="chargingRecord">
  104. <view class="item-icon">
  105. <i class="ri-todo-line"></i>
  106. </view>
  107. <view class="item-name oldTextjp" oldstyle="font-size: 16px;">
  108. 充电记录
  109. </view>
  110. </view>
  111. <view class="item" @click="myAppointment">
  112. <view class="item-icon">
  113. <i class="ri-map-pin-time-line"></i>
  114. </view>
  115. <view class="item-name oldTextjp" oldstyle="font-size: 16px;">
  116. 我的预约
  117. </view>
  118. </view>
  119. <view class="item" @click="toInvoice">
  120. <view class="item-icon">
  121. <i class="ri-ticket-line"></i>
  122. </view>
  123. <view class="item-name oldTextjp" oldstyle="font-size: 16px;">
  124. 我的发票
  125. </view>
  126. </view>
  127. <view class="item" @click="gotoUrl('pages/user/contactService')">
  128. <view class="item-icon">
  129. <i class="ri-customer-service-2-line"></i>
  130. </view>
  131. <view class="item-name oldTextjp" oldstyle="font-size: 16px;">
  132. 联系客服
  133. </view>
  134. </view>
  135. <view class="item" @click="feedback">
  136. <view class="item-icon">
  137. <i class="ri-feedback-line"></i>
  138. </view>
  139. <view class="item-name oldTextjp" oldstyle="font-size: 16px;">
  140. 意见反馈
  141. </view>
  142. </view>
  143. <view class="item" @click="gotoUrl('pages/user/help')">
  144. <view class="item-icon">
  145. <i class="ri-compass-3-line"></i>
  146. </view>
  147. <view class="item-name oldTextjp" oldstyle="font-size: 16px;">
  148. 操作指南
  149. </view>
  150. </view>
  151. <view class="item" @click="gotoUrl('pages/user/about')">
  152. <view class="item-icon">
  153. <i class="ri-account-pin-box-line"></i>
  154. </view>
  155. <view class="item-name oldTextjp" oldstyle="font-size: 16px;">
  156. 关于我们
  157. </view>
  158. </view>
  159. <!-- <view class="item">
  160. <view class="item-icon">
  161. <i class="ri-tools-line"></i>
  162. </view>
  163. <view class="item-name oldTextjp" oldstyle="font-size: 16px;">
  164. 我要报修
  165. </view>
  166. </view> -->
  167. <view class="item" @click="toFreeInstallation">
  168. <view class="item-icon">
  169. <i class="ri-file-add-line"></i>
  170. </view>
  171. <view class="item-name oldTextjp" oldstyle="font-size: 16px;">
  172. 免费安桩
  173. </view>
  174. </view>
  175. <view class="item" @click="toJoin">
  176. <view class="item-icon">
  177. <i class="ri-service-line"></i>
  178. </view>
  179. <view class="item-name oldTextjp" oldstyle="font-size: 16px;">
  180. 我要加盟
  181. </view>
  182. </view>
  183. <!-- <view class="item">
  184. <view class="item-icon">
  185. <i class="ri-shield-user-line"></i>
  186. </view>
  187. <view class="item-name oldTextjp" oldstyle="font-size: 16px;">
  188. 实名认证
  189. </view>
  190. </view> -->
  191. </view>
  192. <Tabbar :current="2" ref="tabbarMain" :elderStatus="elderStatus"></Tabbar>
  193. </view>
  194. </template>
  195. <script>
  196. import * as API from '@/apis/index.js'
  197. import * as userApi from '@/apis/user.js'
  198. import * as loginApi from '@/apis/login.js'
  199. import * as WxJsApi from '@/utils/wxJsApi.js'
  200. import Tabbar from '@/components/Tabbar.vue'
  201. import * as newsApi from '@/apis/news.js'
  202. import {
  203. newDate
  204. } from '@/utils'
  205. export default {
  206. components: {
  207. Tabbar
  208. },
  209. data() {
  210. return {
  211. userCard:null,
  212. recordsTotal: 0,
  213. myCouponList: [],
  214. elderStatus: false,
  215. personAccount: {},
  216. userId: '',
  217. headImg: '',
  218. nickName: '',
  219. userPhone: '',
  220. show: false,
  221. title: '联系客服',
  222. content: '400-8899-619',
  223. confirmText: '拨打电话',
  224. bannerList:[],
  225. businessVipList:[],
  226. background:{
  227. background: 'none'
  228. },
  229. }
  230. },
  231. onShow() {
  232. if(this.carhelp.getPersonInfo()) {
  233. this.userId = this.carhelp.getPersonInfo().id;
  234. this.getCarPersonAccount();
  235. this.getUserInfo();
  236. this.getCouponList();
  237. }
  238. if(this.$refs.tabbarMain){
  239. this.$refs.tabbarMain.setcount(2);
  240. }
  241. if(this.carhelp.get("getElderModeClass") == "长辈模式") {
  242. this.elderStatus = true;
  243. } else {
  244. this.elderStatus = false;
  245. }
  246. },
  247. computed:{
  248. userCardBool(){
  249. if(this.userCard){
  250. var date=new Date().getTime()
  251. var reg=new RegExp('-','gi')
  252. var str=this.userCard.endTime;
  253. //console.log(str.replace(reg,'/'))
  254. var date2=newDate(str).getTime();
  255. if(date<date2){
  256. return true;
  257. }
  258. }
  259. return false
  260. }
  261. },
  262. onReady() {
  263. WxJsApi.getWxConfig(['getLocation', 'addEventListener', 'scanQRCode']).then((res) => {
  264. // //(res)
  265. }).catch(error => {
  266. //(error)
  267. })
  268. var consumerPhone=this.carhelp.getConfig().consumerPhone
  269. // img="https://yktwechat.xiaoxinda.com/config/xxd2021.jpg"
  270. if(consumerPhone){
  271. this.content=consumerPhone
  272. }
  273. this.getBannerInfo("userinfo")
  274. },
  275. methods: {
  276. clickBanner(index){
  277. var mod= this.bannerList[index]
  278. if(mod.linkUrl.indexOf('http')==0){
  279. window.location=mod.linkUrl;
  280. }
  281. else if(mod.linkUrl.indexOf('#/')==0){
  282. if(mod.linkUrl.indexOf("?")==-1){
  283. mod.linkUrl+='?';
  284. }
  285. //window.location=mod.linkUrl;
  286. var url=mod.linkUrl.split("#")[1]
  287. //window.location = mod.clickUrl;
  288. uni.navigateTo({
  289. url: url
  290. })
  291. }
  292. else if(mod.linkUrl=='#'||mod.linkUrl==''){
  293. }
  294. else{
  295. uni.navigateTo({
  296. url:mod.linkUrl
  297. })
  298. }
  299. },
  300. getBannerInfo(code){
  301. uni.showLoading({
  302. title: "加载中",
  303. mask: true,
  304. })
  305. newsApi.getBannerInfo(code).then((res) => {
  306. uni.hideLoading();
  307. this.bannerList =res.data;
  308. // document.getElementsByClassName("uni-swiper-wrapper")[0].parentNode.style="background-color: rgb(255, 255, 255); height: 300px;"
  309. }).catch(error => {
  310. uni.showToast({
  311. title: error,icon: "none"
  312. })
  313. })
  314. },
  315. getCouponList() {
  316. uni.showLoading({
  317. title: "加载中",
  318. mask: true,
  319. })
  320. userApi.couponList({
  321. status: '0'
  322. }).then((res) => {
  323. uni.hideLoading();
  324. this.myCouponList = res.data.data;
  325. this.recordsTotal = res.data.recordsTotal;
  326. }).catch(error => {
  327. uni.showToast({
  328. title: error,
  329. icon: "none"
  330. })
  331. })
  332. },
  333. //微信扫二维码
  334. getScanCode() {
  335. if (this.userId) {
  336. WxJsApi.scanQRCode(1).then(res => {
  337. if(res) {
  338. API.scanCode(res).then((response) => {
  339. }).catch(error => {
  340. uni.showToast({
  341. title: error,
  342. icon: "none"
  343. })
  344. })
  345. }
  346. }).catch(error => {
  347. })
  348. } else {
  349. uni.navigateTo({
  350. url: '/pages/login/login'
  351. })
  352. }
  353. },
  354. fastRecharge() {
  355. if (this.userId) {
  356. uni.navigateTo({
  357. url: '/pages/user/finance/recharge'
  358. })
  359. } else {
  360. uni.navigateTo({
  361. url: '/pages/login/login'
  362. })
  363. }
  364. },
  365. toInvoice(){
  366. if (this.userId) {
  367. uni.navigateTo({
  368. url: '/pages/MyInvoice/invoiceManagement'
  369. })
  370. } else {
  371. uni.navigateTo({
  372. url: '/pages/login/login'
  373. })
  374. }
  375. },
  376. chargingRecord() {
  377. if (this.userId) {
  378. uni.navigateTo({
  379. url: '/pages/record/index'
  380. })
  381. } else {
  382. uni.navigateTo({
  383. url: '/pages/login/login'
  384. })
  385. }
  386. },
  387. toSearchPile() {
  388. uni.navigateTo({
  389. url: '/pages/searchPile/searchPile'
  390. })
  391. },
  392. getUserInfo() {
  393. uni.showLoading({
  394. title: "加载中",
  395. mask: true,
  396. })
  397. loginApi.findByOpenId({
  398. openId: this.carhelp.getOpenId()
  399. }).then((res) => {
  400. uni.hideLoading();
  401. this.businessVipList=res.data.businessVipList
  402. this.headImg = res.data.regUser.headImg;
  403. this.nickName = res.data.regUser.nickName;
  404. this.userCard=res.data.userCard;
  405. var phone = res.data.regUser.phone;
  406. var phone1 = phone.slice(0,3);
  407. var phone2 = phone.slice(-4);
  408. this.userPhone = phone1 + '****' + phone2;
  409. if (res.code == 200&&res.result) {
  410. var token = res ? res.data.token : '';
  411. this.carhelp.setPersonInfo(res.data.regUser );
  412. this.carhelp.setToken(token);
  413. this.carhelp.setPersonInfoPlus(res.data);
  414. console.log("setPersonInfoPlus")
  415. }
  416. }).catch(error => {
  417. uni.showToast({
  418. title: error,
  419. icon: "none"
  420. })
  421. })
  422. },
  423. toData() {
  424. if(this.userId) {
  425. uni.navigateTo({
  426. url: '/pages/user/dataSet'
  427. })
  428. } else {
  429. uni.navigateTo({
  430. url: '/pages/login/login'
  431. })
  432. }
  433. },
  434. toBalance() {
  435. if(this.userId) {
  436. uni.navigateTo({
  437. url: '/pages/user/finance/balance'
  438. })
  439. } else {
  440. uni.navigateTo({
  441. url: '/pages/login/login'
  442. })
  443. }
  444. },
  445. toMyCoupon() {
  446. if(this.userId) {
  447. uni.navigateTo({
  448. url: '/pages/user/coupon/myCoupon'
  449. })
  450. } else {
  451. uni.navigateTo({
  452. url: '/pages/login/login'
  453. })
  454. }
  455. },
  456. toRecharge() {
  457. if(this.userId) {
  458. uni.navigateTo({
  459. url: '/pages/user/finance/recharge'
  460. })
  461. } else {
  462. uni.navigateTo({
  463. url: '/pages/login/login'
  464. })
  465. }
  466. },
  467. carManage() {
  468. if(this.userId) {
  469. } else {
  470. uni.navigateTo({
  471. url: '/pages/login/login'
  472. })
  473. }
  474. },
  475. myAppointment() {
  476. if(this.userId) {
  477. uni.navigateTo({
  478. url: '/pages/user/myReservation/myReservation'
  479. })
  480. } else {
  481. uni.navigateTo({
  482. url: '/pages/login/login'
  483. })
  484. }
  485. },
  486. toFreeInstallation() {
  487. if(this.userId) {
  488. uni.navigateTo({
  489. url: '/pages/user/freeInstallment?isback=1'
  490. })
  491. } else {
  492. uni.navigateTo({
  493. url: '/pages/login/login'
  494. })
  495. }
  496. },
  497. toJoin() {
  498. if(this.userId) {
  499. uni.navigateTo({
  500. url: '/pages/user/toJoin?isback=1'
  501. })
  502. } else {
  503. uni.navigateTo({
  504. url: '/pages/login/login'
  505. })
  506. }
  507. },
  508. feedback() {
  509. if(this.userId) {
  510. uni.navigateTo({
  511. url: '/pages/user/message'
  512. })
  513. } else {
  514. uni.navigateTo({
  515. url: '/pages/login/login'
  516. })
  517. }
  518. },
  519. setUp() {
  520. if(this.userId) {
  521. uni.navigateTo({
  522. url: '/pages/user/setting'
  523. })
  524. } else {
  525. uni.navigateTo({
  526. url: '/pages/login/login'
  527. })
  528. }
  529. },
  530. openModal() {
  531. this.show = true;
  532. },
  533. confirmPhone(){
  534. this.show = false;
  535. uni.makePhoneCall({
  536. phoneNumber:this.content //仅为示例
  537. });
  538. },
  539. getCarPersonAccount() {
  540. uni.showLoading({
  541. title: "加载中",
  542. mask: true,
  543. })
  544. userApi.carPersonAccount().then((res) => {
  545. uni.hideLoading();
  546. this.personAccount = res.data;
  547. }).catch(error => {
  548. uni.showToast({
  549. title: error,
  550. icon: "none"
  551. })
  552. })
  553. }
  554. }
  555. }
  556. </script>
  557. <style>
  558. page{
  559. background-size: 100%;
  560. }
  561. </style>
  562. <style lang="scss" scoped>
  563. .header {
  564. background: linear-gradient(#D6EEDC, #F6F8F8);
  565. .userinfo {
  566. display: flex;
  567. justify-content: space-between;
  568. padding: 20px 16px;
  569. .infos {
  570. display: flex;
  571. }
  572. .head-portrait {
  573. width: 48px;
  574. height: 48px;
  575. img {
  576. width: 100%;
  577. height: 100%;
  578. }
  579. }
  580. .username {
  581. margin-left: 8px;
  582. .name {
  583. color: rgba(51, 51, 51, 100);
  584. font-size: 20px;
  585. line-height: 24px;
  586. }
  587. .change {
  588. color: rgba(166, 180, 173, 100);
  589. line-height: 14px;
  590. margin-top: 8px;
  591. }
  592. }
  593. .right {
  594. font-size: 24px;
  595. .ri-notification-2-line {
  596. position: relative;
  597. .unread {
  598. width: 20px;
  599. line-height: 14px;
  600. border-radius: 24px;
  601. background-color: rgba(255, 94, 0, 100);
  602. color: rgba(255, 255, 255, 100);
  603. font-size: 9px;
  604. text-align: center;
  605. position: absolute;
  606. bottom: 14px;
  607. left: 14px;
  608. }
  609. }
  610. .ri-settings-line {
  611. margin-left: 16px;
  612. }
  613. }
  614. }
  615. // 卡片
  616. .card {
  617. background: linear-gradient(#405473, #536D96);
  618. width: 91.4%;
  619. margin: 4px auto 0;
  620. padding: 15px 12px;
  621. display: flex;
  622. justify-content: space-between;
  623. border-radius: 8px;
  624. .title {
  625. line-height: 24px;
  626. color: rgba(255, 255, 255, 100);
  627. font-size: 16px;
  628. .img {
  629. display: inline-block;
  630. width: 24px;
  631. height: 24px;
  632. vertical-align: middle;
  633. margin-right: 8px;
  634. img {
  635. width: 20px;
  636. height: 20px;
  637. }
  638. }
  639. }
  640. .view {
  641. line-height: 24px;
  642. color: rgba(208, 214, 226, 100);
  643. font-size: 16px;
  644. }
  645. }
  646. // 立即开通
  647. .open,.opened {
  648. background: linear-gradient(#4A4C62, #2C3145);
  649. width: 91.4%;
  650. padding: 30rpx 24rpx 24rpx 24rpx;
  651. margin: 8rpx auto 0;
  652. display: flex;
  653. justify-content: space-between;
  654. border-radius: 8px;
  655. .title {
  656. line-height: 24px;
  657. color: #E1C082;
  658. font-size: 32rpx;
  659. .img {
  660. display: inline-block;
  661. width: 48rpx;
  662. height: 48rpx;
  663. vertical-align: middle;
  664. margin-right: 8px;
  665. img {
  666. width: 40rpx;
  667. height: 40rpx;
  668. }
  669. }
  670. }
  671. .open-btn {
  672. padding-left: 12px;
  673. padding-right: 4px;
  674. line-height: 28px;
  675. // text-align: center;
  676. border-radius: 50px;
  677. background: linear-gradient(to right,#F0E1C6, #ECC194);
  678. .iconfont {
  679. margin-left: 0px;
  680. }
  681. }
  682. .date{
  683. color: #d1b37a;
  684. line-height: 24px;
  685. font-size: 32rpx;
  686. .iconfont{
  687. color: #867668
  688. }
  689. }
  690. }
  691. // 余额
  692. .balance {
  693. background-color: #fff;
  694. width: 91.4%;
  695. margin: 12px auto;
  696. padding: 16px 29px;
  697. display: flex;
  698. // justify-content: space-between;
  699. justify-content: space-around;
  700. border-radius: 8px;
  701. .item {
  702. text-align: center;
  703. .num {
  704. line-height: 28px;
  705. color: rgba(51, 51, 51, 100);
  706. font-size: 24px;
  707. position: relative;
  708. .new {
  709. width: 40px;
  710. line-height: 20px;
  711. border-radius: 24px 24px 24px 0px;
  712. background-color: rgba(255, 94, 0, 100);
  713. color: rgba(255, 255, 255, 100);
  714. font-size: 12px;
  715. text-align: center;
  716. position: absolute;
  717. bottom: 20px;
  718. left: 36px;
  719. }
  720. }
  721. .name {
  722. height: 16px;
  723. color: rgba(134, 134, 134, 100);
  724. font-size: 14px;
  725. margin-top: 4px;
  726. .userData-foot-look {
  727. color: #00B962;
  728. }
  729. }
  730. }
  731. }
  732. }
  733. // 优惠
  734. .discounts {
  735. width: 91.4%;
  736. height: 80px;
  737. margin: 0 auto;
  738. border-radius: 8px;
  739. overflow: hidden;
  740. img {
  741. width: 100%;
  742. height: 80px;
  743. }
  744. }
  745. // 菜单
  746. .menu {
  747. background-color: #fff;
  748. width: 91.4%;
  749. margin: 12px auto 0;
  750. padding: 0 12px 9px 12px;
  751. border-radius: 8px;
  752. display: flex;
  753. flex-wrap: wrap;
  754. @media screen and (max-width: 375px) {
  755. .item {
  756. width: 33% !important;
  757. }
  758. }
  759. .item {
  760. width: 25%;
  761. margin-top: 20px;
  762. margin-bottom: 11px;
  763. display: flex;
  764. flex-direction: column;
  765. align-items: center;
  766. color: rgba(119, 119, 119, 100);
  767. i {
  768. font-size: 24px
  769. }
  770. .item-name {
  771. font-size: 14px;
  772. margin-top: 8px;
  773. }
  774. }
  775. }
  776. </style>