stat.vue 21 KB

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