需求修复
Showing
10 changed files
with
63 additions
and
22 deletions
... | @@ -10,7 +10,7 @@ module.exports = { | ... | @@ -10,7 +10,7 @@ module.exports = { |
10 | }, | 10 | }, |
11 | glbalTips: { | 11 | glbalTips: { |
12 | sessionLost: "Your session has expired. For your account safety, please re-enter and submit again.", | 12 | sessionLost: "Your session has expired. For your account safety, please re-enter and submit again.", |
13 | sysError : "An error occurred, <br>please try again later. " | 13 | sysError: "An error occurred, <br>please try again later. " |
14 | }, | 14 | }, |
15 | form: { | 15 | form: { |
16 | datePicker: { | 16 | datePicker: { |
... | @@ -791,7 +791,7 @@ module.exports = { | ... | @@ -791,7 +791,7 @@ module.exports = { |
791 | showMore: "Show all policies.", | 791 | showMore: "Show all policies.", |
792 | noPolicy: "You haven't bought any policy, if you have any questions please", | 792 | noPolicy: "You haven't bought any policy, if you have any questions please", |
793 | customService: " contact customer service", | 793 | customService: " contact customer service", |
794 | downloadClick:"Download", | 794 | downloadClick: "Download", |
795 | }, | 795 | }, |
796 | unauth: { | 796 | unauth: { |
797 | m1: { | 797 | m1: { |
... | @@ -819,8 +819,9 @@ module.exports = { | ... | @@ -819,8 +819,9 @@ module.exports = { |
819 | }, | 819 | }, |
820 | auth: { | 820 | auth: { |
821 | defaultTip: "You have not verified the customer information, please fill in the customer information provided at the time of insurance", | 821 | defaultTip: "You have not verified the customer information, please fill in the customer information provided at the time of insurance", |
822 | customService: " contact customer service", | 822 | customService: "customer service hotline", |
823 | notMatch: "The information is not match. Please check it. If you have any questions, you can", | 823 | notMatch: "The information provided did not match our record. Please contact", |
824 | notMatch2: " if you have any queries.", | ||
824 | } | 825 | } |
825 | }, | 826 | }, |
826 | pagination: { | 827 | pagination: { |
... | @@ -863,8 +864,8 @@ module.exports = { | ... | @@ -863,8 +864,8 @@ module.exports = { |
863 | tip3: ".", | 864 | tip3: ".", |
864 | tip4: "", | 865 | tip4: "", |
865 | tip5: "Contact Customer Service Hotline", | 866 | tip5: "Contact Customer Service Hotline", |
866 | tip6 : "The policy acknowledgement has been done, to inquire about the policy information or download ePolicy, please click ", | 867 | tip6: "The policy acknowledgement has been done, to inquire about the policy information or download ePolicy, please click ", |
867 | tip7 : "Policy Enquiry" | 868 | tip7: "Policy Enquiry" |
868 | }, | 869 | }, |
869 | clarms: { | 870 | clarms: { |
870 | title: "File a claim", | 871 | title: "File a claim", | ... | ... |
... | @@ -791,8 +791,9 @@ module.exports = { | ... | @@ -791,8 +791,9 @@ module.exports = { |
791 | }, | 791 | }, |
792 | auth: { | 792 | auth: { |
793 | defaultTip: "您尚未驗證客戶資料,請填寫投保時提供的客戶資料", | 793 | defaultTip: "您尚未驗證客戶資料,請填寫投保時提供的客戶資料", |
794 | customService: " 聯繫客服", | 794 | customService: "客戶服務熱線", |
795 | notMatch: "您填寫的信息與公司留存信息不一致,請核對,如有疑問可", | 795 | notMatch: "您填寫的資訊與我們記錄不同,請重新核對,如有疑問,請致電", |
796 | notMatch2: "", | ||
796 | } | 797 | } |
797 | }, | 798 | }, |
798 | pagination: { | 799 | pagination: { | ... | ... |
... | @@ -353,7 +353,7 @@ module.exports = { | ... | @@ -353,7 +353,7 @@ module.exports = { |
353 | e6: "您填写的证件号码有误", | 353 | e6: "您填写的证件号码有误", |
354 | e7: "您填写的信息有误,请核实后重新提交", | 354 | e7: "您填写的信息有误,请核实后重新提交", |
355 | }, | 355 | }, |
356 | noPolicy: "对不起,您输入的数据与本公司的纪录不符,请重新输入。如需帮助可", | 356 | noPolicy: "您填写的信息与公司留存信息不一致,请核对,如有疑问可", |
357 | customService: "联系客服", | 357 | customService: "联系客服", |
358 | }, | 358 | }, |
359 | index: { | 359 | index: { |
... | @@ -814,8 +814,9 @@ module.exports = { | ... | @@ -814,8 +814,9 @@ module.exports = { |
814 | }, | 814 | }, |
815 | auth: { | 815 | auth: { |
816 | defaultTip: "您尚未验证客户资料,请填写投保时提供的客户资料", | 816 | defaultTip: "您尚未验证客户资料,请填写投保时提供的客户资料", |
817 | customService: "联系客服", | 817 | customService: "客服热线", |
818 | notMatch: "您填写的信息与公司留存信息不一致,请核对,如有疑问可", | 818 | notMatch: "您填写的信息与公司留存信息不一致,请核对,如有疑问可联系", |
819 | notMatch2: "", | ||
819 | } | 820 | } |
820 | }, | 821 | }, |
821 | pagination: { | 822 | pagination: { | ... | ... |
... | @@ -144,6 +144,8 @@ export default { | ... | @@ -144,6 +144,8 @@ export default { |
144 | }, | 144 | }, |
145 | methods: { | 145 | methods: { |
146 | initData() { | 146 | initData() { |
147 | sessionStorage.setItem("clarmsRequestCid", this.cid); | ||
148 | |||
147 | let typeSelectedStr = sessionStorage.getItem("clarmTypeSelect"); | 149 | let typeSelectedStr = sessionStorage.getItem("clarmTypeSelect"); |
148 | sessionStorage.removeItem("clarmTypeSelect"); | 150 | sessionStorage.removeItem("clarmTypeSelect"); |
149 | let clarmDataFormStr = sessionStorage.getItem("clarmDataForm"); | 151 | let clarmDataFormStr = sessionStorage.getItem("clarmDataForm"); | ... | ... |
... | @@ -65,7 +65,20 @@ export default { | ... | @@ -65,7 +65,20 @@ export default { |
65 | }, | 65 | }, |
66 | methods: { | 66 | methods: { |
67 | initData() { | 67 | initData() { |
68 | let dStr = sessionStorage.getItem("clarmsCheckForm"); | ||
69 | sessionStorage.removeItem("clarmsCheckForm"); | ||
70 | if (dStr) { | ||
71 | try { | ||
72 | let d = JSON.parse(dStr); | ||
73 | this.data = d; | ||
74 | } catch (e) { | ||
68 | 75 | ||
76 | } | ||
77 | } | ||
78 | }, | ||
79 | cacheData() { | ||
80 | let d = JSON.stringify(this.data); | ||
81 | sessionStorage.setItem("clarmsCheckForm", d); | ||
69 | }, | 82 | }, |
70 | checkDate(data) { | 83 | checkDate(data) { |
71 | this.birthdayIllegal = data.disable; | 84 | this.birthdayIllegal = data.disable; |
... | @@ -81,6 +94,7 @@ export default { | ... | @@ -81,6 +94,7 @@ export default { |
81 | }); | 94 | }); |
82 | }, | 95 | }, |
83 | toContactUs() { | 96 | toContactUs() { |
97 | this.cacheData(); | ||
84 | this.$router.push({ | 98 | this.$router.push({ |
85 | path: "/custom/service?q=m1" | 99 | path: "/custom/service?q=m1" |
86 | }); | 100 | }); |
... | @@ -102,7 +116,6 @@ export default { | ... | @@ -102,7 +116,6 @@ export default { |
102 | httpPost({ url: api.clarmsCustomerList, data: { cid: cid } }).then(res => { | 116 | httpPost({ url: api.clarmsCustomerList, data: { cid: cid } }).then(res => { |
103 | this.loading = false; | 117 | this.loading = false; |
104 | if (res && res.insuredInfoList && res.insuredInfoList.length > 0) { | 118 | if (res && res.insuredInfoList && res.insuredInfoList.length > 0) { |
105 | sessionStorage.setItem("clarmsRequestCid", cid); | ||
106 | this.$emit("insuredInfoList", { cid: cid, list: res.insuredInfoList }); | 119 | this.$emit("insuredInfoList", { cid: cid, list: res.insuredInfoList }); |
107 | } else { | 120 | } else { |
108 | this.showTips = true; | 121 | this.showTips = true; | ... | ... |
... | @@ -16,6 +16,7 @@ import { | ... | @@ -16,6 +16,7 @@ import { |
16 | export default { | 16 | export default { |
17 | data() { | 17 | data() { |
18 | return { | 18 | return { |
19 | loading: false, | ||
19 | showPolicy: true, | 20 | showPolicy: true, |
20 | key: 'value', | 21 | key: 'value', |
21 | hadLoadPolicy: false, | 22 | hadLoadPolicy: false, |
... | @@ -69,11 +70,11 @@ export default { | ... | @@ -69,11 +70,11 @@ export default { |
69 | sid: true | 70 | sid: true |
70 | }).then(res => { | 71 | }).then(res => { |
71 | this.hadLoadPolicy = true; | 72 | this.hadLoadPolicy = true; |
72 | if (!res || res.length == 0) {} else { | 73 | if (!res || res.length == 0) { } else { |
73 | this.$store.commit("CACHE_POLICY_LIST", res); | 74 | this.$store.commit("CACHE_POLICY_LIST", res); |
74 | this.checkIfShowPolicy(); | 75 | this.checkIfShowPolicy(); |
75 | } | 76 | } |
76 | }).catch(e => {}); | 77 | }).catch(e => { }); |
77 | } else { | 78 | } else { |
78 | this.checkIfShowPolicy(); | 79 | this.checkIfShowPolicy(); |
79 | } | 80 | } |
... | @@ -148,11 +149,14 @@ export default { | ... | @@ -148,11 +149,14 @@ export default { |
148 | // 确认保单按钮 | 149 | // 确认保单按钮 |
149 | handleConfirmPolicy() { | 150 | handleConfirmPolicy() { |
150 | if (this.policyDetail) { | 151 | if (this.policyDetail) { |
152 | if (this.loading) { | ||
153 | return; | ||
154 | } | ||
155 | this.loading = true; | ||
151 | let policyCode = this.policyDetail.policyCode; | 156 | let policyCode = this.policyDetail.policyCode; |
152 | this.ignorePolicyCodes.push(policyCode); | 157 | this.ignorePolicyCodes.push(policyCode); |
153 | sessionStorage.setItem("ignorePolicyCodes", JSON.stringify(this.ignorePolicyCodes)); | 158 | sessionStorage.setItem("ignorePolicyCodes", JSON.stringify(this.ignorePolicyCodes)); |
154 | this.showSuccessTip = true; | 159 | // this.checkIfShowPolicy(); |
155 | this.checkIfShowPolicy(); | ||
156 | 160 | ||
157 | let params = { | 161 | let params = { |
158 | policyCode: policyCode | 162 | policyCode: policyCode |
... | @@ -162,8 +166,14 @@ export default { | ... | @@ -162,8 +166,14 @@ export default { |
162 | url: api.policyReceipt, | 166 | url: api.policyReceipt, |
163 | sid: true, | 167 | sid: true, |
164 | data: params | 168 | data: params |
165 | }).then(res => {}).catch(e => { | 169 | }).then(res => { |
166 | 170 | this.loading = false; | |
171 | this.showSuccessTip = true; | ||
172 | this.checkIfShowPolicy(); | ||
173 | }).catch(e => { | ||
174 | this.loading = false; | ||
175 | this.showDownloadError = true; | ||
176 | this.checkIfShowPolicy(); | ||
167 | }); | 177 | }); |
168 | 178 | ||
169 | } | 179 | } | ... | ... |
... | @@ -94,7 +94,10 @@ | ... | @@ -94,7 +94,10 @@ |
94 | <span>{{$t('vhis.ymd3')}}{{$t('vhis.tip3')}}</span> | 94 | <span>{{$t('vhis.ymd3')}}{{$t('vhis.tip3')}}</span> |
95 | </div> | 95 | </div> |
96 | <div class="btn-wrap"> | 96 | <div class="btn-wrap"> |
97 | <div class="submit-btn" @click="handleConfirmPolicy">{{$t('vhis.btn2')}}</div> | 97 | <div class="submit-btn flex-center " @click="handleConfirmPolicy"> |
98 | <van-loading v-if="loading" /> | ||
99 | {{$t('vhis.btn2')}} | ||
100 | </div> | ||
98 | <div class="submit-btn " @click="handleIgnorePolicy">{{$t('vhis.btn3')}}</div> | 101 | <div class="submit-btn " @click="handleIgnorePolicy">{{$t('vhis.btn3')}}</div> |
99 | </div> | 102 | </div> |
100 | <div class="flex-center contact"> | 103 | <div class="flex-center contact"> | ... | ... |
... | @@ -107,12 +107,17 @@ | ... | @@ -107,12 +107,17 @@ |
107 | </div> | 107 | </div> |
108 | <div class="flex-center validator authTip" v-if="errorModel == 2"> | 108 | <div class="flex-center validator authTip" v-if="errorModel == 2"> |
109 | <div class="icon"><img src="@/assets/images/common/icon-notice.png" alt=""></div> | 109 | <div class="icon"><img src="@/assets/images/common/icon-notice.png" alt=""></div> |
110 | <div>{{$t('customService.auth.notMatch')}} <span class="contact pointer" @click="toContactUs">{{$t('customService.auth.customService')}}</span> | 110 | <div>{{$t('customService.auth.notMatch')}} |
111 | <span class="contact pointer" @click="toContactUs">{{$t('customService.auth.customService')}}</span> | ||
112 | {{$t('customService.auth.notMatch2')}} | ||
111 | </div> | 113 | </div> |
112 | </div> | 114 | </div> |
113 | <div class="flex-center validator authTip" v-if="errorModel == 3"> | 115 | <div class="flex-center validator authTip" v-if="errorModel == 3"> |
114 | <div class="icon"><img src="@/assets/images/common/icon-notice.png" alt=""></div> | 116 | <div class="icon"><img src="@/assets/images/common/icon-notice.png" alt=""></div> |
115 | <div>{{$t('infomationImprove.noPolicy')}} <span class="contact pointer" @click="toContactUs">{{$t('infomationImprove.customService')}}</span> | 117 | <div> |
118 | {{$t('customService.auth.notMatch')}} | ||
119 | <span class="contact pointer" @click="toContactUs">{{$t('customService.auth.customService')}}</span> | ||
120 | {{$t('customService.auth.notMatch2')}} | ||
116 | </div> | 121 | </div> |
117 | </div> | 122 | </div> |
118 | 123 | ... | ... |
... | @@ -8,6 +8,7 @@ import { checkVerifyCode } from '@utils/utils.js'; | ... | @@ -8,6 +8,7 @@ import { checkVerifyCode } from '@utils/utils.js'; |
8 | 8 | ||
9 | import modalComp from '@/components/modal-comp/modal-comp.vue'; | 9 | import modalComp from '@/components/modal-comp/modal-comp.vue'; |
10 | import modalSimpleComp from '@/components/modal-simple-comp/modal-simple-comp.vue'; | 10 | import modalSimpleComp from '@/components/modal-simple-comp/modal-simple-comp.vue'; |
11 | import Modal2Comp from '@/components/modal2-comp/modal2-comp.vue'; | ||
11 | import { passwordEncrypt } from '@/utils/encrypt.js'; | 12 | import { passwordEncrypt } from '@/utils/encrypt.js'; |
12 | import Vue from 'vue'; | 13 | import Vue from 'vue'; |
13 | import { Loading } from 'vant'; | 14 | import { Loading } from 'vant'; |
... | @@ -27,6 +28,7 @@ export default { | ... | @@ -27,6 +28,7 @@ export default { |
27 | remain: 0, // 剩余时间 | 28 | remain: 0, // 剩余时间 |
28 | tip: "" // 显示的文字 | 29 | tip: "" // 显示的文字 |
29 | }, | 30 | }, |
31 | showError:false, | ||
30 | modalSimpleVisiable: false, | 32 | modalSimpleVisiable: false, |
31 | modalVisiable: false, | 33 | modalVisiable: false, |
32 | targetPath: "", | 34 | targetPath: "", |
... | @@ -291,6 +293,7 @@ export default { | ... | @@ -291,6 +293,7 @@ export default { |
291 | this.step4.error2 = ""; | 293 | this.step4.error2 = ""; |
292 | this.step4.success = false; | 294 | this.step4.success = false; |
293 | this.type = 1; | 295 | this.type = 1; |
296 | this.showError = true; | ||
294 | return false; | 297 | return false; |
295 | default: | 298 | default: |
296 | return true; | 299 | return true; |
... | @@ -335,6 +338,7 @@ export default { | ... | @@ -335,6 +338,7 @@ export default { |
335 | created() { }, | 338 | created() { }, |
336 | components: { | 339 | components: { |
337 | modalComp, | 340 | modalComp, |
338 | modalSimpleComp | 341 | modalSimpleComp, |
342 | Modal2Comp | ||
339 | } | 343 | } |
340 | } | 344 | } | ... | ... |
... | @@ -3,6 +3,7 @@ | ... | @@ -3,6 +3,7 @@ |
3 | <div> | 3 | <div> |
4 | <modal-comp :visible="modalVisiable" :show-confirm="false" :icon="modalIcon" :content="modalContent" :confirm="modalCallback" :overlay="modalCallback"></modal-comp> | 4 | <modal-comp :visible="modalVisiable" :show-confirm="false" :icon="modalIcon" :content="modalContent" :confirm="modalCallback" :overlay="modalCallback"></modal-comp> |
5 | <modal-simple-comp :visible="modalSimpleVisiable" :show-confirm="false" :icon="modalIcon" :content="modalContent" :confirm="closeModal" :overlay="closeModal" :close="closeModal"></modal-simple-comp> | 5 | <modal-simple-comp :visible="modalSimpleVisiable" :show-confirm="false" :icon="modalIcon" :content="modalContent" :confirm="closeModal" :overlay="closeModal" :close="closeModal"></modal-simple-comp> |
6 | <modal2-comp :visible="showError" :close="()=>{showError = false}" :content="$t('glbalTips.sessionLost')" ></modal2-comp> | ||
6 | <div class="ebg"></div> | 7 | <div class="ebg"></div> |
7 | <div class="content"> | 8 | <div class="content"> |
8 | <div class="top-space"></div> | 9 | <div class="top-space"></div> | ... | ... |
-
Please register or sign in to post a comment