diff --git a/pages/lockDetail/lockDetail.vue b/pages/lockDetail/lockDetail.vue index 5f2203b..42802ec 100644 --- a/pages/lockDetail/lockDetail.vue +++ b/pages/lockDetail/lockDetail.vue @@ -138,7 +138,8 @@ export default { }, async openDoorOperate(type) { if(this.currentLockInfo.faceAuthentication === 1 && - this.currentLockInfo.nextFaceValidateTime <= new Date().getTime() + this.time * 1000) { + ((this.currentLockInfo.nextFaceValidateTime <= new Date().getTime() + this.time * 1000) && + this.currentLockInfo.nextFaceValidateTime !== 0)) { uni.showModal({ title: '提示', content: '开门前需进行实名认证,小程序暂不支持,请使用APP认证开门',