stat.vue 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977
  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. 'Accept-Language': 'zh-CN,zh;q=0.9'
  444. }
  445. })
  446. // console.log(res);
  447. if (res.code == 200) {
  448. uni.showToast({
  449. title: "通知成功"
  450. })
  451. }
  452. }
  453. }
  454. });
  455. } else {
  456. uni.showToast({
  457. title: "当前异常人员名单为空,无法通知",
  458. icon: 'none'
  459. })
  460. }
  461. },
  462. // 点击查看明细回调
  463. handleLookDetail() {
  464. // console.log(this.nowTime);
  465. uni.navigateTo({
  466. url: `/pagesClockIn/particulars/particulars?nowTime_day=${this.nowTime}&type=1`
  467. })
  468. },
  469. // 跳转统计详情页面
  470. goToDetail() {
  471. if (this.current == 1) {
  472. uni.navigateTo({
  473. url: `/pagesClockIn/statDetail/statDetail`
  474. })
  475. } else {
  476. uni.navigateTo({
  477. url: "/pagesClockIn/particulars/particulars?type=2"
  478. })
  479. }
  480. },
  481. // 往后选择年份回调
  482. handleDoubleLeft() {
  483. if (this.year <= 2000) {
  484. uni.showToast({
  485. title: "不能选择2000年之前",
  486. icon: 'none'
  487. })
  488. } else {
  489. this.year -= 1
  490. this.nowTime = this.year + "-" + this.comMonth + "-" + this.day + " " + "00:00:00"
  491. this.page = 1
  492. this.errList = []
  493. this.getErrList()
  494. }
  495. },
  496. // 往前选择年份回调
  497. handleDoubleRight() {
  498. if (this.year >= 2025) {
  499. uni.showToast({
  500. title: "不能选择2025年之后",
  501. icon: 'none'
  502. })
  503. } else {
  504. this.year += 1
  505. this.nowTime = this.year + "-" + this.comMonth + "-" + this.day + " " + "00:00:00"
  506. this.page = 1
  507. this.errList = []
  508. this.getErrList()
  509. }
  510. },
  511. // 往后选择月份回调
  512. handleLeft() {
  513. if (this.month <= 1) {
  514. if (this.year <= 2000) {
  515. uni.showToast({
  516. title: "不能选择2000年之前",
  517. icon: 'none'
  518. })
  519. } else {
  520. this.year -= 1
  521. this.month = 12
  522. this.nowTime = this.year + "-" + this.comMonth + "-" + this.day + " " + "00:00:00"
  523. this.page = 1
  524. this.errList = []
  525. this.getErrList()
  526. }
  527. } else {
  528. this.month -= 1
  529. this.nowTime = this.year + "-" + this.comMonth + "-" + this.day + " " + "00:00:00"
  530. this.page = 1
  531. this.errList = []
  532. this.getErrList()
  533. }
  534. },
  535. // 往前选择月份回调
  536. handleRight() {
  537. if (this.month >= 12) {
  538. if (this.year >= 2025) {
  539. uni.showToast({
  540. title: "不能选择2025年之后",
  541. icon: 'none'
  542. })
  543. } else {
  544. this.year += 1
  545. this.month = 1
  546. this.nowTime = this.year + "-" + this.comMonth + "-" + this.day + " " + "00:00:00"
  547. this.page = 1
  548. this.errList = []
  549. this.getErrList()
  550. }
  551. } else {
  552. this.month += 1
  553. this.nowTime = this.year + "-" + this.comMonth + "-" + this.day + " " + "00:00:00"
  554. this.page = 1
  555. this.errList = []
  556. this.getErrList()
  557. }
  558. },
  559. // 格式化时间
  560. format_time(timestamp) {
  561. //时间戳为10位需*1000,时间戳为13位的话不需乘1000
  562. var date = new Date(timestamp);
  563. var h = (date.getHours() < 10 ? '0' + date.getHours() : date.getHours()) + ':';
  564. var m = (date.getMinutes() < 10 ? '0' + date.getMinutes() : date.getMinutes());
  565. let strDate = h + m;
  566. return strDate;
  567. }
  568. }
  569. }
  570. </script>
  571. <style lang="scss" scoped>
  572. .container {
  573. width: 100vw;
  574. height: calc(100vh - 128rpx);
  575. // overflow-y: auto;
  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: 150rpx;
  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. width: 710rpx;
  731. border-radius: 7rpx;
  732. background-color: #fff;
  733. .e_header {
  734. display: flex;
  735. align-items: center;
  736. width: 690rpx;
  737. height: 121rpx;
  738. .left {
  739. flex: 1;
  740. margin-left: 30rpx;
  741. font-size: 32rpx;
  742. font-weight: 500;
  743. }
  744. .right {
  745. flex: 1;
  746. display: flex;
  747. justify-content: flex-end;
  748. align-items: center;
  749. margin-right: 32rpx;
  750. .icon {
  751. margin-right: 10rpx;
  752. width: 26rpx;
  753. height: 26rpx;
  754. line-height: 26rpx;
  755. img {
  756. width: 100%;
  757. height: 100%;
  758. }
  759. }
  760. .info {
  761. width: 56rpx;
  762. height: 41rpx;
  763. font-size: 28rpx;
  764. color: #2A82E4;
  765. }
  766. }
  767. }
  768. .e_calendar {
  769. display: flex;
  770. justify-content: flex-end;
  771. align-items: center;
  772. .double {
  773. margin-right: 30rpx;
  774. width: 40rpx;
  775. height: 40rpx;
  776. img {
  777. width: 100%;
  778. height: 100%;
  779. }
  780. }
  781. .single {
  782. width: 40rpx;
  783. height: 40rpx;
  784. img {
  785. width: 80%;
  786. height: 70%;
  787. }
  788. }
  789. .single2 {
  790. margin-right: 30rpx;
  791. width: 40rpx;
  792. height: 40rpx;
  793. img {
  794. width: 100%;
  795. height: 70%;
  796. }
  797. }
  798. .time {
  799. width: 180rpx;
  800. height: 44rpx;
  801. font-size: 32rpx;
  802. text-align: center;
  803. }
  804. }
  805. .e_list {
  806. display: flex;
  807. flex-wrap: wrap;
  808. justify-content: space-evenly;
  809. align-items: center;
  810. margin-top: 20rpx;
  811. padding: 30rpx;
  812. padding-bottom: 150rpx;
  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. }
  860. .tab_bar {
  861. z-index: 9999;
  862. position: fixed;
  863. left: 0;
  864. // right: 0;
  865. bottom: 0;
  866. display: flex;
  867. width: 750rpx;
  868. height: 128rpx;
  869. border-top: 1rpx solid #CCC;
  870. background-color: #fff;
  871. .tab_box {
  872. flex: 1;
  873. display: flex;
  874. flex-direction: column;
  875. justify-content: center;
  876. align-items: center;
  877. .tab_img {
  878. width: 54rpx;
  879. height: 48rpx;
  880. margin-bottom: 10rpx;
  881. }
  882. .tab_title {
  883. font-size: 20rpx;
  884. }
  885. .tab_title_active {
  886. font-size: 20rpx;
  887. color: #0082FC;
  888. }
  889. }
  890. }
  891. // 修改选中日期盒子圆角
  892. ::v-deep .uni-calendar-item--isDay {
  893. border-radius: 50rpx;
  894. }
  895. ::v-deep .uni-calendar-item--checked {
  896. border-radius: 50rpx;
  897. }
  898. </style>