stat.vue 21 KB

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