|
@@ -703,6 +703,7 @@ const _sfc_main = {
|
|
|
},
|
|
|
success: (res) => {
|
|
|
common_vendor.index.hideLoading();
|
|
|
+ console.log(res);
|
|
|
if (res.data.code === 200) {
|
|
|
const nextIndex = this.currentStepIndex + 1;
|
|
|
if (nextIndex < this.steps.length) {
|
|
@@ -712,6 +713,7 @@ const _sfc_main = {
|
|
|
duration: 300
|
|
|
});
|
|
|
}
|
|
|
+ this.setUserInfo(this.formData);
|
|
|
} else {
|
|
|
this.handleVerificationError(res.data);
|
|
|
}
|
|
@@ -721,6 +723,26 @@ const _sfc_main = {
|
|
|
}
|
|
|
});
|
|
|
},
|
|
|
+ setUserInfo(data) {
|
|
|
+ common_vendor.index.request({
|
|
|
+ url: `${common_config.apiBaseUrl}/wechat/updateUserInfo`,
|
|
|
+ method: "POST",
|
|
|
+ data: {
|
|
|
+ openid: JSON.parse(common_vendor.index.getStorageSync("userInfo")).openid,
|
|
|
+ name: data.name,
|
|
|
+ id_number: data.idCard,
|
|
|
+ purePhoneNumber: data.phone,
|
|
|
+ tenant_id: 1,
|
|
|
+ examine: 0
|
|
|
+ },
|
|
|
+ header: {
|
|
|
+ "content-type": "application/x-www-form-urlencoded"
|
|
|
+ },
|
|
|
+ success: (res) => {
|
|
|
+ console.log(res);
|
|
|
+ }
|
|
|
+ });
|
|
|
+ },
|
|
|
// 处理验证错误
|
|
|
handleVerificationError(data) {
|
|
|
this.formErrors.name = "姓名验证失败,请检查姓名是否正确";
|