home.vue 18 KB

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