stat.vue 20 KB

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