34259a6a by joe

回执回销

1 parent b4da88d9
......@@ -5,6 +5,7 @@
<router-view />
</main>
<v-footer></v-footer>
<vhis-modal></vhis-modal>
</div>
</template>
......@@ -16,6 +17,7 @@ import { mapGetters, mapActions, mapState } from "vuex";
import { getCookie } from "@utils/utils.js";
import VHeader from "@components/home/header/header.vue";
import VFooter from "@components/home/footer/footer.vue";
import VhisModal from "@components/vhis-modal/vhis-modal.vue";
import api from "@/api/api";
import { httpGet, httpPost } from "@/api/fetch-api.js";
......@@ -26,7 +28,8 @@ export default {
name: "app",
components: {
VHeader,
VFooter
VFooter,
VhisModal
},
computed: {
...mapState({
......
......@@ -56,6 +56,8 @@ module.exports = {
updatePolicyInfo : "/pingan_hklife_webapi/policy/updateInfo",
// 证件上传
idPicUpload : "/pingan_hklife_webapi/policy/idPicUpload",
// 回销回执
policyReceipt : "/pingan_hklife_webapi/policy/policyReceipt",
// cms相关
......
......@@ -807,5 +807,29 @@ module.exports = {
publishAt: "Publish time",
readers: "Number of reader",
per: ""
},
vhis: {
title: "Policy confirmation",
desc1: "Thank you for purchasing Ping An Life insurance products.",
desc2: "The policy is covered and enclosed for your reference and preservation.",
desc3: "The policy is an important file. Please check the accuracy of the content immediately,",
desc4: "If you have any missing files or wrong information, please call the customer service hotline.",
desc5: "Please sign and issue a confirmation receipt for our records.",
label1: "Policy number",
label2: "Product name",
label3: "effective date",
label4: "Policyholder",
label5: "Insured",
btn1: "Download e-policy",
btn2: "Confirm immediately",
btn3: "Confirm later",
ymd1: "/",
ymd2: "/",
ymd3: "",
tip1: "I",
tip2: "hereby confirmed that",
tip3: "collection of the above policies",
tip4: "I would like to contact customer service"
}
}
......
......@@ -803,5 +803,28 @@ module.exports = {
publishAt: "發佈時間",
readers: "閱讀人數",
per: "人"
},
vhis: {
title: "保單確認書",
desc1: "多謝閣下投保平安人壽保險產品。",
desc2: "保單已經承保,內附于此供閣下參考及保存。",
desc3: "保單是重要檔,請即查閱其內容準確性,",
desc4: "如有任何遺漏檔或資料錯誤,請致電客戶服務熱線。",
desc5: "煩請簽署下發確認簽收書以作為本公司記錄之用。",
label1: "保單編號",
label2: "產品名稱",
label3: "生效日期",
label4: "保單持有人",
label5: "受保人",
btn1: "下載電子保單",
btn2: "立即確認",
btn3: "稍後確認",
ymd1: "年",
ymd2: "月",
ymd3: "日",
tip1: "本人",
tip2: "現確認於",
tip3: "收托上述保單",
tip4: "我想聯絡客服"
}
}
......
......@@ -805,5 +805,28 @@ module.exports = {
publishAt: "发布时间",
readers: "阅读人数",
per: "人"
},
vhis: {
title: "保单确认书",
desc1: "多谢阁下投保平安人寿保险产品。",
desc2: "保单已经承保,内附于此供阁下参考及保存。",
desc3: "保单是重要档,请即查阅其内容准确性,",
desc4: "如有任何遗漏档或资料错误,请致电客户服务热线。",
desc5: "烦请签署下发确认签收书以作为本公司记录只用。",
label1: "保单编号",
label2: "产品名称",
label3: "生效日期",
label4: "保单持有人",
label5: "受保人",
btn1: "下载电子保单",
btn2: "立即确认",
btn3: "稍后确认",
ymd1: "年",
ymd2: "月",
ymd3: "日",
tip1: "本人",
tip2: "现确认于",
tip3: "受托上述保单",
tip4: "我想联络客服"
}
}
......
import { mapState } from "vuex";
import api from '@/api/api'
import {
httpGet,
httpPost
} from '@/api/fetch-api.js'
export default {
data() {
return {
showPolicy: true,
key: 'value',
hadLoadPolicy: false,
ignorePolicyCodes: [],
// 显示
policyDetail: null
}
},
components: {},
computed: {
...mapState({
userInfo: state => state.userInfo,
policyList: state => state.policyList
})
},
methods: {
initData() {
if (this.isLogin() && !this.hadLoadPolicy) {
this.ignorePolicyCodes = [];
let temp = sessionStorage.getItem("ignorePolicyCodes");
if (temp) {
try {
JSON.parse(temp).forEach(element => {
this.ignorePolicyCodes.push(element);
});
} catch (e) {
}
}
httpPost({ url: api.policyList, sid: true }).then(res => {
this.hadLoadPolicy = true;
if (!res || res.length == 0) {
} else {
this.$store.commit("CACHE_POLICY_LIST", res);
this.checkIfShowPolicy();
}
}).catch(e => {
});
} else {
this.checkIfShowPolicy();
}
},
// 检查是否需要显示policyModal
checkIfShowPolicy() {
this.policyDetail = null;
if (this.policyList) {
for (let index = 0; index < this.policyList.length; index++) {
let policy = this.policyList[index];
if (policy.checkFlag == "Y") {
continue;
}
if (this.ignorePolicyCodes.indexOf(policy.policyCode) >= 0) {
continue;
}
this.initPolicyForShow(policy);
break;
}
}
},
initPolicyForShow(policy) {
let params = {
policyId: policy.policyId,
policyCode: policy.policyCode
};
httpPost({ url: api.policyDetail, sid: true, data: params }).then(res => {
this.policyDetail = res;
this.policyDetail.ymd1 = "";
this.policyDetail.ymd2 = "";
this.policyDetail.ymd3 = "";
let now = new Date();
let y = now.getFullYear();
let m = now.getMonth() + 1;
let d = now.getDate();
if (this.$i18n.locale == 'en') {
this.policyDetail.nowYmd1 = m > 10 ? m : "0" + m;
this.policyDetail.nowYmd2 = d > 10 ? d : "0" + d;
this.policyDetail.nowYmd3 = y;
} else {
this.policyDetail.nowYmd1 = y;
this.policyDetail.nowYmd2 = m > 10 ? m : "0" + m;
this.policyDetail.nowYmd3 = d > 10 ? d : "0" + d;
}
if (this.policyDetail.activeDate) {
let ymds = this.policyDetail.activeDate.split(" ")[0].split("-");
if (this.$i18n.locale == 'en') {
this.policyDetail.ymd1 = ymds[1];
this.policyDetail.ymd2 = ymds[2];
this.policyDetail.ymd3 = ymds[0];
} else {
this.policyDetail.ymd1 = ymds[0];
this.policyDetail.ymd2 = ymds[1];
this.policyDetail.ymd3 = ymds[2];
}
}
}).catch(err => {
});
},
// 确认保单按钮
handleConfirmPolicy() {
if (this.policyDetail) {
let policyCode = this.policyDetail.policyCode;
this.ignorePolicyCodes.push(policyCode);
sessionStorage.setItem("ignorePolicyCodes", JSON.stringify(this.ignorePolicyCodes));
this.checkIfShowPolicy();
let params = {
policyCode: policyCode
};
// 回销
httpPost({ url: api.policyReceipt, sid: true, data: params }).then(res => {
}).catch(e => {
});
}
},
// 忽略保单按钮
handleIgnorePolicy() {
console.log(this.policyDetail);
if (this.policyDetail) {
this.ignorePolicyCodes.push(this.policyDetail.policyCode);
sessionStorage.setItem("ignorePolicyCodes", JSON.stringify(this.ignorePolicyCodes));
this.checkIfShowPolicy();
}
},
onOverLayHandler() {
this.showPolicy = false;
},
toContact() {
this.showPolicy = false;
this.$router.push({
path: "/custom/service?q=m1"
});
},
loginAction() {
this.showPolicy = true;
this.initData();
},
logoutAction() {
this.showPolicy = false;
this.hadLoadPolicy = false;
this.policyDetail = null;
this.ignorePolicyCodes = [];
sessionStorage.removeItem("ignorePolicyCodes");
},
isLogin() {
return this.userInfo && this.userInfo.sid;
}
},
mounted() {
},
created() {
this.initData();
},
watch: {
userInfo(val) {
if (val && val.name) {
this.loginAction();
} else {
this.logoutAction();
}
}
},
}
@import '@/styles/_support';
.comp {
position: fixed;
top: 0;
left: 0;
z-index: 999;
width: 100%;
height: 100%;
@extend .fcc;
text-align: center;
}
.overlay {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba($color: #000000, $alpha: 0.7);
}
.orange {
color: $cOrange;
}
.modal {
position: relative;
@extend .bb;
width: 63.333333rem;
// height: 28.5rem;
border-radius: .8333rem;
background-color: #ffffff;
padding: 4.5rem 3rem 2.5rem;
border: .083333rem solid $cOrange;
.title {
font-size: 1.5rem ;
color: $cOrange;
}
.content {
width: 70%;
margin: auto;
}
.desc {
text-align: left;
line-height: 2.2rem ;
min-width: 7.5rem ;
span {
margin: 0 .166667rem ;
}
}
.value {
text-align: left;
line-height: 2rem ;
}
hr {
border-top: 1px solid #e4e4e5;
width: 70%;
margin: auto;
}
.download-btn {
cursor: pointer;
border: 1px solid $cOrange;
border-radius: .416667rem;
padding: .5rem;
margin: 2rem auto;
width: 35rem;
img {
max-height: 2.083333rem;
}
.btn-name {
margin-left: 1.666667rem ;
}
}
.flex-center {
display: flex;
justify-items: center;
align-items: center;
}
.default-mt {
margin-top: 3.2rem;
}
.half-mt {
margin-top: 1rem;
}
.submit-btn {
background: url("~@assets/images/vhis/vhis-btn.png");
background-size: 100% 100%;
background-repeat: no-repeat;
width: 14rem;
height: 2rem;
line-height: 2rem;
color: white;
font-weight: 600;
cursor: pointer;
}
.btn-margin {
margin-left: 2rem !important;
}
}
.flex-left {
display: flex;
justify-content: flex-start;
align-items: flex-start;
}
.hide {
display: none;
}
@media (max-width: 1200px) {
.comp {
position: fixed;
}
.modal {
width: 70%;
position: absolute;
.content {
width: 80%;
margin: auto;
}
.download-btn{
width: 80%;
}
.default-mt {
margin-top: 2rem;
}
.half-mt {
margin-top: 1rem;
}
hr {
border-top: 1px solid #e4e4e5;
width: 80%;
margin: auto;
}
}
}
@media (max-width: 768px) {
.modal {
// height: 28.5rem;
padding: 3rem 1.5rem;
width: 80%;
height: auto;
.content {
width: 90%;
margin: auto;
}
.download-btn {
margin: 1rem auto;
width: 90%;
}
hr {
border-top: 1px solid #e4e4e5;
width: 90% ;
margin: auto;
}
.default-mt {
margin-top: 1.5rem ;
}
.download-btn{
width: 100%;
}
.submit-btn {
background-size: 100% 100% ;
width: 10rem ;
}
.btn-margin {
margin-left: 1.666667rem ;
}
}
}
@media (max-width: 400px) {
.modal {
// height: 28.5rem;
padding: 3rem 1.5rem;
width: 90%;
height: auto;
.content {
width: 100%;
margin: auto;
}
.download-btn {
margin: 1rem auto;
width: 100%;
}
hr {
border-top: 1px solid #e4e4e5;
width: 100% ;
margin: auto;
}
.default-mt {
margin-top: 1.5rem ;
}
.submit-btn {
background-size: 100% 100% ;
width: 10rem ;
}
.btn-margin {
margin-left: 1.666667rem ;
}
}
}
\ No newline at end of file
<template>
<div class="comp" v-if="policyDetail && showPolicy">
<div @click="onOverLayHandler()" class="overlay"></div>
<div class="modal">
<div class="title">{{$t('vhis.title')}}</div>
<div class="content default-mt">
<div class="desc orange">{{$t('vhis.desc1')}}</div>
<div class="desc">{{$t('vhis.desc2')}}</div>
<div class="desc">{{$t('vhis.desc3')}}</div>
<div class="desc">{{$t('vhis.desc4')}}</div>
<div class="desc">{{$t('vhis.desc5')}}</div>
</div>
<hr class="default-mt">
<div class="content default-mt">
<div class="flex-left"><div class="desc">{{$t('vhis.label1')}}</div><div class="value orange">{{policyDetail.policyCode}}</div></div>
<div class="flex-left"><div class="desc">{{$t('vhis.label2')}}</div><div class="value">{{policyDetail.productName}}</div></div>
<div class="flex-left"><div class="desc">{{$t('vhis.label3')}}</div><div class="value"><span class="orange">{{policyDetail.ymd1}}</span>{{$t('vhis.ymd1')}}<span class="orange">{{policyDetail.ymd2}}</span>{{$t('vhis.ymd2')}}<span class="orange">{{policyDetail.ymd2}}</span>{{$t('vhis.ymd3')}}</div></div>
<div class="flex-left"><div class="desc">{{$t('vhis.label4')}}</div><div class="value">{{policyDetail.clientNameCn}}</div></div>
<div class="flex-left"><div class="desc">{{$t('vhis.label5')}}</div><div class="value">{{policyDetail.insuredNameCn}}</div></div>
<div class="download-btn flex-center"><img src="@/assets/images/vhis/vhis-download.png"><span class="btn-name">{{$t('vhis.btn1')}}</span></div>
</div>
<hr class="default-mt">
<div class="content default-mt">
<span class="desc">{{$t('vhis.tip1')}}<span class="orange">{{policyDetail.clientNameCn}}</span>{{$t('vhis.tip2')}}<span class="orange">{{policyDetail.nowYmd1}}</span>{{$t('vhis.ymd1')}}<span class="orange">{{policyDetail.nowYmd2}}</span>{{$t('vhis.ymd2')}}<span class="orange">{{policyDetail.nowYmd3}}</span>{{$t('vhis.ymd3')}}{{$t('vhis.tip3')}}</span>
<div class="flex-center half-mt">
<div class="submit-btn" @click="handleConfirmPolicy" >{{$t('vhis.btn2')}}</div>
<div class="submit-btn btn-margin" @click="handleIgnorePolicy" >{{$t('vhis.btn3')}}</div>
</div>
<div class="flex-center half-mt pointer" @click="toContact()"><span class="orange bold">{{$t('vhis.tip4')}}</span></div>
</div>
</div>
</div>
</template>
<script src="./vhis-modal.js"></script>
<style lang="scss" scoped>
@import "./vhis-modal.scss";
</style>
......@@ -70,13 +70,13 @@ export default {
return i18n.infomationImprove.candidates.idType;
},
nationList() {
return getNationsList();
return getNationsList(this.$i18n.locale);
},
marryList() {
return getMarryList();
},
policyIdTypeList() {
return getPolicyIdTypeList();
return getPolicyIdTypeList(this.$i18n.locale);
}
},
methods: {
......
......@@ -40,7 +40,7 @@
<div class="icon"><img src="@/assets/images/policy-change-information/icon-pci-info.png"></div>{{$t('policyChangeInformation.sex')}}
</div>
<div class="fla">
<div class="icon icon2"><img src="@/assets/images/policy-change-information/icon-pci-notice.png"></div>
<span class="icon icon2"><img src="@/assets/images/policy-change-information/icon-pci-notice.png"></span>
<span class="t1">{{$t('policyChangeInformation.modifyTips1')}}</span>&nbsp;
<span class="t2" @click="toContactUs()">{{$t('policyChangeInformation.modifyTips2')}}</span>
</div>
......
let nationsList = [
let nationsEnList = [
{ "v": "10", "n": "HONG KONG,CHINA" },
{ "v": "28", "n": "CHINA" },
{ "v": "401", "n": "AFGHANISTAN" },
......@@ -242,17 +242,274 @@ let nationsList = [
{ "v": "906", "n": "REPUBLIC OF SOUTH SUDAN" }
]
let nationsTcList = [
{ "v": "10", "n": "中国香港" },
{ "v": "28", "n": "中國" },
{ "v": "401", "n": "阿富汗" },
{ "v": "403", "n": "阿爾巴尼亞" },
{ "v": "405", "n": "阿爾及利亞" },
{ "v": "407", "n": "美屬薩摩亞" },
{ "v": "409", "n": "安道爾" },
{ "v": "411", "n": "安哥拉" },
{ "v": "413", "n": "安圭拉" },
{ "v": "415", "n": "南極洲" },
{ "v": "417", "n": "安地卡及巴布達" },
{ "v": "419", "n": "阿根廷" },
{ "v": "421", "n": "亞美尼亞" },
{ "v": "423", "n": "阿魯巴" },
{ "v": "425", "n": "澳大利亞" },
{ "v": "427", "n": "奧地利" },
{ "v": "429", "n": "亞塞拜疆" },
{ "v": "431", "n": "巴哈馬" },
{ "v": "433", "n": "巴林" },
{ "v": "435", "n": "孟加拉" },
{ "v": "437", "n": "巴貝多" },
{ "v": "439", "n": "白俄羅斯" },
{ "v": "441", "n": "比利時" },
{ "v": "443", "n": "貝里斯" },
{ "v": "445", "n": "聖伯南" },
{ "v": "447", "n": "百慕達" },
{ "v": "449", "n": "不丹" },
{ "v": "451", "n": "玻利維亞" },
{ "v": "453", "n": "波士尼亞與赫塞哥維納" },
{ "v": "455", "n": "波札那" },
{ "v": "457", "n": "布韋島" },
{ "v": "459", "n": "巴西" },
{ "v": "461", "n": "汶萊" },
{ "v": "463", "n": "保加利亞" },
{ "v": "465", "n": "布吉納法索" },
{ "v": "467", "n": "蒲隆地" },
{ "v": "469", "n": "柬埔寨" },
{ "v": "471", "n": "喀麥隆" },
{ "v": "473", "n": "加拿大" },
{ "v": "475", "n": "維德角" },
{ "v": "477", "n": "開曼群島" },
{ "v": "479", "n": "中非共和國" },
{ "v": "481", "n": "查德" },
{ "v": "483", "n": "智利" },
{ "v": "485", "n": "聖誕島" },
{ "v": "487", "n": "科科斯(基林)群島" },
{ "v": "489", "n": "哥倫比亞" },
{ "v": "491", "n": "葛摩" },
{ "v": "493", "n": "剛果民主共和國" },
{ "v": "495", "n": "庫克群島" },
{ "v": "497", "n": "哥斯大黎加" },
{ "v": "499", "n": "象牙" },
{ "v": "501", "n": "克羅地亞" },
{ "v": "503", "n": "古巴" },
{ "v": "505", "n": "賽普勒斯" },
{ "v": "507", "n": "捷克" },
{ "v": "509", "n": "丹麥" },
{ "v": "511", "n": "吉布地" },
{ "v": "513", "n": "多米尼克" },
{ "v": "515", "n": "東帝汶" },
{ "v": "517", "n": "厄瓜多爾" },
{ "v": "519", "n": "埃及" },
{ "v": "521", "n": "薩爾瓦多" },
{ "v": "523", "n": "赤道幾內亞" },
{ "v": "525", "n": "厄立特里亚" },
{ "v": "527", "n": "愛沙尼亞" },
{ "v": "529", "n": "埃塞俄比亞" },
{ "v": "531", "n": "福克蘭群島" },
{ "v": "533", "n": "法羅群島" },
{ "v": "535", "n": "斐濟" },
{ "v": "537", "n": "芬蘭" },
{ "v": "539", "n": "法國" },
{ "v": "541", "n": "加蓬" },
{ "v": "543", "n": "甘比亞" },
{ "v": "545", "n": "格魯吉亞" },
{ "v": "547", "n": "德國" },
{ "v": "549", "n": "加納" },
{ "v": "551", "n": "直布羅陀" },
{ "v": "553", "n": "希臘" },
{ "v": "555", "n": "格林蘭" },
{ "v": "557", "n": "格林納達" },
{ "v": "559", "n": "瓜德羅普" },
{ "v": "561", "n": "關島 " },
{ "v": "563", "n": "瓜地馬拉" },
{ "v": "565", "n": "幾內亞" },
{ "v": "567", "n": "畿內亞比紹 " },
{ "v": "569", "n": "圭亞那" },
{ "v": "571", "n": "海地" },
{ "v": "573", "n": "听到和麦当劳群岛" },
{ "v": "575", "n": "梵蒂岡" },
{ "v": "577", "n": "洪都拉斯" },
{ "v": "579", "n": "匈牙利" },
{ "v": "581", "n": "冰島" },
{ "v": "583", "n": "印度" },
{ "v": "585", "n": "印尼" },
{ "v": "587", "n": "伊朗" },
{ "v": "589", "n": "伊拉克" },
{ "v": "591", "n": "愛爾蘭" },
{ "v": "593", "n": "以色列" },
{ "v": "595", "n": "義大利" },
{ "v": "597", "n": "牙買加" },
{ "v": "599", "n": "日本" },
{ "v": "601", "n": "约旦" },
{ "v": "603", "n": "哈薩克斯坦" },
{ "v": "605", "n": "肯雅" },
{ "v": "607", "n": "吉爾伯特" },
{ "v": "609", "n": "科索沃" },
{ "v": "611", "n": "科威特" },
{ "v": "613", "n": "吉尔吉斯斯坦" },
{ "v": "615", "n": "老撾" },
{ "v": "617", "n": "拉脫維亞" },
{ "v": "619", "n": "黎巴嫩" },
{ "v": "621", "n": "萊索托" },
{ "v": "623", "n": "利比理亞" },
{ "v": "625", "n": "利比亞" },
{ "v": "627", "n": "列支敦士登" },
{ "v": "629", "n": "立陶宛" },
{ "v": "631", "n": "盧森堡" },
{ "v": "633", "n": "馬達加斯加" },
{ "v": "635", "n": "馬拉維 " },
{ "v": "637", "n": "馬來西亞" },
{ "v": "639", "n": "馬爾代夫" },
{ "v": "641", "n": "馬里 " },
{ "v": "643", "n": "馬耳他" },
{ "v": "645", "n": "馬紹爾群島" },
{ "v": "647", "n": "馬丁尼克" },
{ "v": "649", "n": "毛里塔尼亞" },
{ "v": "651", "n": "毛里求斯" },
{ "v": "653", "n": "馬約特島" },
{ "v": "655", "n": "墨西哥" },
{ "v": "657", "n": "密克羅尼西亞" },
{ "v": "659", "n": "摩納哥" },
{ "v": "661", "n": "蒙古" },
{ "v": "663", "n": "黑山" },
{ "v": "665", "n": "蒙塞拉特" },
{ "v": "667", "n": "摩洛哥" },
{ "v": "669", "n": "莫桑比克" },
{ "v": "671", "n": "緬甸" },
{ "v": "673", "n": "納米比亞" },
{ "v": "675", "n": "那魯" },
{ "v": "677", "n": "尼泊爾" },
{ "v": "679", "n": "荷蘭" },
{ "v": "681", "n": "新喀里多尼亞島" },
{ "v": "683", "n": "新西蘭" },
{ "v": "685", "n": "尼加拉瓜" },
{ "v": "687", "n": "尼日爾" },
{ "v": "689", "n": "尼日利亞" },
{ "v": "691", "n": "紐埃" },
{ "v": "693", "n": "諾福克島" },
{ "v": "695", "n": "朝鮮" },
{ "v": "697", "n": "北馬里亞納群島自由邦" },
{ "v": "699", "n": "挪威" },
{ "v": "701", "n": "阿曼" },
{ "v": "703", "n": "巴基斯坦" },
{ "v": "705", "n": "帛琉" },
{ "v": "707", "n": "巴勒斯坦" },
{ "v": "709", "n": "巴拿馬" },
{ "v": "711", "n": "巴布亞新磯內亞" },
{ "v": "713", "n": "巴拉圭" },
{ "v": "715", "n": "秘魯" },
{ "v": "717", "n": "菲律賓" },
{ "v": "719", "n": "皮特克恩" },
{ "v": "721", "n": "波蘭" },
{ "v": "723", "n": "葡萄牙" },
{ "v": "725", "n": "波多黎哥" },
{ "v": "727", "n": "卡塔爾" },
{ "v": "729", "n": "馬其頓共和國" },
{ "v": "731", "n": "摩爾多瓦共和國" },
{ "v": "733", "n": "留尼旺島" },
{ "v": "735", "n": "羅馬尼亞" },
{ "v": "737", "n": "俄羅斯" },
{ "v": "739", "n": "盧旺達" },
{ "v": "741", "n": "巴斯特爾" },
{ "v": "743", "n": "聖露西亞" },
{ "v": "745", "n": "聖文森及格瑞那丁" },
{ "v": "747", "n": "薩摩亞" },
{ "v": "749", "n": "圣马利诺" },
{ "v": "751", "n": "聖多美和普林西比" },
{ "v": "753", "n": "沙烏地阿拉伯" },
{ "v": "755", "n": "塞內加爾" },
{ "v": "757", "n": "塞爾維亞" },
{ "v": "759", "n": "塞爾維亞和黑山共和國" },
{ "v": "761", "n": "塞席爾群島" },
{ "v": "763", "n": "塞拉利昂" },
{ "v": "765", "n": "新加坡" },
{ "v": "767", "n": "斯洛伐克" },
{ "v": "769", "n": "斯洛文尼亚" },
{ "v": "771", "n": "所羅門群島" },
{ "v": "773", "n": "索馬里" },
{ "v": "775", "n": "南非" },
{ "v": "777", "n": "南喬治亞島和南桑威奇" },
{ "v": "779", "n": "南韓" },
{ "v": "781", "n": "南也門" },
{ "v": "783", "n": "西班牙" },
{ "v": "785", "n": "斯里蘭卡" },
{ "v": "787", "n": "聖海倫娜" },
{ "v": "789", "n": "聖皮埃爾和密克隆" },
{ "v": "791", "n": "無國籍" },
{ "v": "793", "n": "蘇丹" },
{ "v": "795", "n": "蘇裡南" },
{ "v": "797", "n": "斯瓦爾巴和揚馬延島" },
{ "v": "799", "n": "斯威士蘭" },
{ "v": "801", "n": "瑞典" },
{ "v": "803", "n": "瑞士" },
{ "v": "805", "n": "敘利亞" },
{ "v": "807", "n": "中国台湾" },
{ "v": "809", "n": "塔吉克斯坦" },
{ "v": "811", "n": "泰國" },
{ "v": "813", "n": "東帝汶" },
{ "v": "815", "n": "多哥" },
{ "v": "817", "n": "托克勞" },
{ "v": "819", "n": "湯加" },
{ "v": "821", "n": "特立尼達和多巴哥" },
{ "v": "823", "n": "突尼斯" },
{ "v": "825", "n": "土耳其" },
{ "v": "827", "n": "土庫曼斯坦" },
{ "v": "829", "n": "特克斯和凱科斯群島" },
{ "v": "831", "n": "圖瓦盧" },
{ "v": "833", "n": "烏幹達" },
{ "v": "835", "n": "烏克蘭" },
{ "v": "837", "n": "阿拉伯聯合酋長國" },
{ "v": "839", "n": "英國" },
{ "v": "841", "n": "坦桑尼亞聯合共和國" },
{ "v": "843", "n": "上沃爾特" },
{ "v": "845", "n": "烏拉圭" },
{ "v": "847", "n": "烏茲別克斯坦" },
{ "v": "849", "n": "瓦努阿圖" },
{ "v": "851", "n": "委內瑞拉" },
{ "v": "853", "n": "越南" },
{ "v": "855", "n": "英屬維爾京群島" },
{ "v": "857", "n": "瓦利斯群島和富圖納群島" },
{ "v": "859", "n": "西撒哈拉" },
{ "v": "861", "n": "也門" },
{ "v": "863", "n": "南斯拉夫" },
{ "v": "865", "n": "紮伊爾" },
{ "v": "867", "n": "尚比亞" },
{ "v": "869", "n": "辛巴威" },
{ "v": "119", "n": "中国澳门" },
{ "v": "225", "n": "美國" },
{ "v": "494", "n": "剛果" },
{ "v": "906", "n": "南蘇丹" }
];
let marryList = [
{ "v": "1", "n": "已婚" },
{ "v": "2", "n": "未婚" },
{ "v": "5", "n": "其他" }
];
let policyIdTypeList = [
{ "v": "1", "n": "身份证(旧)" },
{ "v": "36", "n": "身份证(新)" },
{ "v": "33", "n": "香港身份证" },
{ "v": "33", "n": "香港身份证号" },
{ "v": "36", "n": "大陆身份证号(18位)" },
{ "v": "34", "n": "澳门身份证号" },
{ "v": "40", "n": "护照" },
{ "v": "51", "n": "香港出生证明" },
{ "v": "52", "n": "中国出生证" },
{ "v": "9", "n": "其他" },
];
let policyIdTypeTcList = [
{ "v": "33", "n": "香港身份證號" },
{ "v": "36", "n": "大陸身份證號(18位)" },
{ "v": "34", "n": "澳門身份證號" },
{ "v": "40", "n": "護照" },
{ "v": "51", "n": "香港出生證明" },
{ "v": "52", "n": "中國出生證" },
{ "v": "9", "n": "其他" },
];
......@@ -313,16 +570,30 @@ export function formatMoney(s, type) {
return s;
}
export function getNationsList() {
return nationsList;
export function getNationsList(lan) {
switch (lan) {
case 'zh':
return nationsTcList;
case 'en':
return nationsEnList;
default:
return nationsTcList;
}
};
export function getMarryList() {
return marryList;
};
export function getPolicyIdTypeList() {
return policyIdTypeList;
export function getPolicyIdTypeList(lan) {
switch (lan) {
case 'zh':
return policyIdTypeList;
case 'en':
return policyIdTypeList;
default:
return policyIdTypeTcList;
}
}
export function getNationsByCode(code) {
......