home.vue 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741
  1. <!--
  2. * @Title:
  3. * @Description: 首页
  4. * @Author: swp
  5. * @Date: 2022-08-24 10:49:21
  6. * @LastEditors:
  7. * @LastEditTime: 2022-08-24 10:49:21
  8. -->
  9. <template>
  10. <view class="container">
  11. <!-- 导航栏 #3F9EFF-->
  12. <uni-nav-bar :fixed="true" backgroundColor="#f7f7f7" statusBar="false" height="75px">
  13. <block slot="left">
  14. <view class="view-flex-block-center">
  15. <image src="/static/images/logo_start.png"
  16. style="width: 100rpx;height: 100rpx;background: lightgray;border-radius: 50%;" mode="widthFix">
  17. </image>
  18. </view>
  19. </block>
  20. <view class="view-flex-inline">
  21. <uni-list style="background-color: #f7f7f7;" :border="false">
  22. <uni-list-item v-if="isLogin" :border="false" style="background-color: #f7f7f7;" showArrow
  23. :title="userName" :note="userNote" :clickable="true" @click="onUserInfoClick()" />
  24. <uni-list-item v-else :border="false" style="background-color: #f7f7f7;" showArrow title="登录/注册"
  25. note="快速登录 注册体验更多功能" :clickable="true" @click="onLoginClick()" />
  26. </uni-list>
  27. </view>
  28. <block slot="right">
  29. <view style="margin-right:0rpx" @click="onNoticeMoreClick">
  30. <uni-badge class="uni-badge-left-margin" absolute="rightTop" :is-dot="noticeDot" :text="noticeValue"
  31. size="small">
  32. <uni-icons class="input-uni-icon" type="email" size="24" color="#000000" />
  33. </uni-badge>
  34. </view>
  35. <view style="margin-right:10rpx;margin-left: 10px;" @click="onNoticeMoreClick">
  36. <uni-badge class="uni-badge-left-margin" absolute="rightTop" size="small">
  37. <uni-icons class="input-uni-icon" type="scan" size="24" color="#000000" />
  38. </uni-badge>
  39. </view>
  40. </block>
  41. </uni-nav-bar>
  42. <uni-card title="快捷操作">
  43. <view class="view-flex-inline">
  44. <!-- <uni-icons class="input-uni-icon" type="phone" size="18" color="coral" /> -->
  45. <text class="text-under-line" style="color: coral;font-size: 1rem;"
  46. @click="toShortcutCreateOrder">发起工单</text>
  47. <text class="text-under-line" style="color: coral;font-size: 1rem;margin-left: 40px;"
  48. @click="toShortcutCreateOrder">创建巡检保养计划</text>
  49. </view>
  50. </uni-card>
  51. <uni-card title="待办工单" :thumbnail="orderLogo">
  52. <uni-section title="新工单" type="line">
  53. <uni-list>
  54. <uni-list-item v-for="item in unconfirmOrderList" :key="item.id" showArrow clickable
  55. @click="toConfirm(item)" rightText="去接单">
  56. <template v-slot:body>
  57. <view class="list-item-block">
  58. <view class="line">
  59. <uni-icons type="personadd" size="18" color="lightblue" />
  60. <view class="text" style="width: 90%;color: gray;">
  61. 创建人: <span
  62. style="margin-left: 5px;color: cornflowerblue;">{{item.createOrderPersonName}}</span>
  63. </view>
  64. </view>
  65. <view class="line">
  66. <uni-icons type="calendar" size="18" color="lightblue" />
  67. <view class="text" style="width: 90%;color: gray;">
  68. 创建时间: <span
  69. style="margin-left: 5px;color: cornflowerblue;">{{item.createTime}}</span>
  70. </view>
  71. </view>
  72. <view class="line">
  73. <uni-icons type="help" size="18" color="lightblue" />
  74. <view class="text text-ellipsis" style="width: 90%;color: gray;">
  75. 问题描述: <span
  76. style="margin-left: 5px;color: cornflowerblue;">{{item.orderDesc}}</span>
  77. </view>
  78. </view>
  79. </view>
  80. </template>
  81. </uni-list-item>
  82. </uni-list>
  83. </uni-section>
  84. <uni-section title="已接工单" type="line">
  85. <uni-list>
  86. <uni-list-item v-for="item in todoOrderList" :key="item.id" showArrow clickable @click="toDo(item)"
  87. rightText="去处理">
  88. <template v-slot:body>
  89. <view class="list-item-block">
  90. <view class="line">
  91. <uni-icons type="personadd" size="18" color="lightblue" />
  92. <view class="text" style="width: 90%;color: gray;">
  93. 处理人: <span
  94. style="margin-left: 5px;color: cornflowerblue;">{{item.orderConfirmName}}</span>
  95. </view>
  96. </view>
  97. <view class="line">
  98. <uni-icons type="calendar" size="18" color="lightblue" />
  99. <view class="text" style="width: 90%;color: gray;">
  100. 完成时限: <span
  101. style="margin-left: 5px;color: cornflowerblue;">{{item.orderCompleteTime}}</span>
  102. </view>
  103. </view>
  104. <!-- <view class="line">
  105. <uni-icons type="help" size="18" color="lightblue" />
  106. <view class="text text-ellipsis" style="width: 90%;color: gray;">
  107. 问题描述: <span
  108. style="margin-left: 5px;color: cornflowerblue;">{{item.orderDesc}}</span>
  109. </view>
  110. </view> -->
  111. </view>
  112. </template>
  113. </uni-list-item>
  114. </uni-list>
  115. </uni-section>
  116. <uni-section title="工单完结审批" type="line">
  117. <uni-list>
  118. <uni-list-item v-for="item in closeApproveOrderList" :key="item.id" showArrow clickable
  119. @click="toCloseApprove(item)" rightText="去审批">
  120. <template v-slot:body>
  121. <view class="list-item-block">
  122. <view class="line">
  123. <uni-icons type="personadd" size="18" color="lightblue" />
  124. <view class="text" style="width: 90%;color: gray;">
  125. 填报人: <span
  126. style="margin-left: 5px;color: cornflowerblue;">{{item.processorName}}</span>
  127. </view>
  128. </view>
  129. <view class="line">
  130. <uni-icons type="calendar" size="18" color="lightblue" />
  131. <view class="text" style="width: 90%;color: gray;">
  132. 填报时间: <span
  133. style="margin-left: 5px;color: cornflowerblue;">{{item.orderProcessTime}}</span>
  134. </view>
  135. </view>
  136. <view class="line">
  137. <uni-icons type="help" size="18" color="lightblue" />
  138. <view class="text text-ellipsis" style="width: 90%;color: gray;">
  139. 反馈意见: <span
  140. style="margin-left: 5px;color: cornflowerblue;">{{item.processDesc}}</span>
  141. </view>
  142. </view>
  143. </view>
  144. </template>
  145. </uni-list-item>
  146. </uni-list>
  147. </uni-section>
  148. </uni-card>
  149. <uni-card title="巡检保养任务" :thumbnail="checkLogo">
  150. <!-- <uni-list>
  151. <uni-list-item showArrow title="1-10号门禁查看" note="2024年3月1日 12时10分" :clickable="true" rightText="去处理" />
  152. </uni-list> -->
  153. </uni-card>
  154. <uni-card :isFull="true">
  155. <swiper style="height: 200px;" circular :indicator-dots="false" :autoplay="true" :interval="2000"
  156. :duration="500">
  157. <swiper-item style="height: 200px;line-height: 300rpx;">
  158. <view style="background-color: lavenderblush;">A</view>
  159. </swiper-item>
  160. <swiper-item style="height: 200px;line-height: 300rpx;">
  161. <view style="background-color: darkcyan;">B</view>
  162. </swiper-item>
  163. <swiper-item style="height: 200px;line-height: 300rpx;">
  164. <view style="background-color: darkgoldenrod;">C</view>
  165. </swiper-item>
  166. </swiper>
  167. </uni-card>
  168. </view>
  169. </template>
  170. <script>
  171. import
  172. navBtns
  173. from "@/api/home.js";
  174. import {
  175. role
  176. } from "@/api/role.js";
  177. import {
  178. oss
  179. } from '@/common/setting';
  180. import http from '@/http/api.js';
  181. export default {
  182. components: {},
  183. data() {
  184. return {
  185. title: '泰山电教维护服务',
  186. permission: {
  187. 'admin': false,
  188. 'orgAdmin': false,
  189. 'companyAdmin': false,
  190. 'companyServciePerson': false,
  191. 'yjServicePerson': false,
  192. },
  193. userLoginStatus: 0,
  194. userName: 'guest',
  195. userNote: '泰山云服务已服务您180天',
  196. postName: '',
  197. currentRole: '',
  198. current: 0,
  199. navButton: [],
  200. navButtonIndex: [],
  201. //more/loading/noMore
  202. loadMoreStatus: "noMore",
  203. timer: false,
  204. pageSize: 10,
  205. pageCurrent: 1,
  206. total: 0,
  207. noticeDot: false,
  208. noticeValue: 0,
  209. unconfirmOrderCount: 0,
  210. unconfirmOrderList: [],
  211. todoOrderCount: 0,
  212. todoOrderList: [],
  213. costsApproveOrderCount: 0,
  214. costsApproveOrderList: [],
  215. closeApproveOrderCount: 0,
  216. closeApproveOrderList: [],
  217. orderLogo: "/static/images/logo_pc.png",
  218. checkLogo: "/static/images/home/inspection.png",
  219. };
  220. },
  221. computed: {},
  222. onLoad() {
  223. console.log(JSON.stringify(this.userInfo))
  224. // this.permission.admin = false;
  225. // this.permission.orgAdmin = false;
  226. // this.permission.companyAdmin = false;
  227. // this.permission.companyServciePerson = false;
  228. // this.permission.yjServicePerson = false;
  229. // this.navButton = navBtns.navButtons;
  230. // if (this.userInfo.role_name === role.admin) {
  231. // this.permission.admin = true;
  232. // this.navButtonIndex = navBtns.sysAdminNavButton;
  233. // this.currentRole = role.admin;
  234. // } else if (this.userInfo.role_name === role.orgAdmin) {
  235. // this.permission.orgAdmin = true;
  236. // this.currentRole = role.orgAdmin;
  237. // this.navButtonIndex = navBtns.orgAdminNavButton;
  238. // } else if (this.userInfo.role_name === role.companyAdmin) {
  239. // this.permission.companyAdmin = true;
  240. // this.currentRole = role.companyAdmin;
  241. // this.navButtonIndex = navBtns.companyAdminNavButton;
  242. // } else if (this.userInfo.role_name === role.companyServciePerson) {
  243. // this.permission.companyServciePerson = true;
  244. // this.currentRole = role.companyServciePerson;
  245. // this.navButtonIndex = navBtns.companyServicePersonNavButton;
  246. // if (this.userInfo.post_id == '1706859505948098562') {
  247. // this.postName = "engineer";
  248. // } else if (this.userInfo.post_id == '1730535542909140993') {
  249. // this.postName = "servicePerson";
  250. // }
  251. // }
  252. // if (this.$u.func.checkLogin()) {
  253. // console.log("timer start +++++++ ")
  254. // this.timer = true;
  255. // setTimeout(this.timeCall, 10);
  256. // }
  257. // console.log(JSON.stringify(this.isLogin))
  258. // if (this.$u.func.checkLogin()) {} else {
  259. // this.$u.func.logout();
  260. // }
  261. if (this.$u.func.checkLogin()) {
  262. try {
  263. let loginTime = uni.getStorageSync("loginTime");
  264. if (loginTime) {
  265. let dt = new Date();
  266. let time = dt.getTime();
  267. let expires = this.userInfo.expires_in;
  268. if (expires) {
  269. if ((time - loginTime) / 1000 > (expires - 60)) {
  270. this.$u.func.logout();
  271. }
  272. } else {
  273. this.$u.func.logout();
  274. }
  275. } else {
  276. this.$u.func.logout();
  277. }
  278. } catch (e) {
  279. this.$u.func.logout();
  280. }
  281. } else {
  282. this.$u.func.logout();
  283. }
  284. if (this.isLogin) {
  285. this.getTodoOrderList();
  286. this.getTodoOrderConfirmList();
  287. }
  288. },
  289. onUnload() {
  290. //this.timer = false;
  291. },
  292. onReady() {
  293. if (this.$u.func.checkLogin()) {
  294. } else {
  295. // this.$u.func.logout();
  296. }
  297. },
  298. onShow() {
  299. // if (this.$u.func.checkLogin()) {
  300. // if (this.userInfo.role_name !== this.currentRole) {
  301. // this.permission.admin = false;
  302. // this.permission.orgAdmin = false;
  303. // this.permission.companyAdmin = false;
  304. // this.permission.companyServciePerson = false;
  305. // this.permission.yjServicePerson = false;
  306. // this.navButton = navBtns.navButtons;
  307. // if (this.userInfo.role_name === role.admin) {
  308. // this.permission.admin = true;
  309. // this.navButtonIndex = navBtns.sysAdminNavButton;
  310. // this.currentRole = role.admin;
  311. // } else if (this.userInfo.role_name === role.orgAdmin) {
  312. // this.permission.orgAdmin = true;
  313. // this.currentRole = role.orgAdmin;
  314. // this.navButtonIndex = navBtns.orgAdminNavButton;
  315. // } else if (this.userInfo.role_name === role.companyAdmin) {
  316. // this.permission.companyAdmin = true;
  317. // this.currentRole = role.companyAdmin;
  318. // this.navButtonIndex = navBtns.companyAdminNavButton;
  319. // } else if (this.userInfo.role_name === role.companyServciePerson) {
  320. // this.permission.companyServciePerson = true;
  321. // this.currentRole = role.companyServciePerson;
  322. // this.navButtonIndex = navBtns.companyServicePersonNavButton;
  323. // if (this.userInfo.post_id == '1706859505948098562') {
  324. // this.postName = "engineer";
  325. // } else if (this.userInfo.post_id == '1730535542909140993') {
  326. // this.postName = "servicePerson";
  327. // }
  328. // }
  329. // }
  330. // if (this.timer == false) {
  331. // this.timer = true;
  332. // setTimeout(this.timeCall, 10);
  333. // }
  334. // } else {
  335. // this.$u.func.logout();
  336. // }
  337. },
  338. onHide() {
  339. //this.timer = false;
  340. },
  341. methods: {
  342. toOss(path) {
  343. return oss + path;
  344. },
  345. onLoginClick() {
  346. console.log("onLoginClick")
  347. var url = '/pages/login/login-account';
  348. uni.navigateTo({
  349. url: url
  350. })
  351. },
  352. onUserInfoClick() {
  353. console.log("onUserInfoClick")
  354. var url = '/pages/user/center-simple';
  355. uni.navigateTo({
  356. url: url
  357. })
  358. },
  359. timeCall() {
  360. if (this.timer == true) {
  361. this.getHomeInfo();
  362. setTimeout(this.timeCall, 10000);
  363. }
  364. },
  365. toConfirm(item) {
  366. var url = '/pages/check-order/orderconfirm?orderType=' + item.orderType + '&orderId=' + item.id;
  367. uni.navigateTo({
  368. url: url
  369. })
  370. },
  371. toDo(item) {
  372. var url = '/pages/check-order/orderprocessreport?orderId=' + item.id + '&skipPage=1';
  373. uni.navigateTo({
  374. url: url
  375. })
  376. // var url = '/pages/check-order/orderconfirm?orderType=' + item.orderType + '&orderId=' + item.id;
  377. // uni.navigateTo({
  378. // url: url
  379. // })
  380. },
  381. toCloseApprove(item) {
  382. var url = '/pages/check-order/orderconfirm?orderType=' + item.orderType + '&orderId=' + item.id;
  383. uni.navigateTo({
  384. url: url
  385. })
  386. },
  387. toOrderProcess(item) {
  388. var url = '/pages/check-order/orderprocessreport?skipPage=1&costsApprove=2&orderType=' + item.orderType +
  389. '&orderProcessId=' + item
  390. .orderProcessId + '&orderId=' + item.id;
  391. uni.navigateTo({
  392. url: url
  393. })
  394. },
  395. toOrderCostsApprove(item) {
  396. var url = '/pages/check-order/ordercostsapprove?orderType=' + item.orderType + '&orderId=' + item.id;
  397. uni.navigateTo({
  398. url: url
  399. })
  400. },
  401. toOrderCloseApprove(item) {
  402. console.log("toOrderCloseApprove")
  403. var url = '/pages/check-order/ordercloseapprove?orderType=' + item.orderType + '&orderId=' + item.id;
  404. uni.navigateTo({
  405. url: url
  406. })
  407. },
  408. toShortcutCreateOrder() {
  409. let url = '/pages/check-order/orderadd';
  410. uni.navigateTo({
  411. url: url
  412. })
  413. },
  414. onNoticeMoreClick() {
  415. uni.navigateTo({
  416. url: '/pages/news/noticelist'
  417. })
  418. },
  419. getHomeInfo() {
  420. this.getTodoOrderConfirmList();
  421. this.getTodoOrderList();
  422. //this.getTodoCostsApproveOrderList();
  423. this.getTodoCloseOrderList();
  424. },
  425. getTodoOrderConfirmList() {
  426. let that = this;
  427. let postData = {};
  428. http.request({
  429. url: '/galaxy-business/order/todo/confirm/list',
  430. method: 'GET',
  431. data: postData,
  432. }).then(res => {
  433. console.log(JSON.stringify(res))
  434. that.unconfirmOrderCount = 0;
  435. if (res.data != null) {
  436. that.unconfirmOrderCount = res.data.length;
  437. that.unconfirmOrderList = res.data;
  438. }
  439. }).catch(err => {
  440. console.log(JOSN.stringify(err))
  441. })
  442. },
  443. getTodoOrderList() {
  444. let that = this;
  445. let postData = {};
  446. http.request({
  447. url: '/galaxy-business/order/todo/list',
  448. method: 'GET',
  449. data: postData,
  450. }).then(res => {
  451. console.log(JSON.stringify(res))
  452. that.todoOrderCount = 0;
  453. if (res.data != null) {
  454. that.todoOrderCount = res.data.length;
  455. that.todoOrderList = res.data;
  456. }
  457. }).catch(err => {
  458. console.log(JOSN.stringify(err))
  459. })
  460. },
  461. getTodoCostsApproveOrderList() {
  462. let that = this;
  463. let postData = {};
  464. http.request({
  465. url: '/galaxy-business/order/todo/costsapprove/list',
  466. method: 'GET',
  467. data: postData,
  468. }).then(res => {
  469. that.costsApproveOrderCount = 0;
  470. if (res.data != null) {
  471. that.costsApproveOrderCount = res.data.length;
  472. that.costsApproveOrderList = res.data;
  473. }
  474. }).catch(err => {
  475. console.log(JOSN.stringify(err))
  476. })
  477. },
  478. getTodoCloseOrderList() {
  479. let that = this;
  480. let postData = {};
  481. http.request({
  482. url: '/galaxy-business/order/todo/closeapprove/list',
  483. method: 'GET',
  484. data: postData,
  485. }).then(res => {
  486. that.closeApproveOrderCount = 0;
  487. if (res.data != null) {
  488. that.closeApproveOrderCount = res.data.length;
  489. that.closeApproveOrderList = res.data;
  490. }
  491. }).catch(err => {
  492. console.log(JOSN.stringify(err))
  493. })
  494. },
  495. }
  496. };
  497. </script>
  498. <style lang="scss" scoped>
  499. $nav-height: 75px;
  500. .user-box {
  501. display: flex;
  502. justify-content: space-between;
  503. padding: 0 20rpx 0 64rpx;
  504. margin-top: 36rpx;
  505. .left {
  506. display: flex;
  507. flex-direction: column;
  508. align-items: center;
  509. .avatar {
  510. width: 128rpx;
  511. height: 128rpx;
  512. background: #ffffff;
  513. border-radius: 50%;
  514. }
  515. .user-name {
  516. margin-top: 20rpx;
  517. font-size: 36rpx;
  518. font-family: Source Han Sans CN;
  519. font-weight: 500;
  520. color: #ffffff;
  521. }
  522. .tag {
  523. margin-top: 20rpx;
  524. display: flex;
  525. justify-content: center;
  526. align-items: center;
  527. padding: 5rpx 16rpx;
  528. border: 1px solid #f5f5f5;
  529. border-radius: 7rpx;
  530. font-size: 19rpx;
  531. font-family: Source Han Sans CN;
  532. font-weight: 300;
  533. color: #ffffff;
  534. }
  535. }
  536. .edit-btn {
  537. margin-top: 20rpx;
  538. margin-bottom: 10px;
  539. flex-shrink: 0;
  540. display: flex;
  541. justify-content: center;
  542. align-items: center;
  543. width: 165rpx;
  544. height: 54rpx;
  545. border: 2rpx solid #f5f5f5;
  546. border-radius: 11rpx;
  547. font-size: 27rpx;
  548. font-family: Source Han Sans CN;
  549. font-weight: 400;
  550. color: #ffffff;
  551. }
  552. }
  553. .decoration {
  554. width: 6px;
  555. height: 6px;
  556. margin-right: 4px;
  557. border-radius: 50%;
  558. background-color: cadetblue;
  559. }
  560. .input-uni-icon {
  561. line-height: $nav-height;
  562. }
  563. .item-block {
  564. display: flex;
  565. flex-direction: column;
  566. justify-content: flex-start;
  567. width: 100%;
  568. }
  569. .line {
  570. display: flex;
  571. flex-direction: row;
  572. justify-content: flex-start;
  573. width: 100%;
  574. }
  575. .line .block {
  576. display: flex;
  577. flex-direction: column;
  578. justify-content: center;
  579. }
  580. .line-end {
  581. display: flex;
  582. flex-direction: row;
  583. justify-content: flex-end;
  584. width: 100%;
  585. }
  586. .line-end .block {
  587. display: flex;
  588. flex-direction: column;
  589. justify-content: center;
  590. }
  591. .line-center {
  592. display: flex;
  593. flex-direction: row;
  594. justify-content: center;
  595. width: 100%;
  596. height: 100%;
  597. }
  598. .line-center .block {
  599. display: flex;
  600. flex-direction: column;
  601. justify-content: center;
  602. }
  603. .rtu-name {
  604. margin-left: 5rpx;
  605. font-size: 0.7rem;
  606. font-weight: bold;
  607. }
  608. .rtu-code {
  609. margin-left: 5rpx;
  610. font-size: 0.6rem;
  611. color: gray;
  612. }
  613. .item-text-line {
  614. width: 100%;
  615. display: flex;
  616. flex-direction: row;
  617. align-items: flex-start;
  618. padding-left: 0px;
  619. padding-right: 0px;
  620. .block {
  621. height: 100%;
  622. display: flex;
  623. flex-direction: column;
  624. justify-content: center;
  625. align-items: center;
  626. }
  627. .item-title {
  628. font-size: 0.7rem;
  629. }
  630. .item-text {
  631. padding-left: 2px;
  632. padding-right: 5px;
  633. font-size: 0.7rem;
  634. }
  635. .item-text-ell {
  636. width: 100%;
  637. overflow: hidden;
  638. font-size: 0.7rem;
  639. white-space: nowrap;
  640. text-overflow: ellipsis;
  641. }
  642. .item-number {
  643. font-size: 0.7rem;
  644. margin-left: 2px;
  645. margin-right: 5px;
  646. }
  647. }
  648. .item-title-image {
  649. /* #ifndef APP-NVUE */
  650. display: block;
  651. /* #endif */
  652. margin-right: 5px;
  653. width: 20px;
  654. height: 20px;
  655. border-radius: 50%;
  656. }
  657. .uni-badge-left-margin {
  658. margin-left: 0px;
  659. }
  660. .logo {
  661. flex-shrink: 0;
  662. width: 80rpx;
  663. height: auto;
  664. }
  665. .container {
  666. // background-color: #f7f7f7;
  667. // min-height: 100vh;
  668. overflow: hidden;
  669. padding: 0 0 75rpx;
  670. }
  671. .nav {
  672. margin: 0rpx 0;
  673. box-sizing: border-box;
  674. padding: 0 10rpx;
  675. &-item {
  676. width: 100%;
  677. box-sizing: border-box;
  678. display: flex;
  679. flex-direction: column;
  680. align-items: center;
  681. justify-content: space-between;
  682. height: 130rpx;
  683. &-img {
  684. width: 80rpx;
  685. height: 80rpx;
  686. }
  687. &-name {
  688. font-size: 0.7rem;
  689. font-family: PingFang SC;
  690. font-weight: 500;
  691. color: #585b61;
  692. }
  693. }
  694. }
  695. </style>