e02330f2 by joe

需求修复

1 parent e97859f2
......@@ -10,7 +10,7 @@ module.exports = {
},
glbalTips: {
sessionLost: "Your session has expired. For your account safety, please re-enter and submit again.",
sysError : "An error occurred, <br>please try again later. "
sysError: "An error occurred, <br>please try again later. "
},
form: {
datePicker: {
......@@ -30,128 +30,128 @@ module.exports = {
name: "Login",
path: "/login",
list: [{
name: "Register",
path: "/register",
type: "noAuth",
value: ""
}, {
name: "Login",
path: "",
type: "noAuth",
value: "login"
name: "Register",
path: "/register",
type: "noAuth",
value: ""
}, {
name: "Login",
path: "",
type: "noAuth",
value: "login"
},
{
name: "Modify password",
path: "/password/reset",
type: "auth",
value: ""
},
// {
// name: "profile",
// path: "/infomation/improve",
// type: "auth",
// value: ""
// },
{
name: "Logout",
path: "",
type: "auth",
value: "logout"
},
]
},
navList: [{
name: "Products",
path: "/product/introduction",
list: [{
name: "VHIS",
path: "/vhis/detail"
},
{
name: "Insurance with Investment Focus",
path: "/vhis?p=endowment"
}
]
},
{
name: "Customer Service",
path: "/custom/product",
list: [
// {
// name: "Customer Service",
// path: "/custom/product"
// },
{
name: "Contact Us",
path: "/custom/service?q=m1"
},
{
name: "Modify password",
path: "/password/reset",
type: "auth",
value: ""
name: "Payment Options",
path: "/custom/service?q=m2"
},
{
name: "Policy Enquiry",
path: "/custom/service?q=m3"
},
{
name: "Change of Policy",
path: "/custom/service?q=m41"
},
// {
// name: "profile",
// path: "/infomation/improve",
// type: "auth",
// value: ""
// },
{
name: "Logout",
path: "",
type: "auth",
value: "logout"
name: "Claims Application",
path: "/custom/service?q=m5"
},
{
name: "Reservation",
path: "/custom/service?q=m6"
},
{
name: "Complaints",
path: "/custom/service?q=m7"
},
{
name: "Useful Forms",
path: "/custom/service?q=m8"
},
]
},
navList: [{
name: "Products",
path: "/product/introduction",
list: [{
name: "VHIS",
path: "/vhis/detail"
},
{
name: "Insurance with Investment Focus",
path: "/vhis?p=endowment"
}
]
{
name: "About Us",
path: "/profile",
list: [{
name: "About Ping An (Life) HK",
path: "/profile"
},
{
name: "Customer Service",
path: "/custom/product",
list: [
// {
// name: "Customer Service",
// path: "/custom/product"
// },
{
name: "Contact Us",
path: "/custom/service?q=m1"
},
{
name: "Payment Options",
path: "/custom/service?q=m2"
},
{
name: "Policy Enquiry",
path: "/custom/service?q=m3"
},
{
name: "Change of Policy",
path: "/custom/service?q=m41"
},
{
name: "Claims Application",
path: "/custom/service?q=m5"
},
{
name: "Reservation",
path: "/custom/service?q=m6"
},
{
name: "Complaints",
path: "/custom/service?q=m7"
},
{
name: "Useful Forms",
path: "/custom/service?q=m8"
},
]
name: "Company Events",
path: "/company/events"
}, {
name: "News Center",
path: "/news/list"
},
{
name: "About Us",
path: "/profile",
list: [{
name: "About Ping An (Life) HK",
path: "/profile"
},
{
name: "Company Events",
path: "/company/events"
}, {
name: "News Center",
path: "/news/list"
},
{
name: "Corporate Social Responsibility",
path: "/responsibility"
},
{
name: "Awards",
path: "/awards"
}
]
name: "Corporate Social Responsibility",
path: "/responsibility"
},
{
name: "Join Us",
path: "/join/us",
list: [{
name: "Corporate Culture",
path: "/corporate/culture"
},
{
name: "Career Opportunities",
path: "/career/opportunities"
},
]
name: "Awards",
path: "/awards"
}
]
},
{
name: "Join Us",
path: "/join/us",
list: [{
name: "Corporate Culture",
path: "/corporate/culture"
},
{
name: "Career Opportunities",
path: "/career/opportunities"
},
]
}
]
},
footer: {
......@@ -429,13 +429,13 @@ module.exports = {
contactPlaceholder: "(HK No./ Mainland No.)",
reservationType: "Type of Reservation",
reservationCandidates: [{
name: "Insurance consultation",
value: "投保諮詢"
},
{
name: "Agent change",
value: "代办保单变更"
}
name: "Insurance consultation",
value: "投保諮詢"
},
{
name: "Agent change",
value: "代办保单变更"
}
],
reservationRemark: "Reservation Description",
reservationRemarkPlaceholder: "Optional, no more than 500 words, prompt text \"Please briefly explain the insurance type or business you want to consult",
......@@ -487,71 +487,71 @@ module.exports = {
head4: "Attachment",
download: "Download",
form: [{
type: "Payment",
list: [{
name: "「E-account Service」and Direct Debit Authorization Application for Bank Account",
desc: "For applying e-service account and direct debit authorization",
download: "./doc/「電子入賬服務」及銀行戶口直接付款授權申請.pdf",
},
{
name: "Credit Card Account Direct Debit Authorization",
desc: "Application for credit card direct debit",
download: "./doc/信用卡戶口直接付款授權書.pdf",
}
]
type: "Payment",
list: [{
name: "「E-account Service」and Direct Debit Authorization Application for Bank Account",
desc: "For applying e-service account and direct debit authorization",
download: "./doc/「電子入賬服務」及銀行戶口直接付款授權申請.pdf",
},
{
type: "Change of Policy",
list: [{
name: "Policy Termination Application Form",
desc: "Policy surrender",
download: "./doc/保險合同解除申請書.pdf",
},
{
name: "Application for Change of Policy Form<br>(Policy Loan Repayment)",
desc: "Policy loan",
download: "./doc/保險合同變更申請書( 保單貸款還款類).pdf",
},
{
name: "Application for Change of Policy Form<br>(Change of Policy)",
desc: "Newly added premium, deducted premium",
download: "./doc/保險合同變更申請書( 保險合同計劃變更類).pdf",
},
{
name: "Application for Change of Policy Form<br>(Change of Customer Information)",
desc: "Basic Information Change",
download: "./doc/保險合同變更申請書( 客戶權益變更類).pdf",
},
{
name: "Application for Change of Policy Form<br>(Change of Beneficiary)",
desc: "Mode of payment, self-replacement and reissues",
download: "./doc/保險合同變更申請書( 客戶信息變更類).pdf",
},
{
name: "Authorization Letter",
desc: "To authorize 3rd party to handle on behalf of policy owner",
download: "./doc/授權委托書.pdf",
},
{
name: "Tax Statement",
desc: "CRS",
download: "./doc/稅收聲明.pdf",
},
{
name: "Health Declaration",
desc: "For underwriting purpose",
download: "./doc/健康告知.pdf",
}
]
name: "Credit Card Account Direct Debit Authorization",
desc: "Application for credit card direct debit",
download: "./doc/信用卡戶口直接付款授權書.pdf",
}
]
},
{
type: "Change of Policy",
list: [{
name: "Policy Termination Application Form",
desc: "Policy surrender",
download: "./doc/保險合同解除申請書.pdf",
},
{
name: "Application for Change of Policy Form<br>(Policy Loan Repayment)",
desc: "Policy loan",
download: "./doc/保險合同變更申請書( 保單貸款還款類).pdf",
},
{
name: "Application for Change of Policy Form<br>(Change of Policy)",
desc: "Newly added premium, deducted premium",
download: "./doc/保險合同變更申請書( 保險合同計劃變更類).pdf",
},
{
name: "Application for Change of Policy Form<br>(Change of Customer Information)",
desc: "Basic Information Change",
download: "./doc/保險合同變更申請書( 客戶權益變更類).pdf",
},
{
name: "Application for Change of Policy Form<br>(Change of Beneficiary)",
desc: "Mode of payment, self-replacement and reissues",
download: "./doc/保險合同變更申請書( 客戶信息變更類).pdf",
},
{
type: "Claims",
list: [{
name: "Claims Form",
desc: "For written claims application",
download: "./doc/理賠申請書.pdf",
}]
name: "Authorization Letter",
desc: "To authorize 3rd party to handle on behalf of policy owner",
download: "./doc/授權委托書.pdf",
},
{
name: "Tax Statement",
desc: "CRS",
download: "./doc/稅收聲明.pdf",
},
{
name: "Health Declaration",
desc: "For underwriting purpose",
download: "./doc/健康告知.pdf",
}
]
},
{
type: "Claims",
list: [{
name: "Claims Form",
desc: "For written claims application",
download: "./doc/理賠申請書.pdf",
}]
},
]
},
policyChangeGuide: {
......@@ -566,101 +566,101 @@ module.exports = {
head5: "Materials to be submitted",
download: "下載文檔",
form: [{
project: "Policy Surrender",
content: "Cancellation of contract after the cooling-off period, the company will refund the policy cash value",
applicant: "Policy Owner",
receptionTime: "Before Policy Expires",
materialList: [{
name: "Policy",
},
{
name: "Application form",
type: 1,
},
{
name: "ID card of Policy Owner",
},
{
name: "Bank information",
}
],
project: "Policy Surrender",
content: "Cancellation of contract after the cooling-off period, the company will refund the policy cash value",
applicant: "Policy Owner",
receptionTime: "Before Policy Expires",
materialList: [{
name: "Policy",
},
{
project: "Policy Surrender within cool off period",
content: "If the contract is cancelled within the cooling-off period, the company will refund the entire premium without interest.",
applicant: "Policy Owner",
receptionTime: "Before cool off period",
materialList: [{
name: "Policy",
},
{
name: "Application form",
type: 1,
},
{
name: "ID card of Policy Owner",
},
{
name: "Bank information",
},
{
name: "First premium receipt",
}
],
name: "Application form",
type: 1,
},
{
project: "Change of Customer Information",
projectType: 1,
path: "/custom/service",
query: {
q: "m43"
},
content: "Change of Policy Owner, Insured and Beneficiary informat",
applicant: "Policy Owner",
receptionTime: "Anytime",
materialList: [{
name: "Application form",
type: 1,
},
{
name: "Other necessary proving documents",
}
],
name: "ID card of Policy Owner",
},
{
project: "Change of Contact Information",
projectType: 1,
path: "/custom/service",
query: {
q: "m42"
},
content: "Change of address, contact no.",
applicant: "Policy Owner",
receptionTime: "Anytime",
materialList: [{
name: "Application form",
type: 1,
},
{
name: "ID card of Policy Owner",
}
],
name: "Bank information",
}
],
},
{
project: "Policy Surrender within cool off period",
content: "If the contract is cancelled within the cooling-off period, the company will refund the entire premium without interest.",
applicant: "Policy Owner",
receptionTime: "Before cool off period",
materialList: [{
name: "Policy",
},
{
name: "Application form",
type: 1,
},
{
name: "ID card of Policy Owner",
},
{
name: "Bank information",
},
{
project: "Change of Payment Information",
content: "Change of mode of payment or payement account",
applicant: "Policy Owner",
// receptionTime: "Before the expiration of policy payment",
receptionTime: "Before the policy payment expiration date",
materialList: [{
name: "Application form",
type: 1,
},
{
name: "Policy",
}
],
name: "First premium receipt",
}
],
},
{
project: "Change of Customer Information",
projectType: 1,
path: "/custom/service",
query: {
q: "m43"
},
content: "Change of Policy Owner, Insured and Beneficiary informat",
applicant: "Policy Owner",
receptionTime: "Anytime",
materialList: [{
name: "Application form",
type: 1,
},
{
name: "Other necessary proving documents",
}
],
},
{
project: "Change of Contact Information",
projectType: 1,
path: "/custom/service",
query: {
q: "m42"
},
content: "Change of address, contact no.",
applicant: "Policy Owner",
receptionTime: "Anytime",
materialList: [{
name: "Application form",
type: 1,
},
{
name: "ID card of Policy Owner",
}
],
},
{
project: "Change of Payment Information",
content: "Change of mode of payment or payement account",
applicant: "Policy Owner",
// receptionTime: "Before the expiration of policy payment",
receptionTime: "Before the policy payment expiration date",
materialList: [{
name: "Application form",
type: 1,
},
{
name: "Policy",
}
],
},
]
},
policyChangeContact: {
......@@ -791,7 +791,7 @@ module.exports = {
showMore: "Show all policies.",
noPolicy: "You haven't bought any policy, if you have any questions please",
customService: " contact customer service",
downloadClick:"Download",
downloadClick: "Download",
},
unauth: {
m1: {
......@@ -819,8 +819,9 @@ module.exports = {
},
auth: {
defaultTip: "You have not verified the customer information, please fill in the customer information provided at the time of insurance",
customService: " contact customer service",
notMatch: "The information is not match. Please check it. If you have any questions, you can",
customService: "customer service hotline",
notMatch: "The information provided did not match our record. Please contact",
notMatch2: " if you have any queries.",
}
},
pagination: {
......@@ -863,8 +864,8 @@ module.exports = {
tip3: ".",
tip4: "",
tip5: "Contact Customer Service Hotline",
tip6 : "The policy acknowledgement has been done, to inquire about the policy information or download ePolicy, please click ",
tip7 : "Policy Enquiry"
tip6: "The policy acknowledgement has been done, to inquire about the policy information or download ePolicy, please click ",
tip7: "Policy Enquiry"
},
clarms: {
title: "File a claim",
......
......@@ -791,8 +791,9 @@ module.exports = {
},
auth: {
defaultTip: "您尚未驗證客戶資料,請填寫投保時提供的客戶資料",
customService: " 聯繫客服",
notMatch: "您填寫的信息與公司留存信息不一致,請核對,如有疑問可",
customService: "客戶服務熱線",
notMatch: "您填寫的資訊與我們記錄不同,請重新核對,如有疑問,請致電",
notMatch2: "",
}
},
pagination: {
......
......@@ -353,7 +353,7 @@ module.exports = {
e6: "您填写的证件号码有误",
e7: "您填写的信息有误,请核实后重新提交",
},
noPolicy: "对不起,您输入的数据与本公司的纪录不符,请重新输入。如需帮助可",
noPolicy: "您填写的信息与公司留存信息不一致,请核对,如有疑问可",
customService: "联系客服",
},
index: {
......@@ -814,8 +814,9 @@ module.exports = {
},
auth: {
defaultTip: "您尚未验证客户资料,请填写投保时提供的客户资料",
customService: "联系客服",
notMatch: "您填写的信息与公司留存信息不一致,请核对,如有疑问可",
customService: "客服热线",
notMatch: "您填写的信息与公司留存信息不一致,请核对,如有疑问可联系",
notMatch2: "",
}
},
pagination: {
......
......@@ -144,6 +144,8 @@ export default {
},
methods: {
initData() {
sessionStorage.setItem("clarmsRequestCid", this.cid);
let typeSelectedStr = sessionStorage.getItem("clarmTypeSelect");
sessionStorage.removeItem("clarmTypeSelect");
let clarmDataFormStr = sessionStorage.getItem("clarmDataForm");
......
......@@ -65,7 +65,20 @@ export default {
},
methods: {
initData() {
let dStr = sessionStorage.getItem("clarmsCheckForm");
sessionStorage.removeItem("clarmsCheckForm");
if (dStr) {
try {
let d = JSON.parse(dStr);
this.data = d;
} catch (e) {
}
}
},
cacheData() {
let d = JSON.stringify(this.data);
sessionStorage.setItem("clarmsCheckForm", d);
},
checkDate(data) {
this.birthdayIllegal = data.disable;
......@@ -81,6 +94,7 @@ export default {
});
},
toContactUs() {
this.cacheData();
this.$router.push({
path: "/custom/service?q=m1"
});
......@@ -102,7 +116,6 @@ export default {
httpPost({ url: api.clarmsCustomerList, data: { cid: cid } }).then(res => {
this.loading = false;
if (res && res.insuredInfoList && res.insuredInfoList.length > 0) {
sessionStorage.setItem("clarmsRequestCid", cid);
this.$emit("insuredInfoList", { cid: cid, list: res.insuredInfoList });
} else {
this.showTips = true;
......
......@@ -16,6 +16,7 @@ import {
export default {
data() {
return {
loading: false,
showPolicy: true,
key: 'value',
hadLoadPolicy: false,
......@@ -69,11 +70,11 @@ export default {
sid: true
}).then(res => {
this.hadLoadPolicy = true;
if (!res || res.length == 0) {} else {
if (!res || res.length == 0) { } else {
this.$store.commit("CACHE_POLICY_LIST", res);
this.checkIfShowPolicy();
}
}).catch(e => {});
}).catch(e => { });
} else {
this.checkIfShowPolicy();
}
......@@ -85,7 +86,7 @@ export default {
for (let index = 0; index < this.policyList.length; index++) {
let policy = this.policyList[index];
if (policy.checkFlag == "Y") {
// if (policy.checkFlag == "N") { // 体验弹窗
// if (policy.checkFlag == "N") { // 体验弹窗
continue;
}
if (this.ignorePolicyCodes.indexOf(policy.policyCode) >= 0) {
......@@ -148,11 +149,14 @@ export default {
// 确认保单按钮
handleConfirmPolicy() {
if (this.policyDetail) {
if (this.loading) {
return;
}
this.loading = true;
let policyCode = this.policyDetail.policyCode;
this.ignorePolicyCodes.push(policyCode);
sessionStorage.setItem("ignorePolicyCodes", JSON.stringify(this.ignorePolicyCodes));
this.showSuccessTip = true;
this.checkIfShowPolicy();
// this.checkIfShowPolicy();
let params = {
policyCode: policyCode
......@@ -162,8 +166,14 @@ export default {
url: api.policyReceipt,
sid: true,
data: params
}).then(res => {}).catch(e => {
}).then(res => {
this.loading = false;
this.showSuccessTip = true;
this.checkIfShowPolicy();
}).catch(e => {
this.loading = false;
this.showDownloadError = true;
this.checkIfShowPolicy();
});
}
......
......@@ -94,7 +94,10 @@
<span>{{$t('vhis.ymd3')}}{{$t('vhis.tip3')}}</span>
</div>
<div class="btn-wrap">
<div class="submit-btn" @click="handleConfirmPolicy">{{$t('vhis.btn2')}}</div>
<div class="submit-btn flex-center " @click="handleConfirmPolicy">
<van-loading v-if="loading" />
{{$t('vhis.btn2')}}
</div>
<div class="submit-btn " @click="handleIgnorePolicy">{{$t('vhis.btn3')}}</div>
</div>
<div class="flex-center contact">
......
......@@ -107,12 +107,17 @@
</div>
<div class="flex-center validator authTip" v-if="errorModel == 2">
<div class="icon"><img src="@/assets/images/common/icon-notice.png" alt=""></div>
<div>{{$t('customService.auth.notMatch')}}&nbsp;<span class="contact pointer" @click="toContactUs">{{$t('customService.auth.customService')}}</span>
<div>{{$t('customService.auth.notMatch')}}&nbsp;
<span class="contact pointer" @click="toContactUs">{{$t('customService.auth.customService')}}</span>
&nbsp;{{$t('customService.auth.notMatch2')}}
</div>
</div>
<div class="flex-center validator authTip" v-if="errorModel == 3">
<div class="icon"><img src="@/assets/images/common/icon-notice.png" alt=""></div>
<div>{{$t('infomationImprove.noPolicy')}}&nbsp;<span class="contact pointer" @click="toContactUs">{{$t('infomationImprove.customService')}}</span>
<div>
{{$t('customService.auth.notMatch')}}&nbsp;
<span class="contact pointer" @click="toContactUs">{{$t('customService.auth.customService')}}</span>
&nbsp;{{$t('customService.auth.notMatch2')}}
</div>
</div>
......
......@@ -8,6 +8,7 @@ import { checkVerifyCode } from '@utils/utils.js';
import modalComp from '@/components/modal-comp/modal-comp.vue';
import modalSimpleComp from '@/components/modal-simple-comp/modal-simple-comp.vue';
import Modal2Comp from '@/components/modal2-comp/modal2-comp.vue';
import { passwordEncrypt } from '@/utils/encrypt.js';
import Vue from 'vue';
import { Loading } from 'vant';
......@@ -27,6 +28,7 @@ export default {
remain: 0, // 剩余时间
tip: "" // 显示的文字
},
showError:false,
modalSimpleVisiable: false,
modalVisiable: false,
targetPath: "",
......@@ -291,6 +293,7 @@ export default {
this.step4.error2 = "";
this.step4.success = false;
this.type = 1;
this.showError = true;
return false;
default:
return true;
......@@ -335,6 +338,7 @@ export default {
created() { },
components: {
modalComp,
modalSimpleComp
modalSimpleComp,
Modal2Comp
}
}
......
......@@ -3,6 +3,7 @@
<div>
<modal-comp :visible="modalVisiable" :show-confirm="false" :icon="modalIcon" :content="modalContent" :confirm="modalCallback" :overlay="modalCallback"></modal-comp>
<modal-simple-comp :visible="modalSimpleVisiable" :show-confirm="false" :icon="modalIcon" :content="modalContent" :confirm="closeModal" :overlay="closeModal" :close="closeModal"></modal-simple-comp>
<modal2-comp :visible="showError" :close="()=>{showError = false}" :content="$t('glbalTips.sessionLost')" ></modal2-comp>
<div class="ebg"></div>
<div class="content">
<div class="top-space"></div>
......