stat.vue 20 KB

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