diff --git a/src/views/ebiz/serve/Detail.vue b/src/views/ebiz/serve/Detail.vue index cccdb79be..d177f2d5e 100644 --- a/src/views/ebiz/serve/Detail.vue +++ b/src/views/ebiz/serve/Detail.vue @@ -365,26 +365,31 @@ export default { next() { let that = this if (this.faceAuthCount.appnt < this.smsAuthNum) { - EWebBridge.webCallAppInJs('face_auth', { - number: this.appntDTO.idNo, //身份证号码 - name: this.appntDTO.name //姓名 - }).then(data => { - this.$toast.loading({ - duration: 0, // 持续展示 toast - forbidClick: true, // 禁用背景点击 - loadingType: 'spinner', - message: '加载中……' - }) - this.$toast.clear() - if (JSON.parse(data).state == '1') { - this.toNextPage() - } else { - that.faceAuthCount.appnt++ - if (that.faceAuthCount.appnt >= this.smsAuthNum) { - this.realPeopelCheck() + if (this.appntDTO.idType == '1') { + //证件类型为身份证时,进行人脸识别 + EWebBridge.webCallAppInJs('face_auth', { + number: this.appntDTO.idNo, //身份证号码 + name: this.appntDTO.name //姓名 + }).then(data => { + this.$toast.loading({ + duration: 0, // 持续展示 toast + forbidClick: true, // 禁用背景点击 + loadingType: 'spinner', + message: '加载中……' + }) + this.$toast.clear() + if (JSON.parse(data).state == '1') { + this.toNextPage() + } else { + that.faceAuthCount.appnt++ + if (that.faceAuthCount.appnt >= this.smsAuthNum) { + this.realPeopelCheck() + } } - } - }) + }) + } else { + this.toNextPage() + } } else { this.realPeopelCheck() }