...
|
...
|
@@ -154,12 +154,21 @@ export default { |
|
|
this.toast('上传失败');
|
|
|
},
|
|
|
submitCert() {
|
|
|
if (this.$createToast) {
|
|
|
this.submiting = this.$createToast({
|
|
|
txt: '认证中',
|
|
|
mask: true
|
|
|
}).show();
|
|
|
}
|
|
|
|
|
|
this.userRealCertification({
|
|
|
certName: this.name,
|
|
|
certNo: this.idCode,
|
|
|
frontImageUrl: this.idCardFront,
|
|
|
backImageUrl: this.idCardBack
|
|
|
}).then(res => {
|
|
|
this.submiting && this.submiting.hide();
|
|
|
|
|
|
if (res.code === 200) {
|
|
|
if (this.$route.query.refer) {
|
|
|
this.$router.push({
|
...
|
...
|
@@ -175,6 +184,13 @@ export default { |
|
|
time: 1000
|
|
|
}).show();
|
|
|
}
|
|
|
}).catch(e => {
|
|
|
this.submiting && this.submiting.hide();
|
|
|
this.$createToast && this.$createToast({
|
|
|
txt: '网络异常,请稍后重试',
|
|
|
type: 'txt',
|
|
|
time: 1000
|
|
|
}).show();
|
|
|
});
|
|
|
}
|
|
|
},
|
...
|
...
|
|