stat.vue 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978
  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. // 页面拉到底部触发函数
  286. onReachBottom() {
  287. if (this.current == 0) {
  288. if (this.errList.length < this.total) {
  289. this.page++
  290. this.getErrList()
  291. } else {
  292. uni.showToast({
  293. title: "没有更多数据了",
  294. icon: 'none'
  295. })
  296. }
  297. }
  298. },
  299. methods: {
  300. getPageUrl() {
  301. // 获取当前打开过的页面路由数组
  302. let routes = getCurrentPages();
  303. // 获取当前页面路由,也就是最后一个打开的页面路由
  304. let curRoute = routes[routes.length - 1].route
  305. this.pageUrl = curRoute
  306. },
  307. handleGoPage(url) {
  308. // console.log(url);
  309. uni.redirectTo({
  310. url
  311. })
  312. },
  313. // 获取当前年 月 日
  314. getTime() {
  315. let date = new Date()
  316. let year = date.getFullYear()
  317. let month = date.getMonth() + 1
  318. let day = date.getDate() < 10 ? '0' + date.getDate() : date.getDate()
  319. this.year = year
  320. this.month = month
  321. this.day = day
  322. this.nowTime = year + "-" + this.comMonth + "-" + day + " " + "00:00:00"
  323. },
  324. // 获取我的月打卡次数
  325. async getMonthTimes() {
  326. let res = await this.$myRequest_clockIn({
  327. url: "/attendance/api/sign/check/in/month/times",
  328. data: {
  329. time: this.nowTime
  330. }
  331. })
  332. // console.log(res);
  333. if (res.code == 200) {
  334. this.fail_count = res.data.fail
  335. this.success_count = res.data.success
  336. }
  337. },
  338. // 获取我的团队月打卡次数
  339. async getMonthTimes_team() {
  340. let res = await this.$myRequest_clockIn({
  341. url: "/attendance/api/sign/check/in/month/times/team",
  342. data: {
  343. time: this.nowTime
  344. }
  345. })
  346. // console.log(res);
  347. if (res.code == 200) {
  348. this.fail_count = res.data.fail
  349. this.success_count = res.data.success
  350. }
  351. },
  352. // 获取团队打卡每日完成占比
  353. async getProportion() {
  354. let res = await this.$myRequest_clockIn({
  355. url: "/attendance/api/sign/check/in/proportion",
  356. data: {
  357. time: this.nowTime
  358. }
  359. })
  360. // console.log(res);
  361. if (res.code == 200) {
  362. this.progress_txt = res.data.complete
  363. this.progress_total = res.data.total
  364. }
  365. },
  366. // 获取打卡异常人员名单
  367. async getErrList() {
  368. let res = await this.$myRequest_clockIn({
  369. url: "/attendance/api/sign/check/in/abnormal",
  370. data: {
  371. time: this.nowTime,
  372. page: this.page,
  373. size: 9
  374. }
  375. })
  376. // console.log(res);
  377. if (res.code == 200) {
  378. this.total = res.data.total
  379. this.errList = [...this.errList, ...res.data.list]
  380. }
  381. },
  382. // 获取打卡规则列表
  383. async getRulesList() {
  384. // let name = uni.getStorageSync("userInfo").username
  385. let res = await this.$myRequest_clockIn({
  386. url: "/attendance/api/sign/check/in/list/day",
  387. data: {
  388. // page: this.page_my,
  389. time: this.nowTime
  390. }
  391. })
  392. // console.log(res);
  393. if (res.code == 200) {
  394. // this.list2 = [...this.list2, ...res.data]
  395. this.list2 = res.data
  396. // this.total_my = res.data.total
  397. }
  398. },
  399. // 点击日历日期回调
  400. change(e) {
  401. // console.log('change 返回:', e.fulldate)
  402. this.nowTime = e.fulldate + " " + "00:00:00"
  403. if (this.current == 0) {
  404. this.getProportion()
  405. } else {
  406. // this.list2 = []
  407. // this.page_my = 1
  408. this.getRulesList()
  409. }
  410. },
  411. // 分段器点击回调
  412. onClickItem(e) {
  413. this.fail_count = ""
  414. this.success_count = ""
  415. // this.list2 = []
  416. this.errList = []
  417. this.page = 1
  418. // console.log(e.currentIndex);
  419. this.current = e.currentIndex
  420. if (e.currentIndex == 0) {
  421. this.getMonthTimes_team()
  422. this.getProportion()
  423. this.getErrList()
  424. } else {
  425. this.getMonthTimes()
  426. this.getRulesList()
  427. }
  428. },
  429. // 点击通知回调
  430. handleInform() {
  431. if (this.total > 0) {
  432. uni.showModal({
  433. title: '提示',
  434. content: `当前列表中有 ${this.total} 位异常人员,确定需要全部通知吗?`,
  435. success: async (res) => {
  436. if (res.confirm) {
  437. let data = JSON.stringify(this.nowTime)
  438. let res = await this.$myRequest_clockIn({
  439. url: "/attendance/api/sign/check/in/abnormal/notify/app",
  440. method: "post",
  441. data,
  442. header: {
  443. 'Authorization': uni.getStorageSync("token"),
  444. 'platform': 2
  445. }
  446. })
  447. // console.log(res);
  448. if (res.code == 200) {
  449. uni.showToast({
  450. title: "通知成功"
  451. })
  452. }
  453. }
  454. }
  455. });
  456. } else {
  457. uni.showToast({
  458. title: "当前异常人员名单为空,无法通知",
  459. icon: 'none'
  460. })
  461. }
  462. },
  463. // 点击查看明细回调
  464. handleLookDetail() {
  465. // console.log(this.nowTime);
  466. uni.navigateTo({
  467. url: `/pagesClockIn/particulars/particulars?nowTime_day=${this.nowTime}&type=1`
  468. })
  469. },
  470. // 跳转统计详情页面
  471. goToDetail() {
  472. if (this.current == 1) {
  473. uni.navigateTo({
  474. url: `/pagesClockIn/statDetail/statDetail`
  475. })
  476. } else {
  477. uni.navigateTo({
  478. url: "/pagesClockIn/particulars/particulars?type=2"
  479. })
  480. }
  481. },
  482. // 往后选择年份回调
  483. handleDoubleLeft() {
  484. if (this.year <= 2000) {
  485. uni.showToast({
  486. title: "不能选择2000年之前",
  487. icon: 'none'
  488. })
  489. } else {
  490. this.year -= 1
  491. this.nowTime = this.year + "-" + this.comMonth + "-" + this.day + " " + "00:00:00"
  492. this.page = 1
  493. this.errList = []
  494. this.getErrList()
  495. }
  496. },
  497. // 往前选择年份回调
  498. handleDoubleRight() {
  499. if (this.year >= 2025) {
  500. uni.showToast({
  501. title: "不能选择2025年之后",
  502. icon: 'none'
  503. })
  504. } else {
  505. this.year += 1
  506. this.nowTime = this.year + "-" + this.comMonth + "-" + this.day + " " + "00:00:00"
  507. this.page = 1
  508. this.errList = []
  509. this.getErrList()
  510. }
  511. },
  512. // 往后选择月份回调
  513. handleLeft() {
  514. if (this.month <= 1) {
  515. if (this.year <= 2000) {
  516. uni.showToast({
  517. title: "不能选择2000年之前",
  518. icon: 'none'
  519. })
  520. } else {
  521. this.year -= 1
  522. this.month = 12
  523. this.nowTime = this.year + "-" + this.comMonth + "-" + this.day + " " + "00:00:00"
  524. this.page = 1
  525. this.errList = []
  526. this.getErrList()
  527. }
  528. } else {
  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. },
  536. // 往前选择月份回调
  537. handleRight() {
  538. if (this.month >= 12) {
  539. if (this.year >= 2025) {
  540. uni.showToast({
  541. title: "不能选择2025年之后",
  542. icon: 'none'
  543. })
  544. } else {
  545. this.year += 1
  546. this.month = 1
  547. this.nowTime = this.year + "-" + this.comMonth + "-" + this.day + " " + "00:00:00"
  548. this.page = 1
  549. this.errList = []
  550. this.getErrList()
  551. }
  552. } else {
  553. this.month += 1
  554. this.nowTime = this.year + "-" + this.comMonth + "-" + this.day + " " + "00:00:00"
  555. this.page = 1
  556. this.errList = []
  557. this.getErrList()
  558. }
  559. },
  560. // 格式化时间
  561. format_time(timestamp) {
  562. //时间戳为10位需*1000,时间戳为13位的话不需乘1000
  563. var date = new Date(timestamp);
  564. var h = (date.getHours() < 10 ? '0' + date.getHours() : date.getHours()) + ':';
  565. var m = (date.getMinutes() < 10 ? '0' + date.getMinutes() : date.getMinutes());
  566. let strDate = h + m;
  567. return strDate;
  568. }
  569. }
  570. }
  571. </script>
  572. <style lang="scss" scoped>
  573. .container {
  574. min-width: 100vw;
  575. min-height: 100vh;
  576. background-color: #F2F2F2;
  577. .placeholder {
  578. height: 20rpx;
  579. }
  580. .control {
  581. margin-bottom: 20rpx;
  582. width: 750rpx;
  583. height: 90rpx;
  584. background-color: #fff;
  585. }
  586. .header {
  587. margin: 0 auto;
  588. width: 710rpx;
  589. height: 236rpx;
  590. background-color: #fff;
  591. .title {
  592. display: flex;
  593. height: 92rpx;
  594. .month {
  595. flex: 8;
  596. margin: 30rpx 0 0 30rpx;
  597. font-size: 32rpx;
  598. font-weight: 500
  599. }
  600. .right {
  601. display: flex;
  602. justify-content: center;
  603. align-items: center;
  604. flex: 1;
  605. img {
  606. width: 15rpx;
  607. height: 30rpx
  608. }
  609. }
  610. }
  611. .state {
  612. display: flex;
  613. height: 144rpx;
  614. .err {
  615. flex: 1;
  616. display: flex;
  617. flex-direction: column;
  618. justify-content: center;
  619. align-items: center;
  620. .number {
  621. font-size: 46rpx;
  622. font-weight: 700;
  623. }
  624. .mes {
  625. font-size: 28rpx;
  626. color: #999999;
  627. }
  628. }
  629. .success {
  630. flex: 1;
  631. display: flex;
  632. flex-direction: column;
  633. justify-content: center;
  634. align-items: center;
  635. .number {
  636. font-size: 46rpx;
  637. font-weight: 700;
  638. }
  639. .mes {
  640. font-size: 28rpx;
  641. color: #999999;
  642. }
  643. }
  644. }
  645. }
  646. .calendar {
  647. margin: 0 auto;
  648. margin-top: 30rpx;
  649. width: 710rpx;
  650. background-color: #fff;
  651. .calendar_title {
  652. padding-left: 30rpx;
  653. height: 100rpx;
  654. line-height: 100rpx;
  655. font-size: 32rpx;
  656. font-weight: 500;
  657. span {
  658. font-size: 26rpx;
  659. color: #999999
  660. }
  661. }
  662. .calendar_body {
  663. height: 690rpx;
  664. }
  665. .calendar_foot {
  666. padding: 0 30rpx;
  667. padding-bottom: 180rpx;
  668. .foot_item {
  669. box-sizing: border-box;
  670. padding: 30rpx;
  671. display: flex;
  672. flex-direction: column;
  673. justify-content: space-evenly;
  674. height: 130rpx;
  675. font-size: 24rpx;
  676. color: #808080;
  677. .box {
  678. display: flex;
  679. align-items: center;
  680. .circular {
  681. margin-right: 18rpx;
  682. width: 12rpx;
  683. height: 12rpx;
  684. border-radius: 6rpx;
  685. background-color: #31C20E;
  686. }
  687. .color {
  688. background-color: #999999;
  689. }
  690. span {
  691. margin-left: 18rpx;
  692. }
  693. }
  694. }
  695. }
  696. .progress {
  697. position: relative;
  698. display: flex;
  699. justify-content: center;
  700. padding: 0 30rpx;
  701. height: 121px;
  702. .chart {
  703. margin-top: 20rpx;
  704. width: 170px;
  705. height: 100%;
  706. }
  707. .look {
  708. position: absolute;
  709. top: 40rpx;
  710. right: 36rpx;
  711. display: flex;
  712. align-items: center;
  713. width: 150rpx;
  714. height: 42rpx;
  715. .info {
  716. margin-right: 15rpx;
  717. font-size: 28rpx;
  718. color: #A6A6A6;
  719. }
  720. img {
  721. width: 16rpx;
  722. height: 24rpx;
  723. }
  724. }
  725. }
  726. }
  727. .errPeople {
  728. margin: 0 auto;
  729. margin-top: 32rpx;
  730. padding-bottom: 180rpx;
  731. width: 710rpx;
  732. border-radius: 7rpx;
  733. background-color: #fff;
  734. .e_header {
  735. display: flex;
  736. align-items: center;
  737. width: 690rpx;
  738. height: 121rpx;
  739. .left {
  740. flex: 1;
  741. margin-left: 30rpx;
  742. font-size: 32rpx;
  743. font-weight: 500;
  744. }
  745. .right {
  746. flex: 1;
  747. display: flex;
  748. justify-content: flex-end;
  749. align-items: center;
  750. margin-right: 32rpx;
  751. .icon {
  752. margin-right: 10rpx;
  753. width: 26rpx;
  754. height: 26rpx;
  755. line-height: 26rpx;
  756. img {
  757. width: 100%;
  758. height: 100%;
  759. }
  760. }
  761. .info {
  762. width: 56rpx;
  763. height: 41rpx;
  764. font-size: 28rpx;
  765. color: #2A82E4;
  766. }
  767. }
  768. }
  769. .e_calendar {
  770. display: flex;
  771. justify-content: flex-end;
  772. align-items: center;
  773. .double {
  774. margin-right: 30rpx;
  775. width: 40rpx;
  776. height: 40rpx;
  777. img {
  778. width: 100%;
  779. height: 100%;
  780. }
  781. }
  782. .single {
  783. width: 40rpx;
  784. height: 40rpx;
  785. img {
  786. width: 80%;
  787. height: 70%;
  788. }
  789. }
  790. .single2 {
  791. margin-right: 30rpx;
  792. width: 40rpx;
  793. height: 40rpx;
  794. img {
  795. width: 100%;
  796. height: 70%;
  797. }
  798. }
  799. .time {
  800. width: 180rpx;
  801. height: 44rpx;
  802. font-size: 32rpx;
  803. text-align: center;
  804. }
  805. }
  806. .e_list {
  807. display: flex;
  808. flex-wrap: wrap;
  809. justify-content: space-evenly;
  810. align-items: center;
  811. margin-top: 20rpx;
  812. padding: 30rpx;
  813. width: 630rpx;
  814. .e_box {
  815. display: flex;
  816. flex-direction: column;
  817. justify-content: space-evenly;
  818. align-items: center;
  819. margin-bottom: 20rpx;
  820. width: 180rpx;
  821. height: 190rpx;
  822. .e_img {
  823. width: 100rpx;
  824. height: 100rpx;
  825. img {
  826. width: 100%;
  827. height: 100%;
  828. border-radius: 50%;
  829. }
  830. }
  831. .e_name {
  832. width: 180rpx;
  833. text-align: center;
  834. font-size: 28rpx;
  835. overflow: hidden;
  836. white-space: nowrap;
  837. text-overflow: ellipsis;
  838. }
  839. .e_msg {
  840. font-size: 24rpx;
  841. color: #808080;
  842. }
  843. }
  844. }
  845. .e_list2 {
  846. margin: 0 auto;
  847. padding: 180rpx 0;
  848. text-align: center;
  849. img {
  850. width: 480rpx;
  851. height: 508rpx;
  852. }
  853. .info {
  854. padding-bottom: 50rpx;
  855. color: #5792F0;
  856. }
  857. }
  858. }
  859. .tab_bar {
  860. z-index: 9999;
  861. position: fixed;
  862. left: 0;
  863. bottom: 0;
  864. display: flex;
  865. width: 750rpx;
  866. height: 128rpx;
  867. border-top: 1rpx solid #CCC;
  868. background-color: #fff;
  869. .tab_box {
  870. flex: 1;
  871. display: flex;
  872. flex-direction: column;
  873. justify-content: center;
  874. align-items: center;
  875. .tab_img {
  876. width: 54rpx;
  877. height: 48rpx;
  878. margin-bottom: 10rpx;
  879. }
  880. .tab_title {
  881. font-size: 20rpx;
  882. }
  883. .tab_title_active {
  884. font-size: 20rpx;
  885. color: #0082FC;
  886. }
  887. }
  888. }
  889. }
  890. // 修改选中日期盒子圆角
  891. ::v-deep .uni-calendar-item--isDay {
  892. border-radius: 50rpx;
  893. }
  894. ::v-deep .uni-calendar-item--checked {
  895. border-radius: 50rpx;
  896. }
  897. </style>