添加实名认证引导去app提示

This commit is contained in:
范鹏 2024-09-07 18:34:40 +08:00
parent 56a9837c9c
commit 2037d0d050

View File

@ -83,7 +83,8 @@ export default {
onlineToken: '0',
pending: false,
show: false,
type: ''
type: '',
serverTime: 0
}
},
computed: {
@ -133,12 +134,13 @@ export default {
async getServeTime() {
const { code, data } = await this.updateServerTimestamp()
if(code === 0) {
this.serverTime = data.date
this.time = parseInt((data.date - new Date().getTime()) / 1000)
}
},
async openDoorOperate(type) {
if(this.currentLockInfo.faceAuthentication === 1 &&
this.currentLockInfo.nextFaceValidateTime <= new Date().getTime()) {
this.currentLockInfo.nextFaceValidateTime <= this.serverTime) {
uni.showModal({
title: '提示',
content: '开门前需进行实名认证小程序暂不支持请使用APP认证开门',