b281a1ec by joe

1

1 parent b3ebb2d5
......@@ -179,7 +179,7 @@ module.exports = {
quote: "Quote now",
},
footer: {
hotline:"customer service hotline",
hotline:"Customer Service Hotline",
serviceHour:"Service Hour:9:00 - 17:30 Monday to Friday",
address:"A137, 16/F, Tower 5, The Gateway, 21 Canton Road, Tsim Sha Tsui, Kowloon, Hong Kong",
......
......@@ -158,7 +158,7 @@ export default {
// 判断 美国地区需要上传文件
checkShowUSATax() {
let result = this.isUSA && !this.data.iobsKey;
if (result){
if (result) {
this.usTaxFormUploadCompVisible = true;
this.$refs.usTax.initData();
}
......@@ -221,7 +221,7 @@ export default {
data.policyCode = "";
this.loading = true;
console.log("data:",data);
console.log("data:", data);
httpPost({
url: api.policyContactApi,
data: data,
......@@ -244,7 +244,7 @@ export default {
* 从美国税务表单组件提交
*/
onUsTaxSubmit(val) {
console.log("val:",val);
console.log("val:", val);
this.data.iobsKey = val;
// this.doSubmit(val);
},
......@@ -254,8 +254,14 @@ export default {
let hkMobile = contactMethodCheck("hkmobile", this.data.mobile);
let zhMobile = contactMethodCheck("mobile", this.data.mobile);
if (!hkMobile && !zhMobile) {
if (this.data.mobileAreaCode == "852" || this.data.mobileAreaCode == "86") {
this.errorTips.e1 = this.i18n.policyChangeContact.errorTips.e1;
return false;
} else {
let res = /^\d+$/.test(this.data.mobile);
this.errorTips.e1 = !res ? this.i18n.policyChangeContact.errorTips.e1 : "";
return res;
}
}
}
return true;
......@@ -465,7 +471,7 @@ export default {
this.$root.eventBus.$on("langChange", () => {
try {
this.initData();
} catch (e) {}
} catch (e) { }
});
}
};
......