Преглед на файлове

修改查询接口字段,
认证通过条件,添加需要过人脸的情况,

martin.ma преди 4 години
родител
ревизия
c2b7a56fc5
променени са 1 файла, в които са добавени 18 реда и са изтрити 9 реда
  1. 18 9
      pages/frontend/name_cert/index.vue

+ 18 - 9
pages/frontend/name_cert/index.vue

@@ -60,7 +60,7 @@
         </div>
     </div>
 
-    <el-dialog title="温馨提示" :visible.sync="centerDialogVisible" width="350px" center>
+    <el-dialog @close="qrcodeClose" title="温馨提示" :visible.sync="centerDialogVisible" width="350px" center>
         <p class="qrcode-tips">请打开支付宝扫码以下二维码</p>
         <div class="qrcode-img">
             <img :src="qrcodeBase64" />
@@ -369,24 +369,33 @@ export default {
                     return;
                 }
                 let {
-                    type
-                } = res.data.type;
+                    type,
+                    is_face
+                } = res.data;
+
                 if (type == 1 || type == 4) {
-                    // 关闭弹层
                     this.centerDialogVisible = false;
                     clearInterval(this.timer);
                     this.timer = null;
+                    if(type == 4){
+                        this.toFail();
+                        return
+                    }
 
-                    if (type == 1) {
-                        // 显示成功态
+                    if(this.$route.query.is_face_check == 1){
+                        if(is_face == 1){
+                            this.toSuccess();
+                        }
+                    }else{
                         this.toSuccess();
-                    } else if (type == 4) {
-                        // 显示失败态
-                        this.toFail();
                     }
                 }
             }, 5000);
         },
+        qrcodeClose(){
+            clearInterval(this.timer);
+            this.timer = null;
+        },
         checkNameIsCerted() {
             if (this.userInfo && this.userInfo.realname_verify_status == 2) {
                 this.toSuccess()