stat.vue 21 KB

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