|
|
@ -25,7 +25,7 @@ |
|
|
|
</view> |
|
|
|
<input type="text" class="form-input" |
|
|
|
placeholder="请输入身份证号码" |
|
|
|
v-model="form.name"/> |
|
|
|
v-model="form.cerNo"/> |
|
|
|
</view> |
|
|
|
|
|
|
|
<view class="form-item"> |
|
|
@ -34,7 +34,7 @@ |
|
|
|
</view> |
|
|
|
<input type="text" class="form-input" |
|
|
|
placeholder="请输入联系方式" |
|
|
|
v-model="form.name"/> |
|
|
|
v-model="form.phone"/> |
|
|
|
</view> |
|
|
|
|
|
|
|
<view class="form-item"> |
|
|
@ -73,7 +73,7 @@ |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
|
|
|
|
<view class="uni-color-btn"> |
|
|
|
<view class="uni-color-btn" @click="sumbit"> |
|
|
|
认证 |
|
|
|
</view> |
|
|
|
|
|
|
@ -112,7 +112,19 @@ |
|
|
|
fileList: [], |
|
|
|
} |
|
|
|
}, |
|
|
|
onShow() { |
|
|
|
this.getAuthenticationPerson(); |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
//获取个人实名信息 |
|
|
|
getAuthenticationPerson(){ |
|
|
|
this.$api('getAuthenticationPerson',{}, res =>{ |
|
|
|
if(res.code == 200){ |
|
|
|
this.form = res.result; |
|
|
|
this.fileList = res.result.image ? res.result.image.split(',').map(url => {url}) : [] |
|
|
|
} |
|
|
|
}) |
|
|
|
}, |
|
|
|
deleteImage(e){ |
|
|
|
this.fileList.splice(e.index, 1) |
|
|
|
}, |
|
|
@ -125,7 +137,33 @@ |
|
|
|
}) |
|
|
|
}) |
|
|
|
}) |
|
|
|
|
|
|
|
}, |
|
|
|
//提交实名认证信息 :lzx |
|
|
|
sumbit(){ |
|
|
|
this.form.image = this.fileList.map((item) => item.url).join(",") |
|
|
|
if(this.$utils.verificationAll(this.form,{ |
|
|
|
name:'请输入姓名', |
|
|
|
cerNo:'请输入身份证号码', |
|
|
|
phone:'请输入电话号码', |
|
|
|
image:'身份证照片不能为空', |
|
|
|
})) { |
|
|
|
return |
|
|
|
} |
|
|
|
|
|
|
|
this.$api('addAuthenticationPerson',this.form, res =>{ |
|
|
|
if(res.code == 200){ |
|
|
|
uni.showToast({ |
|
|
|
title:'提交成功!等待审核', |
|
|
|
icon: 'none' |
|
|
|
}) |
|
|
|
setTimeout(uni.navigateBack,1000,-1) |
|
|
|
} |
|
|
|
}) |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|