stat.vue 21 KB

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