瀏覽代碼

Merge branch 'dev-majunjie' of https://www.gitinn.com/proginn/proginn-frontend into dev-majunjie

* 'dev-majunjie' of https://www.gitinn.com/proginn/proginn-frontend:
  实名认证接口更换处理
  实名认证成功处理
martin.ma 4 年之前
父節點
當前提交
1034704660
共有 1 個文件被更改,包括 18 次插入11 次删除
  1. 18 11
      pages/frontend/name_cert/index.vue

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

@@ -54,7 +54,7 @@
                 </div>
                 </div>
 
 
                 <div class="name-cert-submit">
                 <div class="name-cert-submit">
-                    <el-button type="primary" class="cert-btn" size="medium" @click="submitForm">支付宝实名认证</el-button>
+                    <el-button type="primary" class="cert-btn" size="medium" @click="submitForm">实名认证</el-button>
                 </div>
                 </div>
             </el-form>
             </el-form>
         </div>
         </div>
@@ -299,13 +299,14 @@ export default {
             //         certifyId: "123123"
             //         certifyId: "123123"
             //     }
             //     }
             // }
             // }
-            let res = await this.$axios.$post("/uapi/zfb/certify", {
+            let res = await this.$axios.$post("/uapi/user/realName/create", {
                 cert_name,
                 cert_name,
                 cert_no,
                 cert_no,
                 cert_type,
                 cert_type,
                 z_file:this.z_file,
                 z_file:this.z_file,
                 f_file:this.f_file,
                 f_file:this.f_file,
-                from_type: 3
+                is_face_check:0,
+                from_type: 1
             });
             });
 
 
             if (Number(res.status) !== 1) {
             if (Number(res.status) !== 1) {
@@ -314,9 +315,11 @@ export default {
             }
             }
 
 
             const {
             const {
-                url,
+                kezhan_url,
                 certifyId,
                 certifyId,
-                cert_status
+                cert_status,
+                zfb_url,
+                certify_type
             } = res.data;
             } = res.data;
 
 
             if(cert_status==3)
             if(cert_status==3)
@@ -324,11 +327,15 @@ export default {
               this.toSuccess();
               this.toSuccess();
               return ;
               return ;
             }
             }
-            this.url = url;
-            this.certifyId = certifyId;
-            this.centerDialogVisible = true;
-            this.createQrCode();
-            this.startTimer();
+
+            if(certify_type==2)
+            {
+              this.url = kezhan_url;
+              this.certifyId = certifyId;
+              this.centerDialogVisible = true;
+              this.createQrCode();
+              this.startTimer();
+            }
         },
         },
         createQrCode() {
         createQrCode() {
             this.$nextTick(() => {
             this.$nextTick(() => {
@@ -354,7 +361,7 @@ export default {
             }
             }
 
 
             this.timer = setInterval(async () => {
             this.timer = setInterval(async () => {
-                let res = await this.$axios.$post("/uapi/zfb/return", {});
+                let res = await this.$axios.$post("/uapi/user/realName/check", {});
                 if (Number(res.status) !== 1) {
                 if (Number(res.status) !== 1) {
                     this.$message.error(res.info);
                     this.$message.error(res.info);
                     return;
                     return;