stat.vue 20 KB

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