stat.vue 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957
  1. <template>
  2. <view class="container">
  3. <view class="placeholder"></view>
  4. <!-- 顶部分段器区域 -->
  5. <view class="control" v-if="flag">
  6. <uni-segmented-control :current="current" :values="items" styleType="text" @clickItem="onClickItem"
  7. activeColor="#0082FC"></uni-segmented-control>
  8. </view>
  9. <!-- 头部月份区域 -->
  10. <view class="header">
  11. <view class="title">
  12. <view class="month">
  13. {{month}}月汇总
  14. </view>
  15. <view class="right" @click="goToDetail">
  16. <img src="../static/imgs/right.png" alt="">
  17. </view>
  18. </view>
  19. <view class="state">
  20. <view class="err">
  21. <view class="number">
  22. {{fail_count}}
  23. </view>
  24. <view class="mes">
  25. 异常次数(次)
  26. </view>
  27. </view>
  28. <view class="success">
  29. <view class="number">
  30. {{success_count}}
  31. </view>
  32. <view class="mes">
  33. 打卡成功(次)
  34. </view>
  35. </view>
  36. </view>
  37. </view>
  38. <!-- 日历区域 -->
  39. <view class="calendar">
  40. <view class="calendar_title">
  41. 每日记录
  42. <span>({{month}}月)</span>
  43. </view>
  44. <view class="calendar_body">
  45. <uni-calendar :showMonth="false" @change="change" :selected="selectList" />
  46. </view>
  47. <view class="calendar_foot" v-if="current==1">
  48. <!-- 每一条记录区域 -->
  49. <view class="foot_item" v-for="item in list2" :key="item.id">
  50. <view>
  51. 规则:{{item.ruleName}} {{item.timeRange}}
  52. </view>
  53. <view class="box">
  54. <view class="circular" v-if="item.finish"></view>
  55. <view class="circular color" v-else></view>
  56. {{item.finish?"已打卡":"未打卡"}}
  57. <span v-if="item.finish">{{format_time(item.updateTime)}}</span>
  58. </view>
  59. </view>
  60. </view>
  61. <!-- 环形图区域 -->
  62. <view class="progress" v-if="current==0">
  63. <view class="chart">
  64. <progressBar v-if="showBar" :progress_txt="progress_txt" :progress_total="progress_total" />
  65. </view>
  66. <view class="look" @click="handleLookDetail">
  67. <view class="info">
  68. 查看明细
  69. </view>
  70. <img src="../static/imgs/right.png">
  71. </view>
  72. </view>
  73. </view>
  74. <!-- 异常人员名单区域 -->
  75. <view class="errPeople" v-if="current==0">
  76. <!-- 标题区域 -->
  77. <view class="e_header">
  78. <view class="left">
  79. 异常人员名单
  80. </view>
  81. <view class="right">
  82. <view class="icon" @click="handleInform">
  83. <img src="../static/imgs/notice.png">
  84. </view>
  85. <view class="info" @click="handleInform">
  86. 通知
  87. </view>
  88. </view>
  89. </view>
  90. <!-- 选择时间区域 -->
  91. <view class="e_calendar">
  92. <!-- 双左箭头区域 -->
  93. <view class="double" @click="handleDoubleLeft">
  94. <img src="../static/imgs/double_left.png">
  95. </view>
  96. <!-- 左箭头区域区域 -->
  97. <view class="single" @click="handleLeft">
  98. <img src="../static/imgs/left.png">
  99. </view>
  100. <!-- 时间区域 -->
  101. <view class="time">
  102. {{year}}-{{comMonth}}
  103. </view>
  104. <!-- 双右箭头区域 -->
  105. <view class="single2" @click="handleRight">
  106. <img src="../static/imgs/right2.png">
  107. </view>
  108. <!-- 右箭头区域 -->
  109. <view class="double" @click="handleDoubleRight">
  110. <img src="../static/imgs/double_right.png">
  111. </view>
  112. </view>
  113. <view class="e_list" v-if="errList.length">
  114. <view class="e_box" v-for="item in errList" :key="item.userId">
  115. <view class="e_img">
  116. <img
  117. :src="item.headImage||'https://gimg2.baidu.com/image_search/src=http%3A%2F%2Finews.gtimg.com%2Fnewsapp_bt%2F0%2F13579194276%2F1000&refer=http%3A%2F%2Finews.gtimg.com&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=auto?sec=1671596163&t=52c9def84f0fa7832bfc5824364917e0'">
  118. </view>
  119. <view class="e_name">
  120. {{item.name}}
  121. </view>
  122. <view class="e_msg">
  123. 未打卡{{item.times}}次
  124. </view>
  125. </view>
  126. </view>
  127. <view class="e_list2" v-else>
  128. <img src="../static/imgs/nodata.png">
  129. <view class="info">
  130. 暂无数据
  131. </view>
  132. </view>
  133. </view>
  134. <!-- 底部导航栏区域 -->
  135. <cover-view class="tab_bar">
  136. <cover-view class="tab_box" @click="handleGoPage('/pagesClockIn/home/home')">
  137. <cover-image class="tab_img" v-if="pageUrl=='pagesClockIn/home/home'"
  138. src="../static/imgs/home_active.png">
  139. </cover-image>
  140. <cover-image class="tab_img" v-else src="../static/imgs/home.png"></cover-image>
  141. <cover-view v-if="pageUrl=='pagesClockIn/home/home'" class="tab_title_active">
  142. 首页
  143. </cover-view>
  144. <cover-view v-else class="tab_title">
  145. 首页
  146. </cover-view>
  147. </cover-view>
  148. <cover-view class="tab_box" @click="handleGoPage('/pagesClockIn/stat/stat')">
  149. <cover-image class="tab_img" v-if="pageUrl=='pagesClockIn/stat/stat'"
  150. src="../static/imgs/stat_active.png">
  151. </cover-image>
  152. <cover-image class="tab_img" v-else src="../static/imgs/stat.png"></cover-image>
  153. <cover-view v-if="pageUrl=='pagesClockIn/stat/stat'" class="tab_title_active">
  154. 统计
  155. </cover-view>
  156. <cover-view v-else class="tab_title">
  157. 统计
  158. </cover-view>
  159. </cover-view>
  160. <cover-view v-if="flag" class="tab_box" @click="handleGoPage('/pagesClockIn/my/my')">
  161. <cover-image class="tab_img" v-if="pageUrl=='pagesClockIn/my/my'" src="../static/imgs/my_active.png">
  162. </cover-image>
  163. <cover-image class="tab_img" v-else src="../static/imgs/my.png"></cover-image>
  164. <cover-view v-if="pageUrl=='pagesClockIn/my/my'" class="tab_title_active">
  165. 我的
  166. </cover-view>
  167. <cover-view v-else class="tab_title">
  168. 我的
  169. </cover-view>
  170. </cover-view>
  171. </cover-view>
  172. </view>
  173. </template>
  174. <script>
  175. import progressBar from '../components/chocolate-progress-bar/chocolate-progress-bar.vue'
  176. export default {
  177. components: {
  178. progressBar
  179. },
  180. data() {
  181. return {
  182. // 是否为管理员或子管理员标识
  183. flag: false,
  184. // 有标记点的数组日期
  185. selectList: [
  186. // {
  187. // date: "2022-12-20",
  188. // info: '打卡'
  189. // },
  190. // {
  191. // date: "2022-12-21",
  192. // info: '未打卡',
  193. // data: {
  194. // custom: '自定义信息',
  195. // name: '自定义消息头'
  196. // }
  197. // }
  198. ],
  199. // 个人考勤规则列表
  200. list2: [],
  201. // 分段器数组
  202. items: ['团队统计', '我的统计'],
  203. // 分段器默认索引
  204. current: 1,
  205. // 当前年份
  206. year: null,
  207. // 当前月份
  208. month: null,
  209. // 当前天数
  210. day: null,
  211. // 异常人员名单数组
  212. errList: [],
  213. // 环形图完成数量
  214. progress_txt: null,
  215. // 环形图总数
  216. progress_total: null,
  217. // 当前时间
  218. nowTime: "",
  219. // 打卡异常次数
  220. fail_count: 0,
  221. // 打卡成功次数
  222. success_count: 0,
  223. // 异常人员名单当前页
  224. page: 1,
  225. // 异常人员名单总条数
  226. total: 0,
  227. // 个人考勤规则列表当前页
  228. page_my: 1,
  229. // 个人考勤规则列表总条数
  230. total_my: 0,
  231. // 环形图显示隐藏控制
  232. showBar: false,
  233. // 当前页面的路由地址
  234. pageUrl: ""
  235. };
  236. },
  237. onLoad() {
  238. this.getTime()
  239. },
  240. onShow() {
  241. this.getPageUrl()
  242. let flag = uni.getStorageSync("manager")
  243. let flag2 = uni.getStorageSync("sub-administrator")
  244. if (flag || flag2) {
  245. this.flag = true
  246. } else {
  247. this.flag = false
  248. }
  249. if (this.flag) {
  250. this.current = 0
  251. this.getMonthTimes_team()
  252. this.getProportion()
  253. this.getErrList()
  254. } else {
  255. this.current = 1
  256. this.getMonthTimes()
  257. this.getRulesList()
  258. }
  259. },
  260. computed: {
  261. comMonth() {
  262. if (this.month) {
  263. let month = this.month < 10 ? '0' + this.month : this.month
  264. return month
  265. }
  266. },
  267. },
  268. watch: {
  269. progress_txt() {
  270. this.showBar = false
  271. setTimeout(() => {
  272. this.showBar = true
  273. }, 10)
  274. },
  275. progress_total() {
  276. this.showBar = false
  277. setTimeout(() => {
  278. this.showBar = true
  279. }, 10)
  280. },
  281. },
  282. onReachBottom() {
  283. if (this.current == 0) {
  284. if (this.errList.length < this.total) {
  285. this.page++
  286. this.getErrList()
  287. } else {
  288. uni.showToast({
  289. title: "没有更多数据了",
  290. icon: 'none'
  291. })
  292. }
  293. } else {
  294. if (this.list2.length < this.total_my) {
  295. this.page_my++
  296. this.getRulesList()
  297. } else {
  298. uni.showToast({
  299. title: "没有更多数据了",
  300. icon: 'none'
  301. })
  302. }
  303. }
  304. },
  305. methods: {
  306. getPageUrl() {
  307. // 获取当前打开过的页面路由数组
  308. let routes = getCurrentPages();
  309. // 获取当前页面路由,也就是最后一个打开的页面路由
  310. let curRoute = routes[routes.length - 1].route
  311. this.pageUrl = curRoute
  312. },
  313. handleGoPage(url) {
  314. // console.log(url);
  315. uni.redirectTo({
  316. url
  317. })
  318. },
  319. // 获取当前年 月 日
  320. getTime() {
  321. let date = new Date()
  322. let year = date.getFullYear()
  323. let month = date.getMonth() + 1
  324. let day = date.getDate() < 10 ? '0' + date.getDate() : date.getDate()
  325. this.year = year
  326. this.month = month
  327. this.day = day
  328. this.nowTime = year + "-" + this.comMonth + "-" + day + " " + "00:00:00"
  329. },
  330. // 获取我的月打卡次数
  331. async getMonthTimes() {
  332. let res = await this.$myRequest_clockIn({
  333. url: "/attendance/api/sign/check/in/month/times",
  334. data: {
  335. time: this.nowTime
  336. }
  337. })
  338. // console.log(res);
  339. if (res.code == 200) {
  340. this.fail_count = res.data.fail
  341. this.success_count = res.data.success
  342. }
  343. },
  344. // 获取我的团队月打卡次数
  345. async getMonthTimes_team() {
  346. let res = await this.$myRequest_clockIn({
  347. url: "/attendance/api/sign/check/in/month/times/team",
  348. data: {
  349. time: this.nowTime
  350. }
  351. })
  352. // console.log(res);
  353. if (res.code == 200) {
  354. this.fail_count = res.data.fail
  355. this.success_count = res.data.success
  356. }
  357. },
  358. // 获取团队打卡每日完成占比
  359. async getProportion() {
  360. let res = await this.$myRequest_clockIn({
  361. url: "/attendance/api/sign/check/in/proportion",
  362. data: {
  363. time: this.nowTime
  364. }
  365. })
  366. // console.log(res);
  367. if (res.code == 200) {
  368. this.progress_txt = res.data.complete
  369. this.progress_total = res.data.total
  370. }
  371. },
  372. // 获取打卡异常人员名单
  373. async getErrList() {
  374. let res = await this.$myRequest_clockIn({
  375. url: "/attendance/api/sign/check/in/abnormal",
  376. data: {
  377. time: this.nowTime,
  378. page: this.page,
  379. size: 9
  380. }
  381. })
  382. // console.log(res);
  383. if (res.code == 200) {
  384. this.total = res.data.total
  385. this.errList = [...this.errList, ...res.data.list]
  386. }
  387. },
  388. // 获取打卡规则列表
  389. async getRulesList() {
  390. let name = uni.getStorageSync("userInfo").username
  391. let res = await this.$myRequest_clockIn({
  392. url: "/attendance/api/sign/check/in/list",
  393. data: {
  394. name,
  395. page: this.page_my,
  396. updateTimeBegin: this.nowTime
  397. }
  398. })
  399. // console.log(res);
  400. if (res.code == 200) {
  401. this.list2 = [...this.list2, ...res.data.list]
  402. this.total_my = res.data.total
  403. }
  404. },
  405. // 点击日历日期回调
  406. change(e) {
  407. // console.log('change 返回:', e.fulldate)
  408. this.nowTime = e.fulldate + " " + "00:00:00"
  409. if (this.current == 0) {
  410. this.getProportion()
  411. } else {
  412. this.list2 = []
  413. this.page_my = 1
  414. this.getRulesList()
  415. }
  416. },
  417. // 分段器点击回调
  418. onClickItem(e) {
  419. this.fail_count = ""
  420. this.success_count = ""
  421. this.list2 = []
  422. this.errList = []
  423. // console.log(e.currentIndex);
  424. this.current = e.currentIndex
  425. if (e.currentIndex == 0) {
  426. this.getMonthTimes_team()
  427. this.getProportion()
  428. this.getErrList()
  429. } else {
  430. this.getMonthTimes()
  431. this.getRulesList()
  432. }
  433. },
  434. // 点击通知回调
  435. handleInform() {
  436. uni.showModal({
  437. title: '提示',
  438. content: `当前列表中有 ${this.total} 位异常人员,确定需要全部通知吗?`,
  439. success: (res) => {
  440. if (res.confirm) {
  441. } else if (res.cancel) {
  442. }
  443. }
  444. });
  445. },
  446. // 点击查看明细回调
  447. handleLookDetail() {
  448. // console.log(this.nowTime);
  449. uni.navigateTo({
  450. url: `/pagesClockIn/particulars/particulars?nowTime_day=${this.nowTime}&type=1`
  451. })
  452. },
  453. // 跳转统计详情页面
  454. goToDetail() {
  455. if (this.current == 1) {
  456. uni.navigateTo({
  457. url: `/pagesClockIn/statDetail/statDetail?month=${this.month}`
  458. })
  459. } else {
  460. uni.navigateTo({
  461. url: "/pagesClockIn/particulars/particulars?type=2"
  462. })
  463. }
  464. },
  465. // 往后选择年份回调
  466. handleDoubleLeft() {
  467. if (this.year <= 2000) {
  468. uni.showToast({
  469. title: "不能选择2000年之前",
  470. icon: 'none'
  471. })
  472. } else {
  473. this.year -= 1
  474. this.nowTime = this.year + "-" + this.comMonth + "-" + this.day + " " + "00:00:00"
  475. this.page = 1
  476. this.errList = []
  477. this.getErrList()
  478. }
  479. },
  480. // 往前选择年份回调
  481. handleDoubleRight() {
  482. if (this.year >= 2025) {
  483. uni.showToast({
  484. title: "不能选择2025年之后",
  485. icon: 'none'
  486. })
  487. } else {
  488. this.year += 1
  489. this.nowTime = this.year + "-" + this.comMonth + "-" + this.day + " " + "00:00:00"
  490. this.page = 1
  491. this.errList = []
  492. this.getErrList()
  493. }
  494. },
  495. // 往后选择月份回调
  496. handleLeft() {
  497. if (this.month <= 1) {
  498. if (this.year <= 2000) {
  499. uni.showToast({
  500. title: "不能选择2000年之前",
  501. icon: 'none'
  502. })
  503. } else {
  504. this.year -= 1
  505. this.month = 12
  506. this.nowTime = this.year + "-" + this.comMonth + "-" + this.day + " " + "00:00:00"
  507. this.page = 1
  508. this.errList = []
  509. this.getErrList()
  510. }
  511. } else {
  512. this.month -= 1
  513. this.nowTime = this.year + "-" + this.comMonth + "-" + this.day + " " + "00:00:00"
  514. this.page = 1
  515. this.errList = []
  516. this.getErrList()
  517. }
  518. },
  519. // 往前选择月份回调
  520. handleRight() {
  521. if (this.month >= 12) {
  522. if (this.year >= 2025) {
  523. uni.showToast({
  524. title: "不能选择2025年之后",
  525. icon: 'none'
  526. })
  527. } else {
  528. this.year += 1
  529. this.month = 1
  530. this.nowTime = this.year + "-" + this.comMonth + "-" + this.day + " " + "00:00:00"
  531. this.page = 1
  532. this.errList = []
  533. this.getErrList()
  534. }
  535. } else {
  536. this.month += 1
  537. this.nowTime = this.year + "-" + this.comMonth + "-" + this.day + " " + "00:00:00"
  538. this.page = 1
  539. this.errList = []
  540. this.getErrList()
  541. }
  542. },
  543. // 格式化时间
  544. format_time(timestamp) {
  545. //时间戳为10位需*1000,时间戳为13位的话不需乘1000
  546. var date = new Date(timestamp);
  547. var h = (date.getHours() < 10 ? '0' + date.getHours() : date.getHours()) + ':';
  548. var m = (date.getMinutes() < 10 ? '0' + date.getMinutes() : date.getMinutes());
  549. let strDate = h + m;
  550. return strDate;
  551. }
  552. }
  553. }
  554. </script>
  555. <style lang="scss" scoped>
  556. .container {
  557. min-width: 100vw;
  558. min-height: 100vh;
  559. background-color: #F2F2F2;
  560. .placeholder {
  561. height: 20rpx;
  562. }
  563. .control {
  564. margin-bottom: 20rpx;
  565. width: 750rpx;
  566. height: 90rpx;
  567. background-color: #fff;
  568. }
  569. .header {
  570. margin: 0 auto;
  571. width: 710rpx;
  572. height: 236rpx;
  573. background-color: #fff;
  574. .title {
  575. display: flex;
  576. height: 92rpx;
  577. .month {
  578. flex: 8;
  579. margin: 30rpx 0 0 30rpx;
  580. font-size: 32rpx;
  581. font-weight: 500
  582. }
  583. .right {
  584. display: flex;
  585. justify-content: center;
  586. align-items: center;
  587. flex: 1;
  588. img {
  589. width: 15rpx;
  590. height: 30rpx
  591. }
  592. }
  593. }
  594. .state {
  595. display: flex;
  596. height: 144rpx;
  597. .err {
  598. flex: 1;
  599. display: flex;
  600. flex-direction: column;
  601. justify-content: center;
  602. align-items: center;
  603. .number {
  604. font-size: 46rpx;
  605. font-weight: 700;
  606. }
  607. .mes {
  608. font-size: 28rpx;
  609. color: #999999;
  610. }
  611. }
  612. .success {
  613. flex: 1;
  614. display: flex;
  615. flex-direction: column;
  616. justify-content: center;
  617. align-items: center;
  618. .number {
  619. font-size: 46rpx;
  620. font-weight: 700;
  621. }
  622. .mes {
  623. font-size: 28rpx;
  624. color: #999999;
  625. }
  626. }
  627. }
  628. }
  629. .calendar {
  630. margin: 0 auto;
  631. margin-top: 30rpx;
  632. width: 710rpx;
  633. background-color: #fff;
  634. .calendar_title {
  635. padding-left: 30rpx;
  636. height: 100rpx;
  637. line-height: 100rpx;
  638. font-size: 32rpx;
  639. font-weight: 500;
  640. span {
  641. font-size: 26rpx;
  642. color: #999999
  643. }
  644. }
  645. .calendar_body {
  646. height: 690rpx;
  647. }
  648. .calendar_foot {
  649. padding: 0 30rpx;
  650. padding-bottom: 180rpx;
  651. .foot_item {
  652. box-sizing: border-box;
  653. padding: 30rpx;
  654. display: flex;
  655. flex-direction: column;
  656. justify-content: space-evenly;
  657. height: 130rpx;
  658. font-size: 24rpx;
  659. color: #808080;
  660. .box {
  661. display: flex;
  662. align-items: center;
  663. .circular {
  664. margin-right: 18rpx;
  665. width: 12rpx;
  666. height: 12rpx;
  667. border-radius: 6rpx;
  668. background-color: #31C20E;
  669. }
  670. .color {
  671. background-color: #999999;
  672. }
  673. span {
  674. margin-left: 18rpx;
  675. }
  676. }
  677. }
  678. }
  679. .progress {
  680. position: relative;
  681. display: flex;
  682. justify-content: center;
  683. padding: 0 30rpx;
  684. height: 121px;
  685. .chart {
  686. margin-top: 20rpx;
  687. width: 170px;
  688. height: 100%;
  689. }
  690. .look {
  691. position: absolute;
  692. top: 40rpx;
  693. right: 36rpx;
  694. display: flex;
  695. align-items: center;
  696. width: 150rpx;
  697. height: 42rpx;
  698. .info {
  699. margin-right: 15rpx;
  700. font-size: 28rpx;
  701. color: #A6A6A6;
  702. }
  703. img {
  704. width: 16rpx;
  705. height: 24rpx;
  706. }
  707. }
  708. }
  709. }
  710. .errPeople {
  711. margin: 0 auto;
  712. margin-top: 32rpx;
  713. padding-bottom: 180rpx;
  714. width: 710rpx;
  715. border-radius: 7rpx;
  716. background-color: #fff;
  717. .e_header {
  718. display: flex;
  719. align-items: center;
  720. width: 690rpx;
  721. height: 121rpx;
  722. .left {
  723. flex: 1;
  724. margin-left: 30rpx;
  725. font-size: 32rpx;
  726. font-weight: 500;
  727. }
  728. .right {
  729. flex: 1;
  730. display: flex;
  731. justify-content: flex-end;
  732. align-items: center;
  733. margin-right: 32rpx;
  734. .icon {
  735. margin-right: 10rpx;
  736. width: 26rpx;
  737. height: 26rpx;
  738. line-height: 26rpx;
  739. img {
  740. width: 100%;
  741. height: 100%;
  742. }
  743. }
  744. .info {
  745. width: 56rpx;
  746. height: 41rpx;
  747. font-size: 28rpx;
  748. color: #2A82E4;
  749. }
  750. }
  751. }
  752. .e_calendar {
  753. display: flex;
  754. justify-content: flex-end;
  755. align-items: center;
  756. .double {
  757. margin-right: 30rpx;
  758. width: 40rpx;
  759. height: 40rpx;
  760. img {
  761. width: 100%;
  762. height: 100%;
  763. }
  764. }
  765. .single {
  766. width: 40rpx;
  767. height: 40rpx;
  768. img {
  769. width: 80%;
  770. height: 70%;
  771. }
  772. }
  773. .single2 {
  774. margin-right: 30rpx;
  775. width: 40rpx;
  776. height: 40rpx;
  777. img {
  778. width: 100%;
  779. height: 70%;
  780. }
  781. }
  782. .time {
  783. width: 180rpx;
  784. height: 44rpx;
  785. font-size: 32rpx;
  786. text-align: center;
  787. }
  788. }
  789. .e_list {
  790. display: flex;
  791. flex-wrap: wrap;
  792. justify-content: space-evenly;
  793. align-items: center;
  794. margin-top: 20rpx;
  795. padding: 30rpx;
  796. width: 630rpx;
  797. .e_box {
  798. display: flex;
  799. flex-direction: column;
  800. justify-content: space-evenly;
  801. align-items: center;
  802. margin-bottom: 20rpx;
  803. width: 180rpx;
  804. height: 190rpx;
  805. .e_img {
  806. width: 100rpx;
  807. height: 100rpx;
  808. img {
  809. width: 100%;
  810. height: 100%;
  811. border-radius: 50%;
  812. }
  813. }
  814. .e_name {
  815. font-size: 28rpx;
  816. }
  817. .e_msg {
  818. font-size: 24rpx;
  819. color: #808080;
  820. }
  821. }
  822. }
  823. .e_list2 {
  824. margin: 0 auto;
  825. padding: 180rpx 0;
  826. text-align: center;
  827. img {
  828. width: 480rpx;
  829. height: 508rpx;
  830. }
  831. .info {
  832. padding-bottom: 50rpx;
  833. color: #5792F0;
  834. }
  835. }
  836. }
  837. .tab_bar {
  838. position: fixed;
  839. left: 0;
  840. bottom: 0;
  841. display: flex;
  842. width: 750rpx;
  843. height: 128rpx;
  844. border-top: 1rpx solid #CCC;
  845. background-color: #fff;
  846. .tab_box {
  847. flex: 1;
  848. display: flex;
  849. flex-direction: column;
  850. justify-content: center;
  851. align-items: center;
  852. .tab_img {
  853. width: 54rpx;
  854. height: 48rpx;
  855. margin-bottom: 10rpx;
  856. }
  857. .tab_title {
  858. font-size: 20rpx;
  859. }
  860. .tab_title_active {
  861. font-size: 20rpx;
  862. color: #0082FC;
  863. }
  864. }
  865. }
  866. }
  867. // 修改选中日期盒子圆角
  868. ::v-deep .uni-calendar-item--isDay {
  869. border-radius: 50rpx;
  870. }
  871. ::v-deep .uni-calendar-item--checked {
  872. border-radius: 50rpx;
  873. }
  874. </style>