添加实名认证引导去app提示
This commit is contained in:
parent
56a9837c9c
commit
2037d0d050
@ -83,7 +83,8 @@ export default {
|
|||||||
onlineToken: '0',
|
onlineToken: '0',
|
||||||
pending: false,
|
pending: false,
|
||||||
show: false,
|
show: false,
|
||||||
type: ''
|
type: '',
|
||||||
|
serverTime: 0
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
@ -133,12 +134,13 @@ export default {
|
|||||||
async getServeTime() {
|
async getServeTime() {
|
||||||
const { code, data } = await this.updateServerTimestamp()
|
const { code, data } = await this.updateServerTimestamp()
|
||||||
if(code === 0) {
|
if(code === 0) {
|
||||||
|
this.serverTime = data.date
|
||||||
this.time = parseInt((data.date - new Date().getTime()) / 1000)
|
this.time = parseInt((data.date - new Date().getTime()) / 1000)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
async openDoorOperate(type) {
|
async openDoorOperate(type) {
|
||||||
if(this.currentLockInfo.faceAuthentication === 1 &&
|
if(this.currentLockInfo.faceAuthentication === 1 &&
|
||||||
this.currentLockInfo.nextFaceValidateTime <= new Date().getTime()) {
|
this.currentLockInfo.nextFaceValidateTime <= this.serverTime) {
|
||||||
uni.showModal({
|
uni.showModal({
|
||||||
title: '提示',
|
title: '提示',
|
||||||
content: '开门前需进行实名认证,小程序暂不支持,请使用APP认证开门',
|
content: '开门前需进行实名认证,小程序暂不支持,请使用APP认证开门',
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user