beb31e3d by joe

5项信息调整

1 parent c891c38d
Showing 75 changed files with 90 additions and 36 deletions
......@@ -2,6 +2,7 @@ NODE_ENV = 'development'
VUE_APP_TITLE = 'development'
VUE_APP_BASE_URL= 'http://192.168.0.109:9101'
VUE_APP_BASE_URL= 'https://ow.go.qudone.com'
VUE_APP_BASE_URL= 'http://localhost:9101'
VUE_APP_RSA_PUBLIC_KEY = 'B5FE03847F02046C47292AF0FF2DE88977241483DD40C123046EB39CBE4C48167B120096CFF12CD16559322884A3C56FA92B07B89AB51FC8C91A75127622151DDD730DFF1F993D5A290CEAC0BBA7FC88285D8994ACBAFF50101EDE9A0925AD5DFFAFE96D53C370E9C5B37DF2F871F81C4D7CA6B7EC37FF459C07975AD9A74A95'
VUE_APP_RSA_KEY_INDEX = '10001'
VUE_APP_VHIS_INDEX= 'http://154.213.4.36/index.html'
......
......@@ -4,7 +4,7 @@ VUE_APP_TITLE = 'sandbox'
VUE_APP_BASE_URL= 'https://43.230.222.204'
VUE_APP_RSA_PUBLIC_KEY = 'B5FE03847F02046C47292AF0FF2DE88977241483DD40C123046EB39CBE4C48167B120096CFF12CD16559322884A3C56FA92B07B89AB51FC8C91A75127622151DDD730DFF1F993D5A290CEAC0BBA7FC88285D8994ACBAFF50101EDE9A0925AD5DFFAFE96D53C370E9C5B37DF2F871F81C4D7CA6B7EC37FF459C07975AD9A74A95'
VUE_APP_RSA_KEY_INDEX = '10001'
VUE_APP_VHIS_INDEX= 'https://icpois-stg1.pingan.com/vhis/insurIndex'
VUE_APP_VHIS_INDEX= 'https://icpois.pingan.com/vhis/insurIndex'
VUE_APP_CONTENT_ENCRYPT_KEY = 'MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDA1SNj4qiOEmvTkZfp+Gt0UOLTCdxuEqRE+k0fROhgZdN2GmtDg6jcZV/CXKdwQGGdwOYdxEngRQb2K/SXd5Rnu4MkuAoHopDNrBRVqoJNQi6VOv6fvAEzeYivtS9aMM7IvdZuN1QlASCz2vxfUKJ3BaijMQqQE9m0pVm+0BDEfwIDAQAB'
VUE_APP_CONTENT_ENCRYPT_SWITCH = true
\ No newline at end of file
......
# prod
NODE_ENV = 'production'
VUE_APP_TITLE = 'sandbox'
VUE_APP_BASE_URL= 'https://43.230.222.204'
VUE_APP_RSA_PUBLIC_KEY = 'B5FE03847F02046C47292AF0FF2DE88977241483DD40C123046EB39CBE4C48167B120096CFF12CD16559322884A3C56FA92B07B89AB51FC8C91A75127622151DDD730DFF1F993D5A290CEAC0BBA7FC88285D8994ACBAFF50101EDE9A0925AD5DFFAFE96D53C370E9C5B37DF2F871F81C4D7CA6B7EC37FF459C07975AD9A74A95'
VUE_APP_RSA_KEY_INDEX = '10001'
VUE_APP_VHIS_INDEX= 'https://icpois.pingan.com/vhis/insurIndex'
VUE_APP_CONTENT_ENCRYPT_KEY = 'MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDA1SNj4qiOEmvTkZfp+Gt0UOLTCdxuEqRE+k0fROhgZdN2GmtDg6jcZV/CXKdwQGGdwOYdxEngRQb2K/SXd5Rnu4MkuAoHopDNrBRVqoJNQi6VOv6fvAEzeYivtS9aMM7IvdZuN1QlASCz2vxfUKJ3BaijMQqQE9m0pVm+0BDEfwIDAQAB'
VUE_APP_CONTENT_ENCRYPT_SWITCH = true
#sandbox
NODE_ENV = 'production'
VUE_APP_TITLE = 'sandbox'
VUE_APP_BASE_URL= 'https://30.76.147.155'
VUE_APP_RSA_PUBLIC_KEY = 'B5FE03847F02046C47292AF0FF2DE88977241483DD40C123046EB39CBE4C48167B120096CFF12CD16559322884A3C56FA92B07B89AB51FC8C91A75127622151DDD730DFF1F993D5A290CEAC0BBA7FC88285D8994ACBAFF50101EDE9A0925AD5DFFAFE96D53C370E9C5B37DF2F871F81C4D7CA6B7EC37FF459C07975AD9A74A95'
VUE_APP_RSA_KEY_INDEX = '10001'
VUE_APP_VHIS_INDEX= 'https://icpois-stg1.pingan.com/vhis/insurIndex'
VUE_APP_CONTENT_ENCRYPT_KEY = 'MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDA1SNj4qiOEmvTkZfp+Gt0UOLTCdxuEqRE+k0fROhgZdN2GmtDg6jcZV/CXKdwQGGdwOYdxEngRQb2K/SXd5Rnu4MkuAoHopDNrBRVqoJNQi6VOv6fvAEzeYivtS9aMM7IvdZuN1QlASCz2vxfUKJ3BaijMQqQE9m0pVm+0BDEfwIDAQAB'
VUE_APP_CONTENT_ENCRYPT_SWITCH = true
......@@ -163,13 +163,19 @@ export default {
data: this.information,
sid: true
}).then(response => {
this.userInfo.hadFullInfo = 1;
this.userInfo.name = this.information.lastName + this.information.firstName;
this.$store.commit("SET_USER_INFO", this.userInfo);
this.loading = false;
let path = this.$route.query.c || "/";
this.targetPath = path;
this.modalCallback();
if (response.returnCode == "0") {
this.errorModel = 0;
this.userInfo.hadFullInfo = 1;
this.userInfo.name = this.information.lastName + this.information.firstName;
this.$store.commit("SET_USER_INFO", this.userInfo);
this.loading = false;
let path = this.$route.query.c || "/";
this.targetPath = path;
this.modalCallback();
} else {
this.handleUpdateInfoResponse(response);
}
}).catch(err => {
this.loading = false;
this.errorModel = 2;
......@@ -187,32 +193,35 @@ export default {
sid: true
}).then(response => {
this.loading = false;
let message = "";
switch (response.returnCode) {
case "GS_MODIFYFIVEKEYS_ERROR_IDNOERROR":
message = this.i18n.infomationImprove.errorTips.e6;
this.errorTips.e5 = message;
break;
case "COMMON_ERROR_036":
message = this.i18n.infomationImprove.errorTips.e7;
// this.showModal(this.i18n.infomationImprove.errorTips.e7, "info");
this.errorTips.e5 = message;
break;
case "0":
message = this.i18n.infomationImprove.successMsg;
let path = this.$route.query.c || "/";
this.targetPath = path;
this.userInfo.hadFullInfo = 1;
this.userInfo.name = this.information.lastName + this.information.firstName;
this.$store.commit("SET_USER_INFO", this.userInfo);
// this.showModal(message, "succ");
this.modalCallback();
break;
}
this.handleUpdateInfoResponse(response);
}).catch(err => {
this.loading = false;
});
},
handleUpdateInfoResponse(response) {
let message = "";
switch (response.returnCode) {
case "GS_MODIFYFIVEKEYS_ERROR_IDNOERROR":
message = this.i18n.infomationImprove.errorTips.e6;
this.errorTips.e5 = message;
break;
case "COMMON_ERROR_036":
message = this.i18n.infomationImprove.errorTips.e7;
// this.showModal(this.i18n.infomationImprove.errorTips.e7, "info");
this.errorTips.e5 = message;
break;
case "0":
message = this.i18n.infomationImprove.successMsg;
let path = this.$route.query.c || "/";
this.targetPath = path;
this.userInfo.hadFullInfo = 1;
this.userInfo.name = this.information.lastName + this.information.firstName;
this.$store.commit("SET_USER_INFO", this.userInfo);
// this.showModal(message, "succ");
this.modalCallback();
break;
}
},
onSkipHandler() {
let path = this.$route.query.c || "/";
this.targetPath = path;
......
......@@ -52,6 +52,8 @@ export default {
password: "",
// userId: "18334783910",
// password: "qweqwe123",
// userId: "91239123",
// password: "ccc123!@#",
// userId: "18145729463",
// password: "ccc123!@#",
// userId: "15927024254",
......@@ -277,6 +279,7 @@ export default {
break;
case "BIZ_ERROR_011":
case "BIZ_ERROR_012":
case "OTP_ERROR_015":
// 登录错误4次、5次
this.errorTips.e2 = response.returnMsg;
// this.showModal(response.returnMsg, "info");
......@@ -371,7 +374,6 @@ export default {
}
this._handlerIsShowImageVcode().then(() => {
this._startStdSendOTP();
this._startTimeClick();
});
});
},
......@@ -406,8 +408,8 @@ export default {
// 检测手机号是否正确
return new Promise((resolve, reject) => {
let mobile = this.loginForm.mobileNo;
let hkMobile = mobile.length == 8 && contactMethodCheck('hkmobile', mobile);
let zhMobile = mobile.length == 11 && contactMethodCheck('mobile', mobile);
let hkMobile = contactMethodCheck('hkmobile', mobile);
let zhMobile = contactMethodCheck('mobile', mobile);
if (!hkMobile && !zhMobile) {
this._showMobileNoIllegalTip()
return;
......@@ -472,6 +474,16 @@ export default {
httpPost({
url: api.stdSendOTP,
data: data
}).then(response => {
switch (response.returnCode) {
case "0":
this._startTimeClick();
this.errorTips.oe2 = "";
break;
default:
this.errorTips.oe2 = response.returnMsg;
break;
};
});
},
_startTimeClick() {
......
......@@ -122,7 +122,7 @@ export default {
}
this._handlerIsShowImageVcode().then(() => {
this._startStdSendOTP();
this._startTimeClick();
// this._startTimeClick();
});
});
},
......@@ -131,12 +131,12 @@ export default {
return new Promise((resolve, reject) => {
let mobile = this.registerForm.mobileNo;
if (this.mobileNoType == "hk") {
if (mobile.length != 8 && !contactMethodCheck('hkmobile', mobile)) {
if (!contactMethodCheck('hkmobile', mobile)) {
this._showMobileNoIllegalTip()
return;
}
} else {
if (mobile.length != 11 && !contactMethodCheck('mobile', mobile)) {
if (!contactMethodCheck('mobile', mobile)) {
this._showMobileNoIllegalTip()
return;
}
......@@ -200,7 +200,17 @@ export default {
data["vcodeuuid"] = this.values.vcodeuuid;
data["imageValue"] = this.registerForm.imageValue;
}
httpPost({ url: api.stdSendOTP, data: data });
httpPost({ url: api.stdSendOTP, data: data }).then(response=>{
switch (response.returnCode) {
case "0":
this._startTimeClick();
this.errorTips.p2 = "";
break;
default:
this.errorTips.p2 = response.returnMsg;
break;
};
});
},
_startTimeClick() {
this.times.remain = 120;
......