stat.vue 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974
  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. }
  374. })
  375. // console.log(res);
  376. if (res.code == 200) {
  377. this.total = res.data.total
  378. this.errList = [...this.errList, ...res.data.list]
  379. }
  380. },
  381. // 获取打卡规则列表
  382. async getRulesList() {
  383. // let name = uni.getStorageSync("userInfo").username
  384. let res = await this.$myRequest_clockIn({
  385. url: "/attendance/api/sign/check/in/list/day",
  386. data: {
  387. // page: this.page_my,
  388. time: this.nowTime
  389. }
  390. })
  391. // console.log(res);
  392. if (res.code == 200) {
  393. // this.list2 = [...this.list2, ...res.data]
  394. this.list2 = res.data
  395. // this.total_my = res.data.total
  396. }
  397. },
  398. // 点击日历日期回调
  399. change(e) {
  400. // console.log('change 返回:', e.fulldate)
  401. this.nowTime = e.fulldate + " " + "00:00:00"
  402. if (this.current == 0) {
  403. this.getProportion()
  404. } else {
  405. // this.list2 = []
  406. // this.page_my = 1
  407. this.getRulesList()
  408. }
  409. },
  410. // 分段器点击回调
  411. onClickItem(e) {
  412. this.fail_count = ""
  413. this.success_count = ""
  414. // this.list2 = []
  415. this.errList = []
  416. // console.log(e.currentIndex);
  417. this.current = e.currentIndex
  418. if (e.currentIndex == 0) {
  419. this.getMonthTimes_team()
  420. this.getProportion()
  421. this.getErrList()
  422. } else {
  423. this.getMonthTimes()
  424. this.getRulesList()
  425. }
  426. },
  427. // 点击通知回调
  428. handleInform() {
  429. if (this.total > 0) {
  430. uni.showModal({
  431. title: '提示',
  432. content: `当前列表中有 ${this.total} 位异常人员,确定需要全部通知吗?`,
  433. success: async (res) => {
  434. if (res.confirm) {
  435. let data = JSON.stringify(this.nowTime)
  436. let res = await this.$myRequest_clockIn({
  437. url: "/attendance/api/sign/check/in/abnormal/notify/app",
  438. method: "post",
  439. data,
  440. header: {
  441. 'Authorization': uni.getStorageSync("token")
  442. }
  443. })
  444. // console.log(res);
  445. if (res.code == 200) {
  446. uni.showToast({
  447. title: "通知成功"
  448. })
  449. }
  450. }
  451. }
  452. });
  453. } else {
  454. uni.showToast({
  455. title: "当前异常人员名单为空,无法通知",
  456. icon: 'none'
  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. width: 180rpx;
  830. text-align: center;
  831. font-size: 28rpx;
  832. overflow: hidden;
  833. white-space: nowrap;
  834. text-overflow: ellipsis;
  835. }
  836. .e_msg {
  837. font-size: 24rpx;
  838. color: #808080;
  839. }
  840. }
  841. }
  842. .e_list2 {
  843. margin: 0 auto;
  844. padding: 180rpx 0;
  845. text-align: center;
  846. img {
  847. width: 480rpx;
  848. height: 508rpx;
  849. }
  850. .info {
  851. padding-bottom: 50rpx;
  852. color: #5792F0;
  853. }
  854. }
  855. }
  856. .tab_bar {
  857. position: fixed;
  858. left: 0;
  859. bottom: 0;
  860. display: flex;
  861. width: 750rpx;
  862. height: 128rpx;
  863. border-top: 1rpx solid #CCC;
  864. background-color: #fff;
  865. .tab_box {
  866. flex: 1;
  867. display: flex;
  868. flex-direction: column;
  869. justify-content: center;
  870. align-items: center;
  871. .tab_img {
  872. width: 54rpx;
  873. height: 48rpx;
  874. margin-bottom: 10rpx;
  875. }
  876. .tab_title {
  877. font-size: 20rpx;
  878. }
  879. .tab_title_active {
  880. font-size: 20rpx;
  881. color: #0082FC;
  882. }
  883. }
  884. }
  885. }
  886. // 修改选中日期盒子圆角
  887. ::v-deep .uni-calendar-item--isDay {
  888. border-radius: 50rpx;
  889. }
  890. ::v-deep .uni-calendar-item--checked {
  891. border-radius: 50rpx;
  892. }
  893. </style>