my.vue 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859
  1. <template>
  2. <view>
  3. <!-- 背景图 -->
  4. <view class="top">
  5. <image src="./icon/bg.png" mode="aspectFill"></image>
  6. </view>
  7. <view class="content">
  8. <view class="user" v-if="info.name">
  9. <!-- <view class="left">
  10. <view class="img">
  11. <image v-if="user.avatar" :src="user.avatar" mode="aspectFill"></image>
  12. <view class="avatar" v-if="!user.avatar" :style="{backgroundColor:bgColor[1]}">
  13. {{user.name.split('').pop()}}
  14. </view>
  15. </view>
  16. <view class="info">
  17. <view class="name">{{user.name}}</view>
  18. <view class="section">{{user.section}}</view>
  19. </view>
  20. </view> -->
  21. <view class="left">
  22. <view class="img">
  23. <image v-if="info.avatar" :src="info.avatar" mode="aspectFill"></image>
  24. <view class="avatar" v-if="!info.avatar" :style="{backgroundColor:bgColor[1]}">
  25. {{info.name.split('').pop()}}
  26. </view>
  27. </view>
  28. <view class="info">
  29. <view class="name">{{info.name}}</view>
  30. <view class="section">{{info.section_fullname}}</view>
  31. </view>
  32. </view>
  33. <view class="right">
  34. <view class="btn" @click="go_information()">
  35. <view class="icon">
  36. <uni-icons type="person-filled" color="#fff"></uni-icons>
  37. </view>
  38. <view class="text">个人中心</view>
  39. </view>
  40. </view>
  41. </view>
  42. <view class="section_1">
  43. <view class="title">本月使用信息</view>
  44. <view class="box">
  45. <view class="item">
  46. <view class="num">{{use.h}} <text> h </text> {{use.m}} <text> min</text></view>
  47. <view class="tip">使用时长</view>
  48. </view>
  49. <view class="item">
  50. <view class="num">{{use.times || '1'}}</view>
  51. <view class="tip">使用次数</view>
  52. </view>
  53. <view class="item">
  54. <view class="num">{{use.submit_count}}</view>
  55. <view class="tip">提交单据数</view>
  56. </view>
  57. </view>
  58. </view>
  59. <view class="section_2">
  60. <view class="inner_1">
  61. <view class="title">
  62. <view class="icon">
  63. <image src="./icon/time.png" mode=""></image>
  64. </view>
  65. <view class="text">最近使用</view>
  66. </view>
  67. <view class="box">
  68. <view class="item" v-if="recently_used.length > 0" v-for="(item,index) in recently_used"
  69. :key="index" @click="go_OA(item)">
  70. <view class="name">{{item.title}}</view>
  71. <view class="icon">
  72. <uni-icons type="right" color="#fff" size="16"></uni-icons>
  73. </view>
  74. </view>
  75. <view v-if="recently_used.length == 0"
  76. style="line-height: 80rpx;color: #FFFFFF;padding: 0 20rpx;font-size: 28rpx;">暂无使用记录。</view>
  77. </view>
  78. </view>
  79. <view class="inner_2" @click="go_integral()">
  80. <view class="num">{{total}}</view>
  81. <view class="text">积分</view>
  82. </view>
  83. </view>
  84. <view class="section_3" v-if="mine_code != 'ningdongyunying' && mine_code != 'wuyegongsi'"
  85. @click="go_downhole_statistics()">
  86. <view class="title">
  87. <view class="icon">
  88. <uni-icons type="map-pin-ellipse" color="#fff"></uni-icons>
  89. </view>
  90. <view class="text">当前位置:{{downhole.position}}</view>
  91. </view>
  92. <view class="box">
  93. <view class="item">
  94. <view class="num">{{downhole.h}} <text> h</text> {{downhole.m}} <text> min</text></view>
  95. <view class="tip">本月下井时长</view>
  96. </view>
  97. <view class="item">
  98. <view class="num">{{downhole.times}}</view>
  99. <view class="tip">本月下井次数</view>
  100. </view>
  101. </view>
  102. </view>
  103. </view>
  104. <view class="content">
  105. <view class="section_4">
  106. <view class="list">
  107. <view class="item" @click="clear_cache()">
  108. <view class="icon">
  109. <image src="./icon/icon_1.png" mode="aspectFill"></image>
  110. </view>
  111. <view class="text">
  112. 清除缓存
  113. </view>
  114. </view>
  115. <view class="item" @click="tell()">
  116. <view class="icon">
  117. <image src="./icon/icon_2.png" mode="aspectFill"></image>
  118. </view>
  119. <view class="text">服务电话</view>
  120. </view>
  121. <view class="item" @click="go_feedback()">
  122. <view class="icon">
  123. <image src="./icon/icon_3.png" mode="aspectFill"></image>
  124. </view>
  125. <view class="text">建议反馈</view>
  126. </view>
  127. <view class="item" @click="go_update_log()">
  128. <view class="icon">
  129. <image src="./icon/icon_4.png" mode="aspectFill"></image>
  130. </view>
  131. <view class="text">更新日志</view>
  132. </view>
  133. <view class="item" @click="go_m_repassword()">
  134. <view class="icon">
  135. <image src="./icon/icon_5.png" mode="aspectFill"></image>
  136. </view>
  137. <view class="text">修改密码</view>
  138. </view>
  139. <view class="item" @click="login_out()">
  140. <view class="icon">
  141. <image src="./icon/icon_6.png" mode="aspectFill"></image>
  142. </view>
  143. <view class="text">退出登陆</view>
  144. </view>
  145. <view class="item" @click="go_m_download()">
  146. <view class="icon">
  147. <image src="./icon/icon_7.png" mode="aspectFill"></image>
  148. </view>
  149. <view class="text">下载二维码</view>
  150. </view>
  151. </view>
  152. </view>
  153. </view>
  154. </view>
  155. </template>
  156. <script>
  157. import {
  158. set_mine
  159. } from '@/common/set_base_url.js'
  160. export default {
  161. data() {
  162. return {
  163. // 当前煤矿编码
  164. mine_code: "",
  165. // 用户基本信息
  166. user: {},
  167. info: {},
  168. bgColor: [],
  169. // 总积分
  170. total: 0,
  171. // 下井定位卡号
  172. people_num: "",
  173. // 矿编码
  174. mine: "",
  175. // 下井数据
  176. downhole: {
  177. position: "-",
  178. h: "0",
  179. m: "0",
  180. times: "0"
  181. },
  182. // 使用时长次数
  183. use: {
  184. times: "0",
  185. h: "0",
  186. m: "0",
  187. submit_count: "0"
  188. },
  189. // 最近使用
  190. recently_used: []
  191. };
  192. },
  193. onLoad() {
  194. // console.log(set_mine(uni.getStorageSync('mine_code')))
  195. this.mine = set_mine(uni.getStorageSync('mine_code'))
  196. // 初始化当前煤矿编码
  197. this.mine_code = uni.getStorageSync('mine_code')
  198. // 判断会否登录、没有则跳转至登录页
  199. // const Authorization = uni.getStorageSync('Authorization')
  200. // if (Authorization == '') {
  201. // uni.showToast({
  202. // icon: "none",
  203. // title: "用户未登录"
  204. // })
  205. // setTimeout(function() {
  206. // uni.redirectTo({
  207. // url: "../../my/login/login"
  208. // })
  209. // }, 1500)
  210. // }
  211. // 设置头像
  212. for (let i = 0; i < 2; i++) {
  213. // 获取随机色
  214. let r = parseInt(Math.random() * 256)
  215. let g = parseInt(Math.random() * 256)
  216. let b = parseInt(Math.random() * 256)
  217. // ES6 字符串拼接
  218. // this.bgColor = `rgba(${r},${g},${b},0.3)`
  219. let color = "rgba(" + r + "," + g + "," + b + "," + 0.3 + ")"
  220. // console.log(color)
  221. this.bgColor.push(color)
  222. }
  223. // 获取用户基本信息
  224. this.user = uni.getStorageSync('user');
  225. this.$api.user_getUinfo({
  226. staff_num: uni.getStorageSync('user').staff_num
  227. }).then((res) => {
  228. this.info = res.data.data
  229. })
  230. // 查询使用时长
  231. this.get_user_selectRecordDuration()
  232. //查询员工积分
  233. this.get_staff_integral_query(),
  234. // 获取个人信息
  235. this.$api.user_getUinfo({
  236. staff_num: uni.getStorageSync('user').staff_num
  237. }).then((res) => {
  238. // console.log(res)
  239. this.people_num = res.data.data.people_code
  240. // 获取当前位置
  241. this.get_downhole()
  242. })
  243. // 获取常用列表
  244. this.get_workflow_recently_used()
  245. },
  246. methods: {
  247. // 个人信息
  248. go_information() {
  249. if(this.mine_code == 'ningmeijituan'){
  250. uni.navigateTo({
  251. url: "../../my/personal_information/personal_information_peixun"
  252. })
  253. }else{
  254. uni.navigateTo({
  255. url: "../../my/personal_information/personal_information_info"
  256. })
  257. }
  258. },
  259. // 查询使用时长
  260. get_user_selectRecordDuration() {
  261. this.$api.user_selectRecordDuration({
  262. }).then((res) => {
  263. // console.log(res.data.data)
  264. this.use.h = res.data.data.hours
  265. this.use.m = res.data.data.minutes
  266. this.use.times = res.data.data.frequency
  267. })
  268. },
  269. // 退出登录
  270. login_out() {
  271. let mine_code = uni.getStorageSync('mine_code')
  272. uni.clearStorageSync();
  273. uni.setStorageSync('mine_code',mine_code)
  274. uni.showToast({
  275. icon: "none",
  276. title: "退出登录"
  277. })
  278. // 跳转登录页
  279. setTimeout(() => {
  280. uni.redirectTo({
  281. url: "../../my/login/login"
  282. })
  283. }, 1000)
  284. },
  285. // 拨打服务电话
  286. tell() {
  287. uni.makePhoneCall({
  288. phoneNumber: '18152480670'
  289. });
  290. },
  291. // 修改密码
  292. go_m_repassword() {
  293. uni.navigateTo({
  294. url: "../../my/repassword/repassword"
  295. })
  296. },
  297. // 清除缓存
  298. clear_cache() {
  299. // uni.showLoading({
  300. // mask:true
  301. // })
  302. // setTimeout(()=>{
  303. // uni.hideLoading()
  304. // uni.showToast({
  305. // icon:"none",
  306. // title:"清除完成"
  307. // })
  308. // },1500)
  309. let that = this;
  310. plus.cache.calculate(function(size) {
  311. let sizeCache = parseInt(size);
  312. if (sizeCache == 0) {
  313. that.fileSizeString = "0B";
  314. } else if (sizeCache < 1024) {
  315. that.fileSizeString = sizeCache + "B";
  316. } else if (sizeCache < 1048576) {
  317. that.fileSizeString = (sizeCache / 1024).toFixed(2) + "K";
  318. } else if (sizeCache < 1073741824) {
  319. that.fileSizeString = (sizeCache / 1048576).toFixed(2) + "M";
  320. } else {
  321. that.fileSizeString = (sizeCache / 1073741824).toFixed(2) + "G";
  322. }
  323. console.log(sizeCache)
  324. });
  325. let os = plus.os.name;
  326. if (os == 'Android') {
  327. let main = plus.android.runtimeMainActivity();
  328. let sdRoot = main.getCacheDir();
  329. let files = plus.android.invoke(sdRoot, "listFiles");
  330. let len = files.length;
  331. for (let i = 0; i < len; i++) {
  332. let filePath = '' + files[i]; // 没有找到合适的方法获取路径,这样写可以转成文件路径
  333. plus.io.resolveLocalFileSystemURL(filePath, function(entry) {
  334. if (entry.isDirectory) {
  335. entry.removeRecursively(function(entry) { //递归删除其下的所有文件及子目录
  336. uni.showToast({
  337. title: '缓存清理完成',
  338. duration: 2000
  339. });
  340. that.getStorageSize(); // 重新计算缓存
  341. }, function(e) {
  342. console.log(e.message)
  343. });
  344. } else {
  345. entry.remove();
  346. }
  347. }, function(e) {
  348. console.log('文件路径读取失败')
  349. });
  350. }
  351. } else { // ios
  352. }
  353. },
  354. // 建议反馈
  355. go_feedback() {
  356. uni.navigateTo({
  357. url: "../../origanization/OA/h5/h5",
  358. success: (res) => {
  359. // 通过eventChannel向被打开页面传送数据
  360. res.eventChannel.emit('acceptDataFromOpenerPage', {
  361. url: 'http://oa_system.nxjiewei.com:8011/?m=ying&d=we&mnum=ndyybbug&show=we&hideheader=true',
  362. title: "建议反馈"
  363. })
  364. }
  365. })
  366. },
  367. // 更新日志
  368. go_update_log() {
  369. uni.navigateTo({
  370. url: "../../my/version_record/version_record"
  371. })
  372. },
  373. //查询员工积分
  374. get_staff_integral_query() {
  375. this.$api.staff_integral_query({
  376. staff_num: uni.getStorageSync('user').staff_num
  377. }).then((res) => {
  378. // console.log(res)
  379. this.total = res.data.content.data.integral_sum
  380. })
  381. },
  382. // 积分详情
  383. go_integral() {
  384. uni.navigateTo({
  385. url: "../../index/integral/integral?total=" + this.total
  386. })
  387. },
  388. // 获取当前位置
  389. get_downhole() {
  390. this.$p_api.peopleTotalNum({
  391. people_code: this.people_num,
  392. mine: ""
  393. }).then((res) => {
  394. // console.log(res)
  395. if (res.data.data.position == null) {
  396. if (this.people_num == "") {
  397. this.downhole.position = "请点击绑定定位卡"
  398. } else {
  399. this.downhole.position = "未在井下"
  400. }
  401. } else {
  402. this.downhole.position = res.data.data.data.position
  403. }
  404. this.downhole.h = res.data.data.hours
  405. this.downhole.m = res.data.data.minutes
  406. this.downhole.times = res.data.data.total
  407. })
  408. },
  409. go_downhole_statistics() {
  410. uni.navigateTo({
  411. url: "../../production/personnel_orientation/downhole_statistics/downhole_statistics?people_num=" +
  412. this.people_num + "&depart_name=" + this.user.section + "&name=" + this.user.name +
  413. "&mine=" + this.mine
  414. })
  415. },
  416. // 获取常用列表
  417. get_workflow_recently_used() {
  418. this.$api.workflow_recently_used({
  419. staff_num: this.user.staff_num
  420. }).then((res) => {
  421. // console.log(res.data.content.data)
  422. this.recently_used = res.data.content.data.list
  423. this.use.submit_count = res.data.content.data.submit_count
  424. })
  425. },
  426. go_OA(item) {
  427. uni.navigateTo({
  428. url: "../../origanization/OA/h5/h5",
  429. success: (res) => {
  430. // 通过eventChannel向被打开页面传送数据
  431. res.eventChannel.emit('acceptDataFromOpenerPage', {
  432. url: item.url,
  433. title: item.title
  434. })
  435. }
  436. })
  437. },
  438. // 下载二维码
  439. go_m_download() {
  440. uni.navigateTo({
  441. url: "../../my/download/download"
  442. })
  443. }
  444. }
  445. }
  446. </script>
  447. <style lang="scss">
  448. .top {
  449. z-index: -1;
  450. position: fixed;
  451. top: 1;
  452. left: 0;
  453. image {
  454. width: 750rpx;
  455. height: 746rpx;
  456. }
  457. }
  458. .content {
  459. width: 750rpx;
  460. .user {
  461. margin-bottom: 40rpx;
  462. box-sizing: border-box;
  463. padding-left: 25rpx;
  464. padding-top: 25rpx;
  465. display: flex;
  466. justify-content: space-between;
  467. align-items: center;
  468. .left {
  469. display: flex;
  470. align-items: center;
  471. .img {
  472. width: 130rpx;
  473. height: 130rpx;
  474. border-radius: 50%;
  475. background: #DCDCDC;
  476. border: 2rpx solid #FFFFFF;
  477. overflow: hidden;
  478. text-align: center;
  479. line-height: 130rpx;
  480. font-size: 56rpx;
  481. font-weight: 700;
  482. color: #FFFFFF;
  483. image {
  484. width: 100%;
  485. height: 100%;
  486. display: block;
  487. }
  488. .avatar {
  489. width: 100%;
  490. height: 100%;
  491. }
  492. }
  493. .info {
  494. margin-left: 20rpx;
  495. color: #fff;
  496. .name {
  497. font-size: 38rpx;
  498. font-weight: 700;
  499. }
  500. .section {
  501. margin-top: 20rpx;
  502. font-size: 24rpx;
  503. }
  504. }
  505. }
  506. .right {
  507. background-color: rgba(255, 255, 255, .3);
  508. border-radius: 25rpx 0rpx 0rpx 25rpx;
  509. padding: 5rpx 20rpx 5rpx 20rpx;
  510. .btn {
  511. display: flex;
  512. align-items: center;
  513. color: #FFFFFF;
  514. .icon {}
  515. .text {
  516. font-size: 24rpx;
  517. }
  518. }
  519. }
  520. }
  521. .section_1 {
  522. width: 749rpx;
  523. height: 220rpx;
  524. background-image: url(./icon/section_1.png);
  525. background-size: cover;
  526. background-repeat: no-repeat;
  527. box-sizing: border-box;
  528. padding: 10rpx 20rpx;
  529. .title {
  530. padding-left: 20rpx;
  531. height: 60rpx;
  532. line-height: 60rpx;
  533. font-size: 28rpx;
  534. color: #fff;
  535. border-bottom: 1rpx solid rgba(255, 255, 255, .5);
  536. }
  537. .box {
  538. display: flex;
  539. .item {
  540. width: 236rpx;
  541. text-align: center;
  542. height: 130rpx;
  543. border-right: 1rpx solid rgba(255, 255, 255, .5);
  544. color: #FFFFFF;
  545. display: flex;
  546. flex-direction: column;
  547. justify-content: center;
  548. .num {
  549. font-size: 44rpx;
  550. font-weight: 700;
  551. text {
  552. font-size: 24rpx;
  553. }
  554. }
  555. .tip {
  556. font-size: 24rpx;
  557. }
  558. }
  559. .item:last-child {
  560. border-right: none;
  561. }
  562. }
  563. }
  564. .section_2 {
  565. box-sizing: border-box;
  566. padding: 20rpx;
  567. display: flex;
  568. justify-content: space-between;
  569. .inner_1 {
  570. width: 510rpx;
  571. height: 220rpx;
  572. background-image: url(./icon/section_2_inner_1.png);
  573. background-size: 100% 100%;
  574. background-repeat: no-repeat;
  575. .title {
  576. display: flex;
  577. align-items: center;
  578. height: 70rpx;
  579. font-size: 28rpx;
  580. color: #fff;
  581. padding-left: 20rpx;
  582. border-bottom: 1rpx solid rgba(255, 255, 255, .5);
  583. .icon {
  584. image {
  585. width: 28rpx;
  586. height: 28rpx;
  587. display: block;
  588. }
  589. }
  590. .text {
  591. margin-left: 10rpx;
  592. font-size: 28rpx;
  593. }
  594. }
  595. .box {
  596. width: 510rpx;
  597. display: flex;
  598. flex-wrap: wrap;
  599. .item {
  600. width: 255rpx;
  601. height: 70rpx;
  602. display: flex;
  603. justify-content: space-between;
  604. align-items: center;
  605. color: #FFFFFF;
  606. box-sizing: border-box;
  607. padding: 0 10rpx;
  608. border-bottom: 1rpx solid rgba(255, 255, 255, .5);
  609. border-right: 1rpx solid rgba(255, 255, 255, .5);
  610. .name {
  611. width: 200rpx;
  612. //超过一行省略号
  613. overflow: hidden;
  614. white-space: nowrap;
  615. text-overflow: ellipsis;
  616. font-size: 28rpx;
  617. }
  618. .icon {}
  619. }
  620. .item:nth-child(2n) {
  621. border-right: none;
  622. }
  623. .item:nth-child(3) {
  624. border-bottom: none;
  625. }
  626. .item:nth-child(4) {
  627. border-bottom: none;
  628. }
  629. }
  630. }
  631. .inner_2 {
  632. margin-top: -4rpx;
  633. margin-right: -10rpx;
  634. width: 200rpx;
  635. height: 250rpx;
  636. background-image: url(./icon/section_2_inner_2.png);
  637. background-size: 100% 100%;
  638. background-repeat: no-repeat;
  639. color: #FFFFFF;
  640. text-align: center;
  641. .num {
  642. height: 140rpx;
  643. line-height: 140rpx;
  644. font-size: 44rpx;
  645. font-weight: 700;
  646. }
  647. .text {
  648. height: 50rpx;
  649. line-height: 50rpx;
  650. font-size: 34rpx;
  651. }
  652. }
  653. }
  654. .section_3 {
  655. margin: -15rpx auto 0;
  656. width: 710rpx;
  657. height: 220rpx;
  658. background-image: url(./icon/section_3.png);
  659. background-size: 100% 100%;
  660. background-repeat: no-repeat;
  661. .title {
  662. display: flex;
  663. align-items: center;
  664. height: 60rpx;
  665. font-size: 24rpx;
  666. color: #fff;
  667. padding-left: 20rpx;
  668. .icon {
  669. image {
  670. width: 28rpx;
  671. height: 28rpx;
  672. display: block;
  673. }
  674. }
  675. .text {
  676. margin-left: 10rpx;
  677. font-size: 28rpx;
  678. }
  679. }
  680. .box {
  681. display: flex;
  682. .item {
  683. width: 355rpx;
  684. text-align: center;
  685. height: 140rpx;
  686. color: #FFFFFF;
  687. display: flex;
  688. flex-direction: column;
  689. justify-content: center;
  690. .num {
  691. font-size: 44rpx;
  692. font-weight: 700;
  693. text {
  694. font-size: 24rpx;
  695. }
  696. }
  697. .tip {
  698. margin-top: 10rpx;
  699. font-size: 24rpx;
  700. }
  701. }
  702. }
  703. }
  704. .section_4 {
  705. margin: 25rpx auto 40rpx;
  706. width: 710rpx;
  707. background-color: #FFFFFF;
  708. box-shadow: 10rpx 10rpx 16rpx 6rpx rgba(0, 0, 0, 0.13);
  709. border-radius: 20rpx;
  710. .list {
  711. overflow: hidden;
  712. box-sizing: border-box;
  713. padding: 30rpx 0;
  714. .item {
  715. margin-right: 30rpx;
  716. margin-bottom: 30rpx;
  717. float: left;
  718. width: 155rpx;
  719. text-align: center;
  720. .icon {
  721. margin: 0 auto;
  722. width: 80rpx;
  723. height: 80rpx;
  724. border-radius: 50%;
  725. overflow: hidden;
  726. image {
  727. width: 80rpx;
  728. height: 80rpx;
  729. display: block;
  730. }
  731. }
  732. .text {
  733. font-size: 28rpx;
  734. color: #666666;
  735. }
  736. }
  737. .item:nth-child(4n) {
  738. margin-right: 0;
  739. }
  740. }
  741. }
  742. }
  743. </style>