1
Showing
2 changed files
with
22 additions
and
16 deletions
| ... | @@ -179,7 +179,7 @@ module.exports = { | ... | @@ -179,7 +179,7 @@ module.exports = { | 
| 179 | quote: "Quote now", | 179 | quote: "Quote now", | 
| 180 | }, | 180 | }, | 
| 181 | footer: { | 181 | footer: { | 
| 182 | hotline:"customer service hotline", | 182 | hotline:"Customer Service Hotline", | 
| 183 | serviceHour:"Service Hour:9:00 - 17:30 Monday to Friday", | 183 | serviceHour:"Service Hour:9:00 - 17:30 Monday to Friday", | 
| 184 | address:"A137, 16/F, Tower 5, The Gateway, 21 Canton Road, Tsim Sha Tsui, Kowloon, Hong Kong", | 184 | address:"A137, 16/F, Tower 5, The Gateway, 21 Canton Road, Tsim Sha Tsui, Kowloon, Hong Kong", | 
| 185 | 185 | ... | ... | 
| ... | @@ -158,10 +158,10 @@ export default { | ... | @@ -158,10 +158,10 @@ export default { | 
| 158 | // 判断 美国地区需要上传文件 | 158 | // 判断 美国地区需要上传文件 | 
| 159 | checkShowUSATax() { | 159 | checkShowUSATax() { | 
| 160 | let result = this.isUSA && !this.data.iobsKey; | 160 | let result = this.isUSA && !this.data.iobsKey; | 
| 161 | if (result){ | 161 | if (result) { | 
| 162 | this.usTaxFormUploadCompVisible = true; | 162 | this.usTaxFormUploadCompVisible = true; | 
| 163 | this.$refs.usTax.initData(); | 163 | this.$refs.usTax.initData(); | 
| 164 | } | 164 | } | 
| 165 | return result; | 165 | return result; | 
| 166 | }, | 166 | }, | 
| 167 | // 提交前准备 | 167 | // 提交前准备 | 
| ... | @@ -221,12 +221,12 @@ export default { | ... | @@ -221,12 +221,12 @@ export default { | 
| 221 | data.policyCode = ""; | 221 | data.policyCode = ""; | 
| 222 | 222 | ||
| 223 | this.loading = true; | 223 | this.loading = true; | 
| 224 | console.log("data:",data); | 224 | console.log("data:", data); | 
| 225 | httpPost({ | 225 | httpPost({ | 
| 226 | url: api.policyContactApi, | 226 | url: api.policyContactApi, | 
| 227 | data: data, | 227 | data: data, | 
| 228 | sid: true | 228 | sid: true | 
| 229 | }) | 229 | }) | 
| 230 | .then(() => { | 230 | .then(() => { | 
| 231 | this.loading = false; | 231 | this.loading = false; | 
| 232 | this.usTaxFormUploadCompVisible = false; | 232 | this.usTaxFormUploadCompVisible = false; | 
| ... | @@ -244,7 +244,7 @@ export default { | ... | @@ -244,7 +244,7 @@ export default { | 
| 244 | * 从美国税务表单组件提交 | 244 | * 从美国税务表单组件提交 | 
| 245 | */ | 245 | */ | 
| 246 | onUsTaxSubmit(val) { | 246 | onUsTaxSubmit(val) { | 
| 247 | console.log("val:",val); | 247 | console.log("val:", val); | 
| 248 | this.data.iobsKey = val; | 248 | this.data.iobsKey = val; | 
| 249 | // this.doSubmit(val); | 249 | // this.doSubmit(val); | 
| 250 | }, | 250 | }, | 
| ... | @@ -254,8 +254,14 @@ export default { | ... | @@ -254,8 +254,14 @@ export default { | 
| 254 | let hkMobile = contactMethodCheck("hkmobile", this.data.mobile); | 254 | let hkMobile = contactMethodCheck("hkmobile", this.data.mobile); | 
| 255 | let zhMobile = contactMethodCheck("mobile", this.data.mobile); | 255 | let zhMobile = contactMethodCheck("mobile", this.data.mobile); | 
| 256 | if (!hkMobile && !zhMobile) { | 256 | if (!hkMobile && !zhMobile) { | 
| 257 | this.errorTips.e1 = this.i18n.policyChangeContact.errorTips.e1; | 257 | if (this.data.mobileAreaCode == "852" || this.data.mobileAreaCode == "86") { | 
| 258 | return false; | 258 | this.errorTips.e1 = this.i18n.policyChangeContact.errorTips.e1; | 
| 259 | return false; | ||
| 260 | } else { | ||
| 261 | let res = /^\d+$/.test(this.data.mobile); | ||
| 262 | this.errorTips.e1 = !res ? this.i18n.policyChangeContact.errorTips.e1 : ""; | ||
| 263 | return res; | ||
| 264 | } | ||
| 259 | } | 265 | } | 
| 260 | } | 266 | } | 
| 261 | return true; | 267 | return true; | 
| ... | @@ -378,10 +384,10 @@ export default { | ... | @@ -378,10 +384,10 @@ export default { | 
| 378 | this.lastPolicyCode = param.policyCode; | 384 | this.lastPolicyCode = param.policyCode; | 
| 379 | 385 | ||
| 380 | httpPost({ | 386 | httpPost({ | 
| 381 | url: api.policyContactDetailApi, | 387 | url: api.policyContactDetailApi, | 
| 382 | data: param, | 388 | data: param, | 
| 383 | sid: true | 389 | sid: true | 
| 384 | }) | 390 | }) | 
| 385 | .then(response => { | 391 | .then(response => { | 
| 386 | this.loading = false; | 392 | this.loading = false; | 
| 387 | if (response) { | 393 | if (response) { | 
| ... | @@ -465,7 +471,7 @@ export default { | ... | @@ -465,7 +471,7 @@ export default { | 
| 465 | this.$root.eventBus.$on("langChange", () => { | 471 | this.$root.eventBus.$on("langChange", () => { | 
| 466 | try { | 472 | try { | 
| 467 | this.initData(); | 473 | this.initData(); | 
| 468 | } catch (e) {} | 474 | } catch (e) { } | 
| 469 | }); | 475 | }); | 
| 470 | } | 476 | } | 
| 471 | }; | 477 | }; | ... | ... | 
- 
Please register or sign in to post a comment