home.vue 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786
  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. 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 = `不在管理员设定范围内,无法打卡,距离打卡点${this.distance}米,管理员设定的范围为${this.radius}米`
  363. } else {
  364. this.flags = true
  365. }
  366. }
  367. }
  368. this.updateLocation()
  369. }
  370. },
  371. // 每5秒更新当前定位
  372. updateLocation() {
  373. if (this.timer2) {
  374. clearInterval(this.timer2)
  375. }
  376. this.timer2 = setInterval(() => {
  377. qqmapsdk.reverseGeocoder({
  378. success: (res) => {
  379. if (res.status == 0) {
  380. // 获取详细地址信息 经纬度
  381. this.address = res.result.address
  382. this.myLat = res.result.location.lat
  383. this.myLng = res.result.location.lng
  384. this.getTimestamp()
  385. this.changeType()
  386. } else {
  387. uni.showToast({
  388. title: '请求定位失败',
  389. icon: 'none'
  390. })
  391. }
  392. },
  393. fail: (error) => {
  394. uni.getLocation({
  395. type: 'gcj02',
  396. success: (res) => {
  397. this.myLat = res.latitude
  398. this.myLng = res.longitude
  399. this.address = '未知地址'
  400. this.getTimestamp()
  401. this.changeType()
  402. }
  403. })
  404. }
  405. })
  406. }, 5000)
  407. },
  408. // 点击每一个打卡规则回调
  409. handleClick(item) {
  410. if (this.timer2) {
  411. clearInterval(this.timer2)
  412. }
  413. // console.log(item);
  414. this.getTimestamp()
  415. this.contrastObj = item
  416. this.activeid = item.id
  417. this.takePicture = item.takePicture
  418. this.changeType()
  419. },
  420. // 点击打卡按钮回调
  421. handlePunch(info) {
  422. if (this.flags) {
  423. let obj = JSON.stringify(info)
  424. if (this.takePicture) {
  425. uni.navigateTo({
  426. url: `/pagesClockIn/location/location?obj=${obj}`
  427. })
  428. } else {
  429. this.handleUploading()
  430. }
  431. }
  432. },
  433. // 打卡请求
  434. async handleUploading() {
  435. let res = await this.$myRequest_clockIn({
  436. url: '/attendance/api/sign/check/in/update',
  437. method: 'put',
  438. header: {
  439. Authorization: uni.getStorageSync('token'),
  440. platform: 2,
  441. 'Accept-Language': 'zh-CN,zh;q=0.9'
  442. },
  443. data: {
  444. id: this.contrastObj.id,
  445. lat: this.myLat,
  446. lng: this.myLng,
  447. location: this.address
  448. }
  449. })
  450. // console.log(res);
  451. if (res.code == 200) {
  452. this.getNowTimePop()
  453. this.$refs.popup.open()
  454. }
  455. },
  456. // 点击 我知道了按钮 跳回首页
  457. handleGoHome() {
  458. this.$refs.popup.close()
  459. uni.reLaunch({
  460. url: '/pagesClockIn/home/home'
  461. })
  462. },
  463. getNowTimePop() {
  464. let date = new Date()
  465. let hours = date.getHours() < 10 ? '0' + date.getHours() : date.getHours()
  466. let minutes = date.getMinutes() < 10 ? '0' + date.getMinutes() : date.getMinutes()
  467. let seconds = date.getSeconds() < 10 ? '0' + date.getSeconds() : date.getSeconds()
  468. this.nowTime_pop = hours + ':' + minutes + ':' + seconds
  469. },
  470. // 格式化时间
  471. format_time(timestamp) {
  472. //时间戳为10位需*1000,时间戳为13位的话不需乘1000
  473. var date = new Date(timestamp)
  474. var h = (date.getHours() < 10 ? '0' + date.getHours() : date.getHours()) + ':'
  475. var m = date.getMinutes() < 10 ? '0' + date.getMinutes() : date.getMinutes()
  476. let strDate = h + m
  477. return strDate
  478. }
  479. }
  480. }
  481. </script>
  482. <style lang="scss" scoped>
  483. .container {
  484. width: 100vw;
  485. height: 100vh;
  486. background-color: #f2f2f2;
  487. .placeholder {
  488. height: 20rpx;
  489. }
  490. .header {
  491. display: flex;
  492. margin: 0 30rpx 30rpx 30rpx;
  493. width: 690rpx;
  494. height: 130rpx;
  495. background-color: #fff;
  496. .img {
  497. margin: 30rpx;
  498. width: 70rpx;
  499. height: 70rpx;
  500. img {
  501. width: 100%;
  502. height: 100%;
  503. }
  504. }
  505. .msg {
  506. margin: 30rpx 0;
  507. height: 70rpx;
  508. line-height: 36rpx;
  509. .name {
  510. font-size: 32rpx;
  511. font-weight: 400;
  512. }
  513. .major {
  514. font-size: 24rpx;
  515. font-weight: 400;
  516. color: #a6a6a6;
  517. }
  518. }
  519. }
  520. .body {
  521. margin: 0 30rpx;
  522. width: 690rpx;
  523. height: 75vh;
  524. background-color: #fff;
  525. .card {
  526. padding-top: 30rpx;
  527. white-space: nowrap;
  528. height: 160rpx;
  529. overflow-x: auto;
  530. .active_box {
  531. display: inline-block;
  532. margin: 0 15rpx;
  533. width: 300rpx;
  534. height: 130rpx;
  535. line-height: 12rpx;
  536. border-radius: 8rpx;
  537. font-weight: 400;
  538. background-color: #e6e6e6;
  539. border: 1rpx solid #0094fc;
  540. .item_box {
  541. display: flex;
  542. flex-direction: column;
  543. justify-content: space-evenly;
  544. height: 130rpx;
  545. padding-left: 30rpx;
  546. .title {
  547. line-height: 30rpx;
  548. font-size: 28rpx;
  549. overflow: hidden;
  550. white-space: nowrap;
  551. text-overflow: ellipsis;
  552. }
  553. .time {
  554. font-size: 24rpx;
  555. }
  556. .type {
  557. font-size: 24rpx;
  558. color: #808080;
  559. img {
  560. margin-right: 10rpx;
  561. width: 20rpx;
  562. height: 20rpx;
  563. }
  564. }
  565. }
  566. }
  567. .item {
  568. display: inline-block;
  569. margin: 0 15rpx;
  570. width: 300rpx;
  571. height: 130rpx;
  572. line-height: 12rpx;
  573. border-radius: 8rpx;
  574. font-weight: 400;
  575. background-color: #e6e6e6;
  576. .item_box {
  577. display: flex;
  578. flex-direction: column;
  579. justify-content: space-evenly;
  580. height: 130rpx;
  581. padding-left: 30rpx;
  582. .title {
  583. line-height: 30rpx;
  584. font-size: 28rpx;
  585. overflow: hidden;
  586. white-space: nowrap;
  587. text-overflow: ellipsis;
  588. }
  589. .time {
  590. font-size: 24rpx;
  591. }
  592. .type {
  593. font-size: 24rpx;
  594. color: #808080;
  595. img {
  596. margin-right: 10rpx;
  597. width: 20rpx;
  598. height: 20rpx;
  599. }
  600. }
  601. }
  602. }
  603. }
  604. .clock {
  605. display: flex;
  606. flex-direction: column;
  607. justify-content: center;
  608. align-items: center;
  609. margin: auto;
  610. margin-top: 145rpx;
  611. width: 300rpx;
  612. height: 300rpx;
  613. border-radius: 150rpx;
  614. text-align: center;
  615. color: #fff;
  616. background: linear-gradient(180deg, #00acfc 0%, #0082fc 100%);
  617. .info {
  618. height: 58rpx;
  619. font-size: 40rpx;
  620. font-weight: 700;
  621. }
  622. .time {
  623. height: 41rpx;
  624. font-size: 28rpx;
  625. font-weight: 400;
  626. }
  627. }
  628. .active {
  629. display: flex;
  630. flex-direction: column;
  631. justify-content: center;
  632. align-items: center;
  633. margin: auto;
  634. margin-top: 145rpx;
  635. width: 300rpx;
  636. height: 300rpx;
  637. border-radius: 150rpx;
  638. text-align: center;
  639. color: #fff;
  640. background: linear-gradient(180deg, #cccccc 0%, #b3b3b3 100%);
  641. .info {
  642. height: 58rpx;
  643. font-size: 40rpx;
  644. font-weight: 700;
  645. }
  646. .time {
  647. height: 41rpx;
  648. font-size: 28rpx;
  649. font-weight: 400;
  650. }
  651. }
  652. .address {
  653. padding: 0 10rpx;
  654. margin-top: 34rpx;
  655. line-height: 35rpx;
  656. text-align: center;
  657. font-size: 24rpx;
  658. font-weight: 400;
  659. color: #808080;
  660. }
  661. }
  662. .tab_bar {
  663. position: fixed;
  664. left: 0;
  665. bottom: 0;
  666. display: flex;
  667. width: 750rpx;
  668. height: 128rpx;
  669. border-top: 1rpx solid #ccc;
  670. background-color: #fff;
  671. .tab_box {
  672. flex: 1;
  673. display: flex;
  674. flex-direction: column;
  675. justify-content: center;
  676. align-items: center;
  677. img {
  678. margin-bottom: 10rpx;
  679. width: 54rpx;
  680. height: 48rpx;
  681. }
  682. .tab_title {
  683. font-size: 20rpx;
  684. }
  685. .tab_title_active {
  686. font-size: 20rpx;
  687. color: #0082fc;
  688. }
  689. }
  690. }
  691. .popup-content {
  692. display: flex;
  693. flex-direction: column;
  694. justify-content: space-around;
  695. align-items: center;
  696. width: 630rpx;
  697. height: 376rpx;
  698. border-radius: 33rpx;
  699. background-color: #fff;
  700. .title {
  701. display: flex;
  702. justify-content: center;
  703. align-items: center;
  704. .icon {
  705. width: 40rpx;
  706. height: 40rpx;
  707. img {
  708. width: 100%;
  709. height: 100%;
  710. }
  711. }
  712. .title_info {
  713. margin-left: 8rpx;
  714. font-size: 36rpx;
  715. font-weight: 800;
  716. color: #0082fc;
  717. }
  718. }
  719. .time {
  720. font-size: 32rpx;
  721. }
  722. .popup_button {
  723. width: 50%;
  724. text-align: center;
  725. font-size: 32rpx;
  726. color: #0082fc;
  727. }
  728. }
  729. }
  730. </style>