home.vue 19 KB

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