Browse Source

修改

master
453530270@qq.com 3 years ago
parent
commit
c4d10c12d1
  1. 2
      api/user.js
  2. 25
      pages/verfiy/index.vue

2
api/user.js

@ -6,7 +6,7 @@ const api = {
assets: 'user/assets',
bindMobile: 'user/bindMobile',
personal: 'user/personal',
verifyname:'passport/userAuthentication'//实名登记
verifyname:'user/userAuthentication'//实名登记
}
// 当前登录的用户信息

25
pages/verfiy/index.vue

@ -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
})
},

Loading…
Cancel
Save