my.vue 19 KB

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