65d8f8b8 by simon

#76 #71 #74 #75 #78+登录注册loading

1 parent 21372ce7
...@@ -2,14 +2,17 @@ module.exports = { ...@@ -2,14 +2,17 @@ module.exports = {
2 common: { 2 common: {
3 Confirm: "Confirm", 3 Confirm: "Confirm",
4 Cancel: "Cancel", 4 Cancel: "Cancel",
5 Male: "Mr.", 5 Male: "Male",
6 Female: "Mrs.", 6 Female: "Female",
7 MaleTitle: "Mr.",
8 FemaleTitle: "Mrs.",
7 Sex: "Sex", 9 Sex: "Sex",
8 Age: "Age", 10 Age: "Age",
9 Birthday: "Birthday", 11 Birthday: "Birthday",
10 SubmitSuccess: "Successfully submitted", 12 SubmitSuccess: "Successfully submitted",
11 Email: "Email", 13 Email: "Email",
12 Birth:"Date of birth", 14 Birth:"Date of birth",
15
13 }, 16 },
14 message: { 17 message: {
15 login: 'Login', 18 login: 'Login',
...@@ -751,7 +754,7 @@ module.exports = { ...@@ -751,7 +754,7 @@ module.exports = {
751 address: "Correspondence Address", 754 address: "Correspondence Address",
752 email: "E-Mail", 755 email: "E-Mail",
753 checkTips: "I do not agree to receive promotional information", 756 checkTips: "I do not agree to receive promotional information",
754 submit: "Confirm", 757 submit: "Submit",
755 errorTips: { 758 errorTips: {
756 e1: "Please enter the collect mobile no", 759 e1: "Please enter the collect mobile no",
757 e2: "Please enter the collect address", 760 e2: "Please enter the collect address",
...@@ -1166,7 +1169,7 @@ module.exports = { ...@@ -1166,7 +1169,7 @@ module.exports = {
1166 t2: "Download Standard Premium Table", 1169 t2: "Download Standard Premium Table",
1167 t3: "Download Policy Provision", 1170 t3: "Download Policy Provision",
1168 }, 1171 },
1169 submitBtn: "立即投保", 1172 submitBtn: "Apply now",
1170 productList: [{ 1173 productList: [{
1171 title: "Certified VHIS-compliant Plan", 1174 title: "Certified VHIS-compliant Plan",
1172 desc: "The plan is a certified plan under the Voluntary Health Insurance Scheme (VHIS) that aims to support your access to private healthcare services for essential needs, at the same time you could enjoy tax deduction benefit. The plan is approved by the Food and Health Bureau for your peace of mind. For more details on VHIS, please visit www.vhis.gov.hk. ", 1175 desc: "The plan is a certified plan under the Voluntary Health Insurance Scheme (VHIS) that aims to support your access to private healthcare services for essential needs, at the same time you could enjoy tax deduction benefit. The plan is approved by the Food and Health Bureau for your peace of mind. For more details on VHIS, please visit www.vhis.gov.hk. ",
......
...@@ -2,8 +2,10 @@ module.exports = { ...@@ -2,8 +2,10 @@ module.exports = {
2 common: { 2 common: {
3 Confirm: "確認", 3 Confirm: "確認",
4 Cancel: "取消", 4 Cancel: "取消",
5 Male: "先生", 5 Male: "男性",
6 Female: "女士", 6 Female: "女性",
7 MaleTitle: "先生",
8 FemaleTitle: "女士",
7 Sex: "性別", 9 Sex: "性別",
8 Age: "年齡", 10 Age: "年齡",
9 Birthday: "生日", 11 Birthday: "生日",
...@@ -761,7 +763,7 @@ module.exports = { ...@@ -761,7 +763,7 @@ module.exports = {
761 address: "聯絡地址", 763 address: "聯絡地址",
762 email: "電郵地址", 764 email: "電郵地址",
763 checkTips: "本人不同意接收宣傳信息", 765 checkTips: "本人不同意接收宣傳信息",
764 submit: "確認修改", 766 submit: "提交申請",
765 errorTips: { 767 errorTips: {
766 e1: "請填寫正確的聯絡電話", 768 e1: "請填寫正確的聯絡電話",
767 e2: "請填寫聯絡地址", 769 e2: "請填寫聯絡地址",
......
...@@ -4,12 +4,15 @@ module.exports = { ...@@ -4,12 +4,15 @@ module.exports = {
4 Cancel: "取消", 4 Cancel: "取消",
5 Sex: "性别", 5 Sex: "性别",
6 Age: "年龄", 6 Age: "年龄",
7 Male: "先生", 7 Male: "男性",
8 Female: "女士", 8 Female: "女性",
9 MaleTitle: "先生",
10 FemaleTitle: "女士",
9 Birthday: "生日", 11 Birthday: "生日",
10 SubmitSuccess: "递交申请成功", 12 SubmitSuccess: "递交申请成功",
11 Email: "电邮", 13 Email: "电邮",
12 Birth:"出生日期", 14 Birth:"出生日期",
15
13 }, 16 },
14 message: { 17 message: {
15 login: "登入", 18 login: "登入",
...@@ -762,7 +765,7 @@ module.exports = { ...@@ -762,7 +765,7 @@ module.exports = {
762 address: "联络地址", 765 address: "联络地址",
763 email: "电邮地址", 766 email: "电邮地址",
764 checkTips: "本人不同意接收宣传信息", 767 checkTips: "本人不同意接收宣传信息",
765 submit: "确认修改", 768 submit: "提交申请",
766 errorTips: { 769 errorTips: {
767 e1: "请填写正确的联络电话", 770 e1: "请填写正确的联络电话",
768 e2: "请填写联络地址", 771 e2: "请填写联络地址",
......
...@@ -362,6 +362,7 @@ export default { ...@@ -362,6 +362,7 @@ export default {
362 // 获取省份 362 // 获取省份
363 this.provinceList = getCnProvinceList(this.$i18n.locale); 363 this.provinceList = getCnProvinceList(this.$i18n.locale);
364 364
365
365 // if (this.dataInit) { 366 // if (this.dataInit) {
366 // return; 367 // return;
367 // } 368 // }
...@@ -372,7 +373,7 @@ export default { ...@@ -372,7 +373,7 @@ export default {
372 return; 373 return;
373 } 374 }
374 // this.data = null; 375 // this.data = null;
375 this.loading = true; 376
376 let param = { 377 let param = {
377 policyId: this.selectedPolicies[0].id, 378 policyId: this.selectedPolicies[0].id,
378 policyCode: this.selectedPolicies[0].code 379 policyCode: this.selectedPolicies[0].code
...@@ -382,6 +383,7 @@ export default { ...@@ -382,6 +383,7 @@ export default {
382 return; 383 return;
383 } 384 }
384 this.lastPolicyCode = param.policyCode; 385 this.lastPolicyCode = param.policyCode;
386 this.loading = true;
385 387
386 httpPost({ 388 httpPost({
387 url: api.policyContactDetailApi, 389 url: api.policyContactDetailApi,
...@@ -405,6 +407,7 @@ export default { ...@@ -405,6 +407,7 @@ export default {
405 }, 0); 407 }, 0);
406 }) 408 })
407 .catch(res => { 409 .catch(res => {
410 console.log('2222');
408 this.loading = false; 411 this.loading = false;
409 if (res.code == "404") { 412 if (res.code == "404") {
410 this.$refs.auth.noAuth(); 413 this.$refs.auth.noAuth();
......
...@@ -157,11 +157,11 @@ export default { ...@@ -157,11 +157,11 @@ export default {
157 }, 157 },
158 titleList() { 158 titleList() {
159 let result = [{ 159 let result = [{
160 n: this.i18n.common.Male, 160 n: this.i18n.common.MaleTitle,
161 v: "M" 161 v: "M"
162 }, 162 },
163 { 163 {
164 n: this.i18n.common.Female, 164 n: this.i18n.common.FemaleTitle,
165 v: "F" 165 v: "F"
166 } 166 }
167 ] 167 ]
......
...@@ -323,13 +323,14 @@ export default { ...@@ -323,13 +323,14 @@ export default {
323 // this._showMobileNoIllegalTip(); 323 // this._showMobileNoIllegalTip();
324 // return; 324 // return;
325 // } 325 // }
326
326 if (this.times.remain > 0) { 327 if (this.times.remain > 0) {
327 return; 328 return;
328 } 329 }
329 if (this.loading) { 330 if (this.loading) {
330 return; 331 return;
331 } 332 }
332 this.loading = true; 333 // this.loading = true;
333 let data = { 334 let data = {
334 mobile: this.loginForm.userId, 335 mobile: this.loginForm.userId,
335 lan: this.locale 336 lan: this.locale
......
...@@ -654,6 +654,13 @@ $borderSize: 6px; ...@@ -654,6 +654,13 @@ $borderSize: 6px;
654 } 654 }
655 655
656 656
657 .download-tips{
658 text-align: center;
659 color: $cOrange2;
660 font-size: $fontSizeSmall-M2;
661 }
662
663
657 // 立即投保 664 // 立即投保
658 .btn-wrap { 665 .btn-wrap {
659 margin: 50px auto 100px; 666 margin: 50px auto 100px;
......
...@@ -283,7 +283,7 @@ ...@@ -283,7 +283,7 @@
283 <div class="nn n1">(k)</div> 283 <div class="nn n1">(k)</div>
284 <div class="nn n2"> 284 <div class="nn n2">
285 <span v-html="$t('vhisDetail.guarantee2.kk')">{{$t('vhisDetail.guarantee2.kk')}}</span> 285 <span v-html="$t('vhisDetail.guarantee2.kk')">{{$t('vhisDetail.guarantee2.kk')}}</span>
286 286
287 </div> 287 </div>
288 </div> 288 </div>
289 </div> 289 </div>
...@@ -360,20 +360,24 @@ ...@@ -360,20 +360,24 @@
360 <div class="icon-wrap"><img class="icon" src="@/assets/images/vhis/vhis-download.png"></div> 360 <div class="icon-wrap"><img class="icon" src="@/assets/images/vhis/vhis-download.png"></div>
361 <div class="desc">{{$t('vhisDetail.download.t1')}}</div> 361 <div class="desc">{{$t('vhisDetail.download.t1')}}</div>
362 </div> 362 </div>
363 <!-- <div class="tips">*中文版本只提供繁体版</div> -->
363 </div> 364 </div>
364 <div class="border2 download-item"> 365 <div class="border2 download-item">
365 <div :class="{enCont : locale == 'en'}" class="cont" @click="downloadFile('file2')"> 366 <div :class="{enCont : locale == 'en'}" class="cont" @click="downloadFile('file2')">
366 <div class="icon-wrap"><img class="icon" src="@/assets/images/vhis/vhis-download.png"></div> 367 <div class="icon-wrap"><img class="icon" src="@/assets/images/vhis/vhis-download.png"></div>
367 <div class="desc">{{$t('vhisDetail.download.t2')}}</div> 368 <div class="desc">{{$t('vhisDetail.download.t2')}}</div>
368 </div> 369 </div>
370 <!-- <div class="tips">*中文版本只提供繁体版</div> -->
369 </div> 371 </div>
370 <div class="border2 download-item"> 372 <div class="border2 download-item">
371 <div :class="{enCont : locale == 'en'}" class="cont" @click="downloadFile('file3')"> 373 <div :class="{enCont : locale == 'en'}" class="cont" @click="downloadFile('file3')">
372 <div class="icon-wrap"><img class="icon" src="@/assets/images/vhis/vhis-download.png"></div> 374 <div class="icon-wrap"><img class="icon" src="@/assets/images/vhis/vhis-download.png"></div>
373 <div class="desc">{{$t('vhisDetail.download.t3')}}</div> 375 <div class="desc">{{$t('vhisDetail.download.t3')}}</div>
374 </div> 376 </div>
377
375 </div> 378 </div>
376 </div> 379 </div>
380 <div v-if="locale == 'zh'" class="download-tips">*中文版本只提供繁体版</div>
377 381
378 <!-- 立即投保 --> 382 <!-- 立即投保 -->
379 <div class="btn-wrap"> 383 <div class="btn-wrap">
......