stat.vue 20 KB

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