|
|
|
@ -6,11 +6,11 @@ |
|
|
|
</view> |
|
|
|
<view class="form-group"> |
|
|
|
<view class="form-item"> |
|
|
|
<input type="text" v-model="rname" class="form-item--input" @focus="fcevt()" placeholder="请输入手机号持有人姓名"/> |
|
|
|
<input type="text" v-model="rname" class="form-item--input" placeholder="请输入手机号持有人姓名"/> |
|
|
|
</view> |
|
|
|
|
|
|
|
<view class="form-item"> |
|
|
|
<input type="text" v-model="rid" maxlength="18" class="form-item--input" @focus="fcevt()" placeholder="请输入手机号持有人身份证号"/> |
|
|
|
<input type="text" v-model="rid" maxlength="18" class="form-item--input" placeholder="请输入手机号持有人身份证号"/> |
|
|
|
</view> |
|
|
|
|
|
|
|
<!-- 图片列表 --> |
|
|
|
@ -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 |
|
|
|
}) |
|
|
|
}, |
|
|
|
|
|
|
|
|