zhanghui 2 лет назад
Родитель
Сommit
8ea894cea3
1 измененных файлов с 6 добавлено и 4 удалено
  1. 6 4
      myPages/serviceObjectFaceAuth/index.vue

+ 6 - 4
myPages/serviceObjectFaceAuth/index.vue

@@ -90,10 +90,6 @@
       verifyFace(){
       verifyFace(){
         let that  = this;
         let that  = this;
 
 
-        if(this.requestStatus){
-          return;
-        }
-        this.requestStatus=true
 
 
         if(!this.selectIcon){
         if(!this.selectIcon){
           uni.$u.toast('请阅读并同意《人脸识别服务协议》')
           uni.$u.toast('请阅读并同意《人脸识别服务协议》')
@@ -109,6 +105,12 @@
           title: '人脸识别中'
           title: '人脸识别中'
         })
         })
 
 
+        if(this.requestStatus){
+          return;
+        }
+        this.requestStatus=true
+
+
         this.$api.verifyFace(that.reqParm).then((res)=>{
         this.$api.verifyFace(that.reqParm).then((res)=>{
           this.requestStatus=true
           this.requestStatus=true
           uni.hideLoading();
           uni.hideLoading();