stat.vue 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979
  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. setTimeout(() => {
  289. this.getErrList()
  290. }, 500)
  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. 'Accept-Language': 'zh-CN,zh;q=0.9'
  446. }
  447. })
  448. // console.log(res);
  449. if (res.code == 200) {
  450. uni.showToast({
  451. title: "通知成功"
  452. })
  453. }
  454. }
  455. }
  456. });
  457. } else {
  458. uni.showToast({
  459. title: "当前异常人员名单为空,无法通知",
  460. icon: 'none'
  461. })
  462. }
  463. },
  464. // 点击查看明细回调
  465. handleLookDetail() {
  466. // console.log(this.nowTime);
  467. uni.navigateTo({
  468. url: `/pagesClockIn/particulars/particulars?nowTime_day=${this.nowTime}&type=1`
  469. })
  470. },
  471. // 跳转统计详情页面
  472. goToDetail() {
  473. if (this.current == 1) {
  474. uni.navigateTo({
  475. url: `/pagesClockIn/statDetail/statDetail`
  476. })
  477. } else {
  478. uni.navigateTo({
  479. url: "/pagesClockIn/particulars/particulars?type=2"
  480. })
  481. }
  482. },
  483. // 往后选择年份回调
  484. handleDoubleLeft() {
  485. if (this.year <= 2000) {
  486. uni.showToast({
  487. title: "不能选择2000年之前",
  488. icon: 'none'
  489. })
  490. } else {
  491. this.year -= 1
  492. this.nowTime = this.year + "-" + this.comMonth + "-" + this.day + " " + "00:00:00"
  493. this.page = 1
  494. this.errList = []
  495. this.getErrList()
  496. }
  497. },
  498. // 往前选择年份回调
  499. handleDoubleRight() {
  500. if (this.year >= 2025) {
  501. uni.showToast({
  502. title: "不能选择2025年之后",
  503. icon: 'none'
  504. })
  505. } else {
  506. this.year += 1
  507. this.nowTime = this.year + "-" + this.comMonth + "-" + this.day + " " + "00:00:00"
  508. this.page = 1
  509. this.errList = []
  510. this.getErrList()
  511. }
  512. },
  513. // 往后选择月份回调
  514. handleLeft() {
  515. if (this.month <= 1) {
  516. if (this.year <= 2000) {
  517. uni.showToast({
  518. title: "不能选择2000年之前",
  519. icon: 'none'
  520. })
  521. } else {
  522. this.year -= 1
  523. this.month = 12
  524. this.nowTime = this.year + "-" + this.comMonth + "-" + this.day + " " + "00:00:00"
  525. this.page = 1
  526. this.errList = []
  527. this.getErrList()
  528. }
  529. } else {
  530. this.month -= 1
  531. this.nowTime = this.year + "-" + this.comMonth + "-" + this.day + " " + "00:00:00"
  532. this.page = 1
  533. this.errList = []
  534. this.getErrList()
  535. }
  536. },
  537. // 往前选择月份回调
  538. handleRight() {
  539. if (this.month >= 12) {
  540. if (this.year >= 2025) {
  541. uni.showToast({
  542. title: "不能选择2025年之后",
  543. icon: 'none'
  544. })
  545. } else {
  546. this.year += 1
  547. this.month = 1
  548. this.nowTime = this.year + "-" + this.comMonth + "-" + this.day + " " + "00:00:00"
  549. this.page = 1
  550. this.errList = []
  551. this.getErrList()
  552. }
  553. } else {
  554. this.month += 1
  555. this.nowTime = this.year + "-" + this.comMonth + "-" + this.day + " " + "00:00:00"
  556. this.page = 1
  557. this.errList = []
  558. this.getErrList()
  559. }
  560. },
  561. // 格式化时间
  562. format_time(timestamp) {
  563. //时间戳为10位需*1000,时间戳为13位的话不需乘1000
  564. var date = new Date(timestamp);
  565. var h = (date.getHours() < 10 ? '0' + date.getHours() : date.getHours()) + ':';
  566. var m = (date.getMinutes() < 10 ? '0' + date.getMinutes() : date.getMinutes());
  567. let strDate = h + m;
  568. return strDate;
  569. }
  570. }
  571. }
  572. </script>
  573. <style lang="scss" scoped>
  574. .container {
  575. width: 100vw;
  576. height: calc(100vh - 128rpx);
  577. // overflow-y: auto;
  578. background-color: #F2F2F2;
  579. .placeholder {
  580. height: 20rpx;
  581. }
  582. .control {
  583. margin-bottom: 20rpx;
  584. width: 750rpx;
  585. height: 90rpx;
  586. background-color: #fff;
  587. }
  588. .header {
  589. margin: 0 auto;
  590. width: 710rpx;
  591. height: 236rpx;
  592. background-color: #fff;
  593. .title {
  594. display: flex;
  595. height: 92rpx;
  596. .month {
  597. flex: 8;
  598. margin: 30rpx 0 0 30rpx;
  599. font-size: 32rpx;
  600. font-weight: 500
  601. }
  602. .right {
  603. display: flex;
  604. justify-content: center;
  605. align-items: center;
  606. flex: 1;
  607. img {
  608. width: 15rpx;
  609. height: 30rpx
  610. }
  611. }
  612. }
  613. .state {
  614. display: flex;
  615. height: 144rpx;
  616. .err {
  617. flex: 1;
  618. display: flex;
  619. flex-direction: column;
  620. justify-content: center;
  621. align-items: center;
  622. .number {
  623. font-size: 46rpx;
  624. font-weight: 700;
  625. }
  626. .mes {
  627. font-size: 28rpx;
  628. color: #999999;
  629. }
  630. }
  631. .success {
  632. flex: 1;
  633. display: flex;
  634. flex-direction: column;
  635. justify-content: center;
  636. align-items: center;
  637. .number {
  638. font-size: 46rpx;
  639. font-weight: 700;
  640. }
  641. .mes {
  642. font-size: 28rpx;
  643. color: #999999;
  644. }
  645. }
  646. }
  647. }
  648. .calendar {
  649. margin: 0 auto;
  650. margin-top: 30rpx;
  651. width: 710rpx;
  652. background-color: #fff;
  653. .calendar_title {
  654. padding-left: 30rpx;
  655. height: 100rpx;
  656. line-height: 100rpx;
  657. font-size: 32rpx;
  658. font-weight: 500;
  659. span {
  660. font-size: 26rpx;
  661. color: #999999
  662. }
  663. }
  664. .calendar_body {
  665. height: 690rpx;
  666. }
  667. .calendar_foot {
  668. padding: 0 30rpx;
  669. padding-bottom: 150rpx;
  670. .foot_item {
  671. box-sizing: border-box;
  672. padding: 30rpx;
  673. display: flex;
  674. flex-direction: column;
  675. justify-content: space-evenly;
  676. height: 130rpx;
  677. font-size: 24rpx;
  678. color: #808080;
  679. .box {
  680. display: flex;
  681. align-items: center;
  682. .circular {
  683. margin-right: 18rpx;
  684. width: 12rpx;
  685. height: 12rpx;
  686. border-radius: 6rpx;
  687. background-color: #31C20E;
  688. }
  689. .color {
  690. background-color: #999999;
  691. }
  692. span {
  693. margin-left: 18rpx;
  694. }
  695. }
  696. }
  697. }
  698. .progress {
  699. position: relative;
  700. display: flex;
  701. justify-content: center;
  702. padding: 0 30rpx;
  703. height: 121px;
  704. .chart {
  705. margin-top: 20rpx;
  706. width: 170px;
  707. height: 100%;
  708. }
  709. .look {
  710. position: absolute;
  711. top: 40rpx;
  712. right: 36rpx;
  713. display: flex;
  714. align-items: center;
  715. width: 150rpx;
  716. height: 42rpx;
  717. .info {
  718. margin-right: 15rpx;
  719. font-size: 28rpx;
  720. color: #A6A6A6;
  721. }
  722. img {
  723. width: 16rpx;
  724. height: 24rpx;
  725. }
  726. }
  727. }
  728. }
  729. .errPeople {
  730. margin: 0 auto;
  731. margin-top: 32rpx;
  732. width: 710rpx;
  733. border-radius: 7rpx;
  734. background-color: #fff;
  735. .e_header {
  736. display: flex;
  737. align-items: center;
  738. width: 690rpx;
  739. height: 121rpx;
  740. .left {
  741. flex: 1;
  742. margin-left: 30rpx;
  743. font-size: 32rpx;
  744. font-weight: 500;
  745. }
  746. .right {
  747. flex: 1;
  748. display: flex;
  749. justify-content: flex-end;
  750. align-items: center;
  751. margin-right: 32rpx;
  752. .icon {
  753. margin-right: 10rpx;
  754. width: 26rpx;
  755. height: 26rpx;
  756. line-height: 26rpx;
  757. img {
  758. width: 100%;
  759. height: 100%;
  760. }
  761. }
  762. .info {
  763. width: 56rpx;
  764. height: 41rpx;
  765. font-size: 28rpx;
  766. color: #2A82E4;
  767. }
  768. }
  769. }
  770. .e_calendar {
  771. display: flex;
  772. justify-content: flex-end;
  773. align-items: center;
  774. .double {
  775. margin-right: 30rpx;
  776. width: 40rpx;
  777. height: 40rpx;
  778. img {
  779. width: 100%;
  780. height: 100%;
  781. }
  782. }
  783. .single {
  784. width: 40rpx;
  785. height: 40rpx;
  786. img {
  787. width: 80%;
  788. height: 70%;
  789. }
  790. }
  791. .single2 {
  792. margin-right: 30rpx;
  793. width: 40rpx;
  794. height: 40rpx;
  795. img {
  796. width: 100%;
  797. height: 70%;
  798. }
  799. }
  800. .time {
  801. width: 180rpx;
  802. height: 44rpx;
  803. font-size: 32rpx;
  804. text-align: center;
  805. }
  806. }
  807. .e_list {
  808. display: flex;
  809. flex-wrap: wrap;
  810. justify-content: space-evenly;
  811. align-items: center;
  812. margin-top: 20rpx;
  813. padding: 30rpx;
  814. padding-bottom: 150rpx;
  815. width: 630rpx;
  816. .e_box {
  817. display: flex;
  818. flex-direction: column;
  819. justify-content: space-evenly;
  820. align-items: center;
  821. margin-bottom: 20rpx;
  822. width: 180rpx;
  823. height: 190rpx;
  824. .e_img {
  825. width: 100rpx;
  826. height: 100rpx;
  827. img {
  828. width: 100%;
  829. height: 100%;
  830. border-radius: 50%;
  831. }
  832. }
  833. .e_name {
  834. width: 180rpx;
  835. text-align: center;
  836. font-size: 28rpx;
  837. overflow: hidden;
  838. white-space: nowrap;
  839. text-overflow: ellipsis;
  840. }
  841. .e_msg {
  842. font-size: 24rpx;
  843. color: #808080;
  844. }
  845. }
  846. }
  847. .e_list2 {
  848. margin: 0 auto;
  849. padding: 180rpx 0;
  850. text-align: center;
  851. img {
  852. width: 480rpx;
  853. height: 508rpx;
  854. }
  855. .info {
  856. padding-bottom: 50rpx;
  857. color: #5792F0;
  858. }
  859. }
  860. }
  861. }
  862. .tab_bar {
  863. z-index: 9999;
  864. position: fixed;
  865. left: 0;
  866. // right: 0;
  867. bottom: 0;
  868. display: flex;
  869. width: 750rpx;
  870. height: 128rpx;
  871. border-top: 1rpx solid #CCC;
  872. background-color: #fff;
  873. .tab_box {
  874. flex: 1;
  875. display: flex;
  876. flex-direction: column;
  877. justify-content: center;
  878. align-items: center;
  879. .tab_img {
  880. width: 54rpx;
  881. height: 48rpx;
  882. margin-bottom: 10rpx;
  883. }
  884. .tab_title {
  885. font-size: 20rpx;
  886. }
  887. .tab_title_active {
  888. font-size: 20rpx;
  889. color: #0082FC;
  890. }
  891. }
  892. }
  893. // 修改选中日期盒子圆角
  894. ::v-deep .uni-calendar-item--isDay {
  895. border-radius: 50rpx;
  896. }
  897. ::v-deep .uni-calendar-item--checked {
  898. border-radius: 50rpx;
  899. }
  900. </style>