home.vue 18 KB

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