From c4d10c12d1783d88505a5dd54c48e4cbeefff10d Mon Sep 17 00:00:00 2001 From: "453530270@qq.com" Date: Fri, 3 Nov 2023 18:05:00 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/user.js | 2 +- pages/verfiy/index.vue | 25 ++++++++++++++++--------- 2 files changed, 17 insertions(+), 10 deletions(-) diff --git a/api/user.js b/api/user.js index 4e050c6..defedee 100644 --- a/api/user.js +++ b/api/user.js @@ -6,7 +6,7 @@ const api = { assets: 'user/assets', bindMobile: 'user/bindMobile', personal: 'user/personal', - verifyname:'passport/userAuthentication'//实名登记 + verifyname:'user/userAuthentication'//实名登记 } // 当前登录的用户信息 diff --git a/pages/verfiy/index.vue b/pages/verfiy/index.vue index 0bf350a..19ce087 100644 --- a/pages/verfiy/index.vue +++ b/pages/verfiy/index.vue @@ -6,11 +6,11 @@ - + - + @@ -101,19 +101,26 @@ chkst() { const app = this if (!app.isLoading && app.formValidationName(app.rname) && app.formValidationId(app.rid)) { - app.submitVerify() - // 跳转到选择设备 - this.$navTo("pages/verfiy/choosedev"); + // if(app.submitVerify()){ + // // 跳转到选择设备 + // //this.$navTo("pages/verfiy/choosedev"); + // } + app.submitVerify(); + } }, // 提交认证信息 submitVerify(){ - const data = {"real_name":app.real_name,"id_no":app.id_no} - UserApi.verifyname(data).then(res=>{ - console.log(res) + const app = this + let data = {real_name:app.rname,id_no:app.rid} + UserApi.verifyname({form:data}).then(res=>{ + // console.log(res) + this.$navTo("pages/verfiy/choosedev"); + //return true }).catch(err=>{ - console.log(err) + // console.log(err) + return false }) },