home.vue 18 KB

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