stat.vue 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969
  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 :src="item.headImage||'../static/imgs/headImage.png'">
  117. </view>
  118. <view class="e_name">
  119. {{item.name}}
  120. </view>
  121. <view class="e_msg">
  122. 未打卡{{item.times}}次
  123. </view>
  124. </view>
  125. </view>
  126. <view class="e_list2" v-else>
  127. <img src="../static/imgs/nodata.png">
  128. <view class="info">
  129. 暂无数据
  130. </view>
  131. </view>
  132. </view>
  133. <!-- 底部导航栏区域 -->
  134. <cover-view class="tab_bar">
  135. <cover-view class="tab_box" @click="handleGoPage('/pagesClockIn/home/home')">
  136. <cover-image class="tab_img" v-if="pageUrl=='pagesClockIn/home/home'"
  137. src="../static/imgs/home_active.png">
  138. </cover-image>
  139. <cover-image class="tab_img" v-else src="../static/imgs/home.png"></cover-image>
  140. <cover-view v-if="pageUrl=='pagesClockIn/home/home'" class="tab_title_active">
  141. 首页
  142. </cover-view>
  143. <cover-view v-else class="tab_title">
  144. 首页
  145. </cover-view>
  146. </cover-view>
  147. <cover-view class="tab_box" @click="handleGoPage('/pagesClockIn/stat/stat')">
  148. <cover-image class="tab_img" v-if="pageUrl=='pagesClockIn/stat/stat'"
  149. src="../static/imgs/stat_active.png">
  150. </cover-image>
  151. <cover-image class="tab_img" v-else src="../static/imgs/stat.png"></cover-image>
  152. <cover-view v-if="pageUrl=='pagesClockIn/stat/stat'" class="tab_title_active">
  153. 统计
  154. </cover-view>
  155. <cover-view v-else class="tab_title">
  156. 统计
  157. </cover-view>
  158. </cover-view>
  159. <cover-view v-if="flag" class="tab_box" @click="handleGoPage('/pagesClockIn/my/my')">
  160. <cover-image class="tab_img" v-if="pageUrl=='pagesClockIn/my/my'" src="../static/imgs/my_active.png">
  161. </cover-image>
  162. <cover-image class="tab_img" v-else src="../static/imgs/my.png"></cover-image>
  163. <cover-view v-if="pageUrl=='pagesClockIn/my/my'" class="tab_title_active">
  164. 我的
  165. </cover-view>
  166. <cover-view v-else class="tab_title">
  167. 我的
  168. </cover-view>
  169. </cover-view>
  170. </cover-view>
  171. </view>
  172. </template>
  173. <script>
  174. import progressBar from '../components/chocolate-progress-bar/chocolate-progress-bar.vue'
  175. export default {
  176. components: {
  177. progressBar
  178. },
  179. data() {
  180. return {
  181. // 是否为管理员或子管理员标识
  182. flag: false,
  183. // 有标记点的数组日期
  184. selectList: [
  185. // {
  186. // date: "2022-12-20",
  187. // info: '打卡'
  188. // },
  189. // {
  190. // date: "2022-12-21",
  191. // info: '未打卡',
  192. // data: {
  193. // custom: '自定义信息',
  194. // name: '自定义消息头'
  195. // }
  196. // }
  197. ],
  198. // 个人考勤规则列表
  199. list2: [],
  200. // 分段器数组
  201. items: ['团队统计', '我的统计'],
  202. // 分段器默认索引
  203. current: 1,
  204. // 当前年份
  205. year: null,
  206. // 当前月份
  207. month: null,
  208. // 当前天数
  209. day: null,
  210. // 异常人员名单数组
  211. errList: [],
  212. // 环形图完成数量
  213. progress_txt: null,
  214. // 环形图总数
  215. progress_total: null,
  216. // 当前时间
  217. nowTime: "",
  218. // 打卡异常次数
  219. fail_count: 0,
  220. // 打卡成功次数
  221. success_count: 0,
  222. // 异常人员名单当前页
  223. page: 1,
  224. // 异常人员名单总条数
  225. total: 0,
  226. // 个人考勤规则列表当前页
  227. page_my: 1,
  228. // 个人考勤规则列表总条数
  229. total_my: 0,
  230. // 环形图显示隐藏控制
  231. showBar: false,
  232. // 当前页面的路由地址
  233. pageUrl: ""
  234. };
  235. },
  236. onLoad() {
  237. this.getTime()
  238. },
  239. onShow() {
  240. this.getPageUrl()
  241. let flag = uni.getStorageSync("manager")
  242. let flag2 = uni.getStorageSync("sub-administrator")
  243. if (flag || flag2) {
  244. this.flag = true
  245. } else {
  246. this.flag = false
  247. }
  248. if (this.flag) {
  249. this.current = 0
  250. this.errList = []
  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: async (res) => {
  440. if (res.confirm) {
  441. let data = JSON.stringify(this.nowTime)
  442. let res = await this.$myRequest_clockIn({
  443. url: "/attendance/api/sign/check/in/abnormal/notify/app",
  444. method: "post",
  445. data,
  446. header: {
  447. 'Authorization': uni.getStorageSync("token")
  448. }
  449. })
  450. // console.log(res);
  451. if (res.code == 200) {
  452. uni.showToast({
  453. title: "通知成功"
  454. })
  455. }
  456. }
  457. }
  458. });
  459. },
  460. // 点击查看明细回调
  461. handleLookDetail() {
  462. // console.log(this.nowTime);
  463. uni.navigateTo({
  464. url: `/pagesClockIn/particulars/particulars?nowTime_day=${this.nowTime}&type=1`
  465. })
  466. },
  467. // 跳转统计详情页面
  468. goToDetail() {
  469. if (this.current == 1) {
  470. uni.navigateTo({
  471. url: `/pagesClockIn/statDetail/statDetail`
  472. })
  473. } else {
  474. uni.navigateTo({
  475. url: "/pagesClockIn/particulars/particulars?type=2"
  476. })
  477. }
  478. },
  479. // 往后选择年份回调
  480. handleDoubleLeft() {
  481. if (this.year <= 2000) {
  482. uni.showToast({
  483. title: "不能选择2000年之前",
  484. icon: 'none'
  485. })
  486. } else {
  487. this.year -= 1
  488. this.nowTime = this.year + "-" + this.comMonth + "-" + this.day + " " + "00:00:00"
  489. this.page = 1
  490. this.errList = []
  491. this.getErrList()
  492. }
  493. },
  494. // 往前选择年份回调
  495. handleDoubleRight() {
  496. if (this.year >= 2025) {
  497. uni.showToast({
  498. title: "不能选择2025年之后",
  499. icon: 'none'
  500. })
  501. } else {
  502. this.year += 1
  503. this.nowTime = this.year + "-" + this.comMonth + "-" + this.day + " " + "00:00:00"
  504. this.page = 1
  505. this.errList = []
  506. this.getErrList()
  507. }
  508. },
  509. // 往后选择月份回调
  510. handleLeft() {
  511. if (this.month <= 1) {
  512. if (this.year <= 2000) {
  513. uni.showToast({
  514. title: "不能选择2000年之前",
  515. icon: 'none'
  516. })
  517. } else {
  518. this.year -= 1
  519. this.month = 12
  520. this.nowTime = this.year + "-" + this.comMonth + "-" + this.day + " " + "00:00:00"
  521. this.page = 1
  522. this.errList = []
  523. this.getErrList()
  524. }
  525. } else {
  526. this.month -= 1
  527. this.nowTime = this.year + "-" + this.comMonth + "-" + this.day + " " + "00:00:00"
  528. this.page = 1
  529. this.errList = []
  530. this.getErrList()
  531. }
  532. },
  533. // 往前选择月份回调
  534. handleRight() {
  535. if (this.month >= 12) {
  536. if (this.year >= 2025) {
  537. uni.showToast({
  538. title: "不能选择2025年之后",
  539. icon: 'none'
  540. })
  541. } else {
  542. this.year += 1
  543. this.month = 1
  544. this.nowTime = this.year + "-" + this.comMonth + "-" + this.day + " " + "00:00:00"
  545. this.page = 1
  546. this.errList = []
  547. this.getErrList()
  548. }
  549. } else {
  550. this.month += 1
  551. this.nowTime = this.year + "-" + this.comMonth + "-" + this.day + " " + "00:00:00"
  552. this.page = 1
  553. this.errList = []
  554. this.getErrList()
  555. }
  556. },
  557. // 格式化时间
  558. format_time(timestamp) {
  559. //时间戳为10位需*1000,时间戳为13位的话不需乘1000
  560. var date = new Date(timestamp);
  561. var h = (date.getHours() < 10 ? '0' + date.getHours() : date.getHours()) + ':';
  562. var m = (date.getMinutes() < 10 ? '0' + date.getMinutes() : date.getMinutes());
  563. let strDate = h + m;
  564. return strDate;
  565. }
  566. }
  567. }
  568. </script>
  569. <style lang="scss" scoped>
  570. .container {
  571. min-width: 100vw;
  572. min-height: 100vh;
  573. background-color: #F2F2F2;
  574. .placeholder {
  575. height: 20rpx;
  576. }
  577. .control {
  578. margin-bottom: 20rpx;
  579. width: 750rpx;
  580. height: 90rpx;
  581. background-color: #fff;
  582. }
  583. .header {
  584. margin: 0 auto;
  585. width: 710rpx;
  586. height: 236rpx;
  587. background-color: #fff;
  588. .title {
  589. display: flex;
  590. height: 92rpx;
  591. .month {
  592. flex: 8;
  593. margin: 30rpx 0 0 30rpx;
  594. font-size: 32rpx;
  595. font-weight: 500
  596. }
  597. .right {
  598. display: flex;
  599. justify-content: center;
  600. align-items: center;
  601. flex: 1;
  602. img {
  603. width: 15rpx;
  604. height: 30rpx
  605. }
  606. }
  607. }
  608. .state {
  609. display: flex;
  610. height: 144rpx;
  611. .err {
  612. flex: 1;
  613. display: flex;
  614. flex-direction: column;
  615. justify-content: center;
  616. align-items: center;
  617. .number {
  618. font-size: 46rpx;
  619. font-weight: 700;
  620. }
  621. .mes {
  622. font-size: 28rpx;
  623. color: #999999;
  624. }
  625. }
  626. .success {
  627. flex: 1;
  628. display: flex;
  629. flex-direction: column;
  630. justify-content: center;
  631. align-items: center;
  632. .number {
  633. font-size: 46rpx;
  634. font-weight: 700;
  635. }
  636. .mes {
  637. font-size: 28rpx;
  638. color: #999999;
  639. }
  640. }
  641. }
  642. }
  643. .calendar {
  644. margin: 0 auto;
  645. margin-top: 30rpx;
  646. width: 710rpx;
  647. background-color: #fff;
  648. .calendar_title {
  649. padding-left: 30rpx;
  650. height: 100rpx;
  651. line-height: 100rpx;
  652. font-size: 32rpx;
  653. font-weight: 500;
  654. span {
  655. font-size: 26rpx;
  656. color: #999999
  657. }
  658. }
  659. .calendar_body {
  660. height: 690rpx;
  661. }
  662. .calendar_foot {
  663. padding: 0 30rpx;
  664. padding-bottom: 180rpx;
  665. .foot_item {
  666. box-sizing: border-box;
  667. padding: 30rpx;
  668. display: flex;
  669. flex-direction: column;
  670. justify-content: space-evenly;
  671. height: 130rpx;
  672. font-size: 24rpx;
  673. color: #808080;
  674. .box {
  675. display: flex;
  676. align-items: center;
  677. .circular {
  678. margin-right: 18rpx;
  679. width: 12rpx;
  680. height: 12rpx;
  681. border-radius: 6rpx;
  682. background-color: #31C20E;
  683. }
  684. .color {
  685. background-color: #999999;
  686. }
  687. span {
  688. margin-left: 18rpx;
  689. }
  690. }
  691. }
  692. }
  693. .progress {
  694. position: relative;
  695. display: flex;
  696. justify-content: center;
  697. padding: 0 30rpx;
  698. height: 121px;
  699. .chart {
  700. margin-top: 20rpx;
  701. width: 170px;
  702. height: 100%;
  703. }
  704. .look {
  705. position: absolute;
  706. top: 40rpx;
  707. right: 36rpx;
  708. display: flex;
  709. align-items: center;
  710. width: 150rpx;
  711. height: 42rpx;
  712. .info {
  713. margin-right: 15rpx;
  714. font-size: 28rpx;
  715. color: #A6A6A6;
  716. }
  717. img {
  718. width: 16rpx;
  719. height: 24rpx;
  720. }
  721. }
  722. }
  723. }
  724. .errPeople {
  725. margin: 0 auto;
  726. margin-top: 32rpx;
  727. padding-bottom: 180rpx;
  728. width: 710rpx;
  729. border-radius: 7rpx;
  730. background-color: #fff;
  731. .e_header {
  732. display: flex;
  733. align-items: center;
  734. width: 690rpx;
  735. height: 121rpx;
  736. .left {
  737. flex: 1;
  738. margin-left: 30rpx;
  739. font-size: 32rpx;
  740. font-weight: 500;
  741. }
  742. .right {
  743. flex: 1;
  744. display: flex;
  745. justify-content: flex-end;
  746. align-items: center;
  747. margin-right: 32rpx;
  748. .icon {
  749. margin-right: 10rpx;
  750. width: 26rpx;
  751. height: 26rpx;
  752. line-height: 26rpx;
  753. img {
  754. width: 100%;
  755. height: 100%;
  756. }
  757. }
  758. .info {
  759. width: 56rpx;
  760. height: 41rpx;
  761. font-size: 28rpx;
  762. color: #2A82E4;
  763. }
  764. }
  765. }
  766. .e_calendar {
  767. display: flex;
  768. justify-content: flex-end;
  769. align-items: center;
  770. .double {
  771. margin-right: 30rpx;
  772. width: 40rpx;
  773. height: 40rpx;
  774. img {
  775. width: 100%;
  776. height: 100%;
  777. }
  778. }
  779. .single {
  780. width: 40rpx;
  781. height: 40rpx;
  782. img {
  783. width: 80%;
  784. height: 70%;
  785. }
  786. }
  787. .single2 {
  788. margin-right: 30rpx;
  789. width: 40rpx;
  790. height: 40rpx;
  791. img {
  792. width: 100%;
  793. height: 70%;
  794. }
  795. }
  796. .time {
  797. width: 180rpx;
  798. height: 44rpx;
  799. font-size: 32rpx;
  800. text-align: center;
  801. }
  802. }
  803. .e_list {
  804. display: flex;
  805. flex-wrap: wrap;
  806. justify-content: space-evenly;
  807. align-items: center;
  808. margin-top: 20rpx;
  809. padding: 30rpx;
  810. width: 630rpx;
  811. .e_box {
  812. display: flex;
  813. flex-direction: column;
  814. justify-content: space-evenly;
  815. align-items: center;
  816. margin-bottom: 20rpx;
  817. width: 180rpx;
  818. height: 190rpx;
  819. .e_img {
  820. width: 100rpx;
  821. height: 100rpx;
  822. img {
  823. width: 100%;
  824. height: 100%;
  825. border-radius: 50%;
  826. }
  827. }
  828. .e_name {
  829. font-size: 28rpx;
  830. }
  831. .e_msg {
  832. font-size: 24rpx;
  833. color: #808080;
  834. }
  835. }
  836. }
  837. .e_list2 {
  838. margin: 0 auto;
  839. padding: 180rpx 0;
  840. text-align: center;
  841. img {
  842. width: 480rpx;
  843. height: 508rpx;
  844. }
  845. .info {
  846. padding-bottom: 50rpx;
  847. color: #5792F0;
  848. }
  849. }
  850. }
  851. .tab_bar {
  852. position: fixed;
  853. left: 0;
  854. bottom: 0;
  855. display: flex;
  856. width: 750rpx;
  857. height: 128rpx;
  858. border-top: 1rpx solid #CCC;
  859. background-color: #fff;
  860. .tab_box {
  861. flex: 1;
  862. display: flex;
  863. flex-direction: column;
  864. justify-content: center;
  865. align-items: center;
  866. .tab_img {
  867. width: 54rpx;
  868. height: 48rpx;
  869. margin-bottom: 10rpx;
  870. }
  871. .tab_title {
  872. font-size: 20rpx;
  873. }
  874. .tab_title_active {
  875. font-size: 20rpx;
  876. color: #0082FC;
  877. }
  878. }
  879. }
  880. }
  881. // 修改选中日期盒子圆角
  882. ::v-deep .uni-calendar-item--isDay {
  883. border-radius: 50rpx;
  884. }
  885. ::v-deep .uni-calendar-item--checked {
  886. border-radius: 50rpx;
  887. }
  888. </style>