home.vue 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763
  1. <template>
  2. <view class="container">
  3. <view class="placeholder"></view>
  4. <!-- 头部学生信息区域 -->
  5. <view class="header">
  6. <view class="img"><img :src="userInfo.headImage || '../static/imgs/headImage.png'" /></view>
  7. <view class="msg">
  8. <view class="name">{{ userInfo.name || '用户' }}</view>
  9. <view class="major">{{ userInfo.college || '南昌交通学院' }}</view>
  10. </view>
  11. </view>
  12. <!-- 主体打卡区域 -->
  13. <view class="body">
  14. <!-- 卡片区域 -->
  15. <view class="card" v-if="list.length">
  16. <!-- 每一个卡片区域 -->
  17. <view :class="activeid == item.id ? 'active_box' : 'item'" v-for="item in list" :key="item.id" @click="handleClick(item)">
  18. <view class="item_box">
  19. <view class="title">{{ item.ruleName }}</view>
  20. <view class="time">{{ item.timeRange }}</view>
  21. <view class="type">
  22. <img v-if="item.status == 4" src="./imgs/success.png" />
  23. <span v-if="item.status == 4">{{ format_time(item.updateTime) }}</span>
  24. <span v-if="item.status == 4">已打卡</span>
  25. <span v-if="item.status == 3">已超时</span>
  26. <span v-if="item.status == 1 || item.status == 2">未打卡</span>
  27. </view>
  28. </view>
  29. </view>
  30. </view>
  31. <!-- list数组为空时的占位盒子 -->
  32. <view class="card" v-else></view>
  33. <!-- 打卡区域 -->
  34. <view :class="{ clock: flags, active: !flags }" @click="handlePunch(contrastObj)">
  35. <view class="info" v-if="flags">打卡</view>
  36. <view class="info" v-else>无法打卡</view>
  37. <view class="time">{{ nowTime }}</view>
  38. </view>
  39. <!-- 提示信息位置 -->
  40. <view class="address" v-if="flags">{{ address }}</view>
  41. <view class="address" v-else>{{ notes }}</view>
  42. </view>
  43. <!-- 底部导航栏区域 -->
  44. <view class="tab_bar">
  45. <navigator open-type="redirect" url="/pagesClockIn/home/home" class="tab_box">
  46. <img v-if="pageUrl == 'pagesClockIn/home/home'" src="../static/imgs/home_active.png" />
  47. <img v-else src="../static/imgs/home.png" />
  48. <view v-if="pageUrl == 'pagesClockIn/home/home'" class="tab_title_active">首页</view>
  49. <view v-else class="tab_title">首页</view>
  50. </navigator>
  51. <navigator open-type="redirect" url="/pagesClockIn/stat/stat" class="tab_box">
  52. <img v-if="pageUrl == 'pagesClockIn/stat/stat'" src="../static/imgs/stat_active.png" />
  53. <img v-else src="../static/imgs/stat.png" />
  54. <view v-if="pageUrl == 'pagesClockIn/stat/stat'" class="tab_title_active">统计</view>
  55. <view v-else class="tab_title">统计</view>
  56. </navigator>
  57. <navigator open-type="redirect" v-if="showTab" url="/pagesClockIn/my/my" class="tab_box">
  58. <img v-if="pageUrl == 'pagesClockIn/my/my'" src="../static/imgs/my_active.png" />
  59. <img v-else src="../static/imgs/my.png" />
  60. <view v-if="pageUrl == 'pagesClockIn/my/my'" class="tab_title_active">我的</view>
  61. <view v-else class="tab_title">我的</view>
  62. </navigator>
  63. </view>
  64. <!-- 认证结果弹窗 -->
  65. <uni-popup ref="popup" :is-mask-click="false">
  66. <view class="popup-content">
  67. <view class="title">
  68. <view class="icon"><img src="./imgs/success2.png" /></view>
  69. <view class="title_info">打卡成功</view>
  70. </view>
  71. <view class="time">{{ nowTime_pop }}</view>
  72. <view class="popup_button" @click="handleGoHome">我知道了</view>
  73. </view>
  74. </uni-popup>
  75. </view>
  76. </template>
  77. <script>
  78. var QQMapWX = require('../util/qqmap-wx-jssdk1.1/qqmap-wx-jssdk')
  79. var qqmapsdk
  80. export default {
  81. data() {
  82. return {
  83. // 用户信息
  84. userInfo: {},
  85. // 打卡规则列表
  86. list: [],
  87. // 当前时间
  88. nowTime: '',
  89. // 弹窗当前时间
  90. nowTime_pop: '',
  91. // 当前定位位置信息
  92. address: '',
  93. // 定时器标识
  94. timer: null,
  95. // 提示信息
  96. notes: '',
  97. // 当前显示的是哪个规则id
  98. activeid: null,
  99. // 当前时间的时间戳
  100. timestamp: null,
  101. // 当前显示的规则具体信息
  102. contrastObj: {},
  103. // 当前用户定位经度
  104. myLng: 0,
  105. // 当前用户定位纬度
  106. myLat: 0,
  107. // 签到点中心经度
  108. centerLng: 0,
  109. // 签到点中心纬度
  110. centerLat: 0,
  111. // 签到半径
  112. radius: 0,
  113. // 距离签到点的距离
  114. distance: 0,
  115. // 是否可以打卡的标识
  116. flags: false,
  117. // 当前页面的路由地址
  118. pageUrl: '',
  119. // 是否显示底部 我的 导航栏
  120. showTab: false,
  121. // 是否需要人脸识别
  122. faceRecognition: true,
  123. // 是否需要拍摄场景照片
  124. takePicture: true
  125. }
  126. },
  127. onLoad() {
  128. // 获取用户的个人信息数据
  129. this.getUserInfo()
  130. // 实例化API核心类
  131. qqmapsdk = new QQMapWX({
  132. // 申请的key
  133. key: 'X57BZ-ZISE3-KTN3O-3P45H-C3J7Q-D5B67'
  134. })
  135. // 获取当前系统时间
  136. this.getNowTime()
  137. },
  138. onShow() {
  139. this.getPageUrl()
  140. // 获取当前位置的详细信息
  141. this.getLocationData()
  142. // 获取当前时间的时间戳
  143. this.getTimestamp()
  144. },
  145. onUnload() {
  146. if (this.timer) {
  147. clearInterval(this.timer)
  148. }
  149. },
  150. // 下拉刷新
  151. onPullDownRefresh() {
  152. uni.removeStorageSync('manager')
  153. uni.removeStorageSync('sub-administrator')
  154. qqmapsdk = new QQMapWX({
  155. // 申请的key
  156. key: 'X57BZ-ZISE3-KTN3O-3P45H-C3J7Q-D5B67'
  157. })
  158. this.getNowTime()
  159. this.getTimestamp()
  160. this.getUserInfo()
  161. this.getLocationData()
  162. setTimeout(() => {
  163. uni.stopPullDownRefresh()
  164. }, 1500)
  165. },
  166. methods: {
  167. getPageUrl() {
  168. // 获取当前打开过的页面路由数组
  169. let routes = getCurrentPages()
  170. // 获取当前页面路由,也就是最后一个打开的页面路由
  171. let curRoute = routes[routes.length - 1].route
  172. this.pageUrl = curRoute
  173. },
  174. // 获取当前时间
  175. getNowTime() {
  176. if (this.timer) {
  177. clearInterval(this.timer)
  178. }
  179. this.timer = setInterval(() => {
  180. let date = new Date()
  181. let hours = date.getHours() < 10 ? '0' + date.getHours() : date.getHours()
  182. let minutes = date.getMinutes() < 10 ? '0' + date.getMinutes() : date.getMinutes()
  183. let seconds = date.getSeconds() < 10 ? '0' + date.getSeconds() : date.getSeconds()
  184. this.nowTime = hours + ':' + minutes + ':' + seconds
  185. }, 1000)
  186. },
  187. // 获取当前时间的时间戳
  188. getTimestamp() {
  189. let dates = new Date()
  190. let times = dates.getTime()
  191. this.timestamp = times
  192. },
  193. // 获取用户详细信息
  194. async getUserInfo() {
  195. let res = await this.$myRequest_clockIn({
  196. url: `/attendance/api/system/user/detail`
  197. })
  198. // console.log(res);
  199. if (res.code == 200) {
  200. this.userInfo = res.data
  201. uni.setStorageSync('userInfo', this.userInfo)
  202. if (this.userInfo.roles) {
  203. let temList = []
  204. this.userInfo.roles.forEach((ele) => {
  205. temList.push(ele.id)
  206. })
  207. let flag = temList.includes('2' || 2)
  208. let flag2 = temList.includes('3' || 3)
  209. if (flag) {
  210. uni.setStorageSync('manager', flag)
  211. } else {
  212. uni.removeStorageSync('manager')
  213. }
  214. if (flag2) {
  215. uni.setStorageSync('sub-administrator', flag2)
  216. } else {
  217. uni.removeStorageSync('sub-administrator')
  218. }
  219. let flag_show = uni.getStorageSync('manager')
  220. let flag_show2 = uni.getStorageSync('sub-administrator')
  221. if (flag_show || flag_show2) {
  222. this.showTab = true
  223. } else {
  224. this.showTab = false
  225. }
  226. }
  227. }
  228. },
  229. // 获取当前定位位置信息
  230. getLocationData() {
  231. uni.getSetting({
  232. success: (res) => {
  233. if (!res.authSetting['scope.userLocation']) {
  234. uni.authorize({
  235. scope: 'scope.userLocation',
  236. success: (res) => {
  237. // 授权成功
  238. this.getAddress()
  239. },
  240. fail: () => {
  241. uni.showModal({
  242. content: '获取定位权限失败将会影响使用部分功能,是否去设置打开?',
  243. confirmText: '确认',
  244. cancelText: '取消',
  245. success: (res) => {
  246. if (res.confirm) {
  247. uni.openSetting({
  248. success: (res) => {
  249. console.log(res)
  250. this.getLocationData()
  251. }
  252. })
  253. } else {
  254. uni.showToast({
  255. title: '获取定位权限失败',
  256. icon: 'none'
  257. })
  258. }
  259. }
  260. })
  261. }
  262. })
  263. } else {
  264. this.getAddress()
  265. }
  266. }
  267. })
  268. },
  269. getAddress() {
  270. uni.showLoading({
  271. title: '定位中,请稍后',
  272. mask: true
  273. })
  274. qqmapsdk.reverseGeocoder({
  275. success: (res) => {
  276. // console.log(res);
  277. if (res.status == 0) {
  278. // 获取详细地址信息 经纬度
  279. this.address = res.result.address
  280. this.myLat = res.result.location.lat
  281. this.myLng = res.result.location.lng
  282. // 获取当天的打卡列表数组
  283. this.getRulesList()
  284. } else {
  285. uni.showToast({
  286. title: '请求定位失败',
  287. icon: 'none'
  288. })
  289. }
  290. },
  291. fail: (error) => {
  292. uni.getLocation({
  293. type: 'gcj02',
  294. success: (res) => {
  295. this.myLat = res.latitude
  296. this.myLng = res.longitude
  297. this.address = '未知地址'
  298. this.getRulesList()
  299. }
  300. })
  301. }
  302. })
  303. },
  304. // 获取打卡规则列表
  305. async getRulesList() {
  306. let res = await this.$myRequest_clockIn({
  307. url: '/attendance/api/sign/check/in/list/today'
  308. })
  309. // console.log(res);
  310. if (res.code == 200) {
  311. if (res.data.length == 0) {
  312. this.flags = false
  313. this.notes = '无打卡任务无需打卡'
  314. } else {
  315. this.flags = true
  316. this.list = res.data
  317. this.activeid = this.list[0].id
  318. this.faceRecognition = this.list[0].faceRecognition
  319. this.takePicture = this.list[0].takePicture
  320. this.contrastObj = this.list[0]
  321. this.changeType()
  322. }
  323. }
  324. },
  325. // 对比信息改变打卡的状态显示
  326. changeType() {
  327. if (this.contrastObj.status == 4) {
  328. this.flags = false
  329. this.notes = '已打卡,无需再次打卡'
  330. } else {
  331. // 没有到打卡时间 或者 超过打卡时间 的状态
  332. if (this.timestamp < this.contrastObj.beginTime || this.timestamp > this.contrastObj.endTime) {
  333. this.flags = false
  334. this.notes = '不在打卡时间段内,无法打卡'
  335. }
  336. // 到了打卡时间,判断是否在打卡范围内
  337. else {
  338. if (this.contrastObj.locations.length) {
  339. let temList = []
  340. temList = this.contrastObj.locations.map((ele) => {
  341. this.centerLat = ele.lat
  342. this.centerLng = ele.lng
  343. this.radius = ele.radius
  344. let red1 = (this.myLat * Math.PI) / 180.0
  345. let red2 = (this.centerLat * Math.PI) / 180.0
  346. let a = red1 - red2
  347. let b = (this.myLng * Math.PI) / 180.0 - (this.centerLng * Math.PI) / 180.0
  348. let R = 6378137
  349. let distance = R * 2 * Math.asin(Math.sqrt(Math.pow(Math.sin(a / 2), 2) + Math.cos(red1) * Math.cos(red2) * Math.pow(Math.sin(b / 2), 2)))
  350. this.distance = distance.toFixed(2) * 1
  351. // console.log(this.distance);
  352. // console.log(this.radius);
  353. if (this.distance <= this.radius) {
  354. return 1
  355. } else {
  356. return 2
  357. }
  358. })
  359. let temFlag = temList.indexOf(1)
  360. if (temFlag == -1) {
  361. this.flags = false
  362. this.notes = '不在管理员设定范围内,无法打卡'
  363. } else {
  364. this.flags = true
  365. }
  366. }
  367. }
  368. }
  369. },
  370. // 点击每一个打卡规则回调
  371. handleClick(item) {
  372. // console.log(item);
  373. this.getTimestamp()
  374. this.contrastObj = item
  375. this.activeid = item.id
  376. this.faceRecognition = item.faceRecognition
  377. this.takePicture = item.takePicture
  378. this.changeType()
  379. },
  380. // 点击打卡按钮回调
  381. handlePunch(info) {
  382. if (this.flags) {
  383. let obj = JSON.stringify(info)
  384. // 如果场景照片和人脸识别都需要
  385. if (this.faceRecognition && this.takePicture) {
  386. uni.navigateTo({
  387. url: `/pagesClockIn/location/location?obj=${obj}`
  388. })
  389. }
  390. // 如果都不需要
  391. else if (!this.faceRecognition && !this.takePicture) {
  392. this.handleUploading()
  393. }
  394. // 如果只需要场景照片
  395. else if (this.takePicture) {
  396. uni.navigateTo({
  397. url: `/pagesClockIn/location/location?obj=${obj}&flag=1`
  398. })
  399. }
  400. // 如果只需要人脸识别
  401. else if (this.faceRecognition) {
  402. uni.navigateTo({
  403. url: `/pagesClockIn/authentication/authentication?id=${this.contrastObj.id}&address=${this.address}&latitude=${this.myLat}&longitude=${this.myLng}&flag=1`
  404. })
  405. // uni.navigateTo({
  406. // url: `/pagesClockIn/location/location?obj=${obj}&flag=1`
  407. // })
  408. }
  409. }
  410. },
  411. // handlePunch(info) {
  412. // if (this.flags) {
  413. // let obj = JSON.stringify(info)
  414. // // 如果需要场景照片
  415. // if (this.takePicture) {
  416. // uni.navigateTo({
  417. // url: `/pagesClockIn/location/location?obj=${obj}&flag=1`
  418. // })
  419. // } else {
  420. // this.handleUploading()
  421. // }
  422. // }
  423. // },
  424. // 打卡请求
  425. async handleUploading() {
  426. let res = await this.$myRequest_clockIn({
  427. url: '/attendance/api/sign/check/in/update',
  428. method: 'put',
  429. header: {
  430. Authorization: uni.getStorageSync('token'),
  431. platform: 2,
  432. 'Accept-Language': 'zh-CN,zh;q=0.9'
  433. },
  434. data: {
  435. id: this.contrastObj.id,
  436. lat: this.myLat,
  437. lng: this.myLng,
  438. location: this.address
  439. }
  440. })
  441. // console.log(res);
  442. if (res.code == 200) {
  443. this.getNowTimePop()
  444. this.$refs.popup.open()
  445. }
  446. },
  447. // 点击 我知道了按钮 跳回首页
  448. handleGoHome() {
  449. this.$refs.popup.close()
  450. uni.reLaunch({
  451. url: '/pagesClockIn/home/home'
  452. })
  453. },
  454. getNowTimePop() {
  455. let date = new Date()
  456. let hours = date.getHours() < 10 ? '0' + date.getHours() : date.getHours()
  457. let minutes = date.getMinutes() < 10 ? '0' + date.getMinutes() : date.getMinutes()
  458. let seconds = date.getSeconds() < 10 ? '0' + date.getSeconds() : date.getSeconds()
  459. this.nowTime_pop = hours + ':' + minutes + ':' + seconds
  460. },
  461. // 格式化时间
  462. format_time(timestamp) {
  463. //时间戳为10位需*1000,时间戳为13位的话不需乘1000
  464. var date = new Date(timestamp)
  465. var h = (date.getHours() < 10 ? '0' + date.getHours() : date.getHours()) + ':'
  466. var m = date.getMinutes() < 10 ? '0' + date.getMinutes() : date.getMinutes()
  467. let strDate = h + m
  468. return strDate
  469. }
  470. }
  471. }
  472. </script>
  473. <style lang="scss" scoped>
  474. .container {
  475. width: 100vw;
  476. height: 100vh;
  477. background-color: #f2f2f2;
  478. .placeholder {
  479. height: 20rpx;
  480. }
  481. .header {
  482. display: flex;
  483. margin: 0 30rpx 30rpx 30rpx;
  484. width: 690rpx;
  485. height: 130rpx;
  486. background-color: #fff;
  487. .img {
  488. margin: 30rpx;
  489. width: 70rpx;
  490. height: 70rpx;
  491. img {
  492. width: 100%;
  493. height: 100%;
  494. }
  495. }
  496. .msg {
  497. margin: 30rpx 0;
  498. height: 70rpx;
  499. line-height: 36rpx;
  500. .name {
  501. font-size: 32rpx;
  502. font-weight: 400;
  503. }
  504. .major {
  505. font-size: 24rpx;
  506. font-weight: 400;
  507. color: #a6a6a6;
  508. }
  509. }
  510. }
  511. .body {
  512. margin: 0 30rpx;
  513. width: 690rpx;
  514. height: 75vh;
  515. background-color: #fff;
  516. .card {
  517. padding-top: 30rpx;
  518. white-space: nowrap;
  519. height: 160rpx;
  520. overflow-x: auto;
  521. .active_box {
  522. display: inline-block;
  523. margin: 0 15rpx;
  524. width: 300rpx;
  525. height: 130rpx;
  526. line-height: 12rpx;
  527. border-radius: 8rpx;
  528. font-weight: 400;
  529. background-color: #e6e6e6;
  530. border: 1rpx solid #0094fc;
  531. .item_box {
  532. display: flex;
  533. flex-direction: column;
  534. justify-content: space-evenly;
  535. height: 130rpx;
  536. padding-left: 30rpx;
  537. .title {
  538. font-size: 28rpx;
  539. }
  540. .time {
  541. font-size: 24rpx;
  542. }
  543. .type {
  544. font-size: 24rpx;
  545. color: #808080;
  546. img {
  547. margin-right: 10rpx;
  548. width: 20rpx;
  549. height: 20rpx;
  550. }
  551. }
  552. }
  553. }
  554. .item {
  555. display: inline-block;
  556. margin: 0 15rpx;
  557. width: 300rpx;
  558. height: 130rpx;
  559. line-height: 12rpx;
  560. border-radius: 8rpx;
  561. font-weight: 400;
  562. background-color: #e6e6e6;
  563. .item_box {
  564. display: flex;
  565. flex-direction: column;
  566. justify-content: space-evenly;
  567. height: 130rpx;
  568. padding-left: 30rpx;
  569. .title {
  570. font-size: 28rpx;
  571. }
  572. .time {
  573. font-size: 24rpx;
  574. }
  575. .type {
  576. font-size: 24rpx;
  577. color: #808080;
  578. img {
  579. margin-right: 10rpx;
  580. width: 20rpx;
  581. height: 20rpx;
  582. }
  583. }
  584. }
  585. }
  586. }
  587. .clock {
  588. display: flex;
  589. flex-direction: column;
  590. justify-content: center;
  591. align-items: center;
  592. margin: auto;
  593. margin-top: 145rpx;
  594. width: 300rpx;
  595. height: 300rpx;
  596. border-radius: 150rpx;
  597. text-align: center;
  598. color: #fff;
  599. background: linear-gradient(180deg, #00acfc 0%, #0082fc 100%);
  600. .info {
  601. height: 58rpx;
  602. font-size: 40rpx;
  603. font-weight: 700;
  604. }
  605. .time {
  606. height: 41rpx;
  607. font-size: 28rpx;
  608. font-weight: 400;
  609. }
  610. }
  611. .active {
  612. display: flex;
  613. flex-direction: column;
  614. justify-content: center;
  615. align-items: center;
  616. margin: auto;
  617. margin-top: 145rpx;
  618. width: 300rpx;
  619. height: 300rpx;
  620. border-radius: 150rpx;
  621. text-align: center;
  622. color: #fff;
  623. background: linear-gradient(180deg, #cccccc 0%, #b3b3b3 100%);
  624. .info {
  625. height: 58rpx;
  626. font-size: 40rpx;
  627. font-weight: 700;
  628. }
  629. .time {
  630. height: 41rpx;
  631. font-size: 28rpx;
  632. font-weight: 400;
  633. }
  634. }
  635. .address {
  636. margin-top: 34rpx;
  637. height: 35rpx;
  638. line-height: 35rpx;
  639. text-align: center;
  640. font-size: 24rpx;
  641. font-weight: 400;
  642. color: #808080;
  643. }
  644. }
  645. .tab_bar {
  646. position: fixed;
  647. left: 0;
  648. bottom: 0;
  649. display: flex;
  650. width: 750rpx;
  651. height: 128rpx;
  652. border-top: 1rpx solid #ccc;
  653. background-color: #fff;
  654. .tab_box {
  655. flex: 1;
  656. display: flex;
  657. flex-direction: column;
  658. justify-content: center;
  659. align-items: center;
  660. img {
  661. margin-bottom: 10rpx;
  662. width: 54rpx;
  663. height: 48rpx;
  664. }
  665. .tab_title {
  666. font-size: 20rpx;
  667. }
  668. .tab_title_active {
  669. font-size: 20rpx;
  670. color: #0082fc;
  671. }
  672. }
  673. }
  674. .popup-content {
  675. display: flex;
  676. flex-direction: column;
  677. justify-content: space-around;
  678. align-items: center;
  679. width: 630rpx;
  680. height: 376rpx;
  681. border-radius: 33rpx;
  682. background-color: #fff;
  683. .title {
  684. display: flex;
  685. justify-content: center;
  686. align-items: center;
  687. .icon {
  688. width: 40rpx;
  689. height: 40rpx;
  690. img {
  691. width: 100%;
  692. height: 100%;
  693. }
  694. }
  695. .title_info {
  696. margin-left: 8rpx;
  697. font-size: 36rpx;
  698. font-weight: 800;
  699. color: #0082fc;
  700. }
  701. }
  702. .time {
  703. font-size: 32rpx;
  704. }
  705. .popup_button {
  706. width: 50%;
  707. text-align: center;
  708. font-size: 32rpx;
  709. color: #0082fc;
  710. }
  711. }
  712. }
  713. </style>