c3a0992d by joe

191217修改意见

1 parent 852824d7
......@@ -10,6 +10,8 @@
<script>
import Vue from 'vue'
import { mapGetters, mapActions, mapState } from "vuex";
import { getCookie } from "@utils/utils.js";
import VHeader from "@components/home/header/header.vue";
......@@ -18,6 +20,7 @@ import VFooter from "@components/home/footer/footer.vue";
import api from "@/api/api";
import { httpGet, httpPost } from "@/api/fetch-api.js";
window.eventBus = new Vue();
var UA = require("ua-device");
export default {
......
......@@ -58,7 +58,7 @@ module.exports = {
},
navList: [{
name: "Products",
path: "/empty",
path: "/product/introduction",
list: [{
name: "VHIS",
path: "",
......@@ -120,30 +120,30 @@ module.exports = {
},
{
name: "Company Events",
path: "/empty"
path: "/company/events"
}, {
name: "News Center",
path: "/news/list"
},
{
name: "Corporate Social Responsibility",
path: "/empty"
path: "/responsibility"
},
{
name: "Awards",
path: "/empty"
path: "/awards"
}]
},
{
name: "Join Us",
path: "/empty",
path: "/join/us",
list: [{
name: "Corporate Culture",
path: "/empty"
path: "/corporate/culture"
},
{
name: "Career Opportunities",
path: "/empty"
path: "/career/opportunities"
},
]
}]
......@@ -772,8 +772,8 @@ module.exports = {
},
tips: "Login with your One Connect account in order to enjoy full online service.",
or: "or",
login: " login",
register: " register",
login: " Login",
register: " Register",
baseInfoTip: "To verify account information, please ",
infoBtn: "provide",
baseInfoTail: "customer information same as your insured information."
......@@ -785,11 +785,13 @@ module.exports = {
}
},
pagination: {
firstPage: "first",
firstPage: "last",
nextPage: "next",
goto: "Go to",
per: "page",
page: ""
page: "",
total : "total",
unit : "news"
},
newsDetail: {
back: "Back",
......
......@@ -59,7 +59,7 @@ module.exports = {
navList: [
{
name: "產品介紹",
path: "/empty",
path: "/product/introduction",
list: [{
name: "自願醫保計劃",
path: "",
......@@ -121,30 +121,30 @@ module.exports = {
},
{
name: "公司活動",
path: "/empty"
path: "/company/events"
}, {
name: "新聞中心",
path: "/news/list"
},
{
name: "企業社會責任",
path: "/empty"
path: "/responsibility"
},
{
name: "獎項殊榮",
path: "/empty"
path: "/awards"
}]
},
{
name: "加入我們",
path: "/empty",
path: "/join/us",
list: [{
name: "企業文化",
path: "/empty"
path: "/corporate/culture"
},
{
name: "事業發展機會",
path: "/empty"
path: "/career/opportunities"
},
]
}
......@@ -784,11 +784,13 @@ module.exports = {
}
},
pagination: {
firstPage: "一頁",
firstPage: "一頁",
nextPage: "下一頁",
goto: "跳轉",
per: "第",
page: "頁"
page: "頁",
total : "共",
unit : "條"
},
newsDetail: {
back: "回到列表頁",
......
module.exports = {
message: {
login: '登',
login: '登',
Username: '用户名',
Password: '密码',
Captcha: '验证码',
......@@ -9,7 +9,7 @@ module.exports = {
en: '英文'
},
glbalTips: {
sessionLost: "为了更好的体验,需要您登后再进行此操作"
sessionLost: "为了更好的体验,需要您登后再进行此操作"
},
form: {
datePicker: {
......@@ -23,7 +23,7 @@ module.exports = {
},
nav: {
loginData: {
name: "登",
name: "登",
path: "/login",
list: [{
name: "注册",
......@@ -31,7 +31,7 @@ module.exports = {
type: "noAuth",
value: ""
}, {
name: "登",
name: "登",
path: "",
type: "noAuth",
value: "login"
......@@ -58,9 +58,9 @@ module.exports = {
},
navList: [{
name: "产品介绍",
path: "/empty",
path: "/product/introduction",
list: [{
name: "自愿医保基本计划",
name: "自愿医保计划",
path: "",
value: "gotoVHIS"
},
......@@ -119,31 +119,31 @@ module.exports = {
},
{
name: "公司活动",
path: "/empty"
path: "/company/events"
}, {
name: "新闻中心",
path: "/news/list"
},
{
name: "企业社会责任",
path: "/empty"
path: "/responsibility"
},
{
name: "奖项殊荣",
path: "/empty"
path: "/awards"
}
]
},
{
name: "加入我们",
path: "/empty",
path: "/join/us",
list: [{
name: "企业文化",
path: "/empty"
path: "/corporate/culture"
},
{
name: "事业发展机会",
path: "/empty"
path: "/career/opportunities"
},
]
}
......@@ -169,12 +169,12 @@ module.exports = {
},
login: {
title: "平安一账通",
loginType1: "账密登",
loginType2: "动态密码登",
loginType1: "账密登",
loginType2: "动态密码登",
account: "账号",
accountPlaceholder: "请输入证件号/一账通用户名/手机号",
password: "密码",
passwordPlaceholder: "输入登密码",
passwordPlaceholder: "输入登密码",
verifyPlaceholder: "请输入验证码",
agree: "同意",
protocol: "《平安一账通会员服务协议》",
......@@ -200,7 +200,7 @@ module.exports = {
}
},
session: {
sidExpire: "长时间未操作,为了您的账户安全,请登后再操作",
sidExpire: "长时间未操作,为了您的账户安全,请登后再操作",
},
register: {
mobileOptions: [{
......@@ -233,7 +233,7 @@ module.exports = {
e2: "请同意《平安一账通会员服务协议》",
e3: "短信验证码不正确",
e4: "请先获取短信验证码",
e5: "手机号已经被注册,请使用其他手机号注册或直接登",
e5: "手机号已经被注册,请使用其他手机号注册或直接登",
e6: "请输入图片验证码",
e7: "密码长度不能少于8位",
e8: "密码必须同时包含数字、字母、特殊字符",
......@@ -772,7 +772,7 @@ module.exports = {
tips: "如您有平安一账通账户,可帮助我们更好地为您提供服务",
or: "或",
login: "登",
login: "登",
register: "注册",
baseInfoTip: "您尚未验证客户资料,请",
infoBtn: "填写",
......@@ -789,7 +789,9 @@ module.exports = {
nextPage: "下一页",
goto: "跳转",
per: "第",
page: "页"
page: "页",
total : "共",
unit : "条"
},
newsDetail: {
back: "回到列表页",
......
......@@ -96,6 +96,7 @@ export default {
// }
let item = curData;
let path = item && item.path || "";
eventBus.$emit(item.path);
if (path) {
this.$router.push({
path: path
......@@ -119,6 +120,7 @@ export default {
}
},
onLoginHandler() {
eventBus.$emit("login");
if (this.$route.name == "login") {
return;
} else if (this.$route.name == "register" || this.$route.name == "passwordFind") {
......
......@@ -24,19 +24,19 @@
<div @click="toPage('profile')" class="n-item">{{$t('footer.aboutUs')}}</div>
<div @click="toPage('profile')" class="n-item">{{$t('footer.companyIntroduction')}}</div>
<div @click="toPage('newsList')" class="n-item">{{$t('footer.news')}}</div>
<div @click="toPage('empty')" class="n-item">{{$t('footer.joinUs')}}</div>
<div @click="toPage('joinUs')" class="n-item">{{$t('footer.joinUs')}}</div>
</div>
<div class="nav-v">
<div @click="toPage('empty')" class="n-item">{{$t('footer.helpCenter')}}</div>
<div @click="toPage('help')" class="n-item">{{$t('footer.helpCenter')}}</div>
<div @click="toPage('privacy')" class="n-item">{{$t('footer.privacy')}}</div>
<div @click="toPage('terms')" class="n-item">{{$t('footer.terms')}}</div>
<div @click="toPage('personalDataCollection')" class="n-item">{{$t('footer.protocol')}}</div>
</div>
<div class="nav-v">
<div @click="toPath('/custom/service?q=m1')" class="n-item">{{$t('footer.contactUs')}}</div>
<div @click="toPage('empty')" class="n-item">{{$t('footer.contactInformation')}}</div>
<div @click="toPage('empty')" class="n-item">{{$t('footer.service')}}</div>
<div @click="toPage('empty')" class="n-item">{{$t('footer.map')}}</div>
<div @click="toPage('contactMethod')" class="n-item">{{$t('footer.contactInformation')}}</div>
<div @click="toPage('serviceNet')" class="n-item">{{$t('footer.service')}}</div>
<div @click="toPage('map')" class="n-item">{{$t('footer.map')}}</div>
</div>
</div>
......
......@@ -2,7 +2,7 @@
<template>
<div class="comp">
<div class="pagination gird-g">
<div><span class="t1">{{totalItem}}</span></div>
<div>{{$t('pagination.total')}}<span class="t1">{{totalItem}}</span>{{$t('pagination.unit')}}</div>
<div class="pagination-item">
<span class="pointer" :class="{'pagination-disabled' : cur == 1}">
<a @click="prevPage()">{{$t('pagination.firstPage')}}</a>
......
<template>
<div class="content">
</div>
</template>
<style lang="scss" scoped>
.content {
height: 500px;
}
</style>
<script>
export default {};
</script>
\ No newline at end of file
<template>
<div class="content">
</div>
</template>
<style lang="scss" scoped>
.content {
height: 500px;
}
</style>
<script>
export default {};
</script>
\ No newline at end of file
<template>
<div class="content">
</div>
</template>
<style lang="scss" scoped>
.content {
height: 500px;
}
</style>
<script>
export default {};
</script>
\ No newline at end of file
<template>
<div class="content">
</div>
</template>
<style lang="scss" scoped>
.content {
height: 500px;
}
</style>
<script>
export default {};
</script>
\ No newline at end of file
......@@ -85,6 +85,6 @@ export default {
Auth,
PolicyHeadList
},
mounted() {
mounted: {
},
}
......
......@@ -5,6 +5,7 @@ import {
} from '@/api/fetch-api.js'
import { contactMethodCheck } from '@utils/utils.js';
import { setTitle } from '@/utils/utils.js';
import Auth from '@components/auth/auth.vue';
import modalComp from '@/components/modal-comp/modal-comp.vue';
......@@ -181,6 +182,14 @@ export default {
},
userLogin(data) {
this.showForm = true;
},
initTitle() {
try {
let title = this.i18n.customService.menu42;
setTitle(title);
} catch (e) {
console.error(e);
}
}
},
watch: {
......@@ -195,5 +204,6 @@ export default {
}
},
mounted() {
this.initTitle();
}
}
......
import api from '@/api/api'
import {
httpGet,
httpPost
} from '@/api/fetch-api.js'
import { setTitle } from '@/utils/utils.js';
import PolicyHeadList from "./policy-head-list.vue";
import Auth from '@components/auth/auth.vue';
......@@ -49,8 +46,18 @@ export default {
},
userLogin(data) {
this.showForm = true;
},
initTitle() {
try {
let title = this.i18n.customService.menu41;
setTitle(title);
} catch (e) {
}
}
},
mounted() {
this.initTitle();
},
mounted() {},
created() {}
}
......
......@@ -4,6 +4,9 @@ import {
httpPost
} from '@/api/fetch-api.js'
import { getNationsList, getMarryList, getPolicyIdTypeList } from '@/utils/biz.js';
import { setTitle } from '@/utils/utils.js';
import Auth from '@components/auth/auth.vue';
import PolicyHeadList from "./policy-head-list.vue";
import DatePicker from '@/components/date-picker/date-picker.vue'
......@@ -36,6 +39,7 @@ export default {
targetPath: "",
modalIcon: "succ",
modalContent: "",
showIdNumber: false,
}
},
components: {
......@@ -60,6 +64,15 @@ export default {
let i18n = this.$i18n.messages[this.$i18n.locale];
return i18n.infomationImprove.candidates.idType;
},
nationList() {
return getNationsList();
},
marryList() {
return getMarryList();
},
policyIdTypeList() {
return getPolicyIdTypeList();
}
},
methods: {
......@@ -94,6 +107,10 @@ export default {
this.loading = false;
if (res) {
this.policy = res;
this.policy.clientBirthday = this.policy.clientBirthday ? this.policy.clientBirthday.split(" ")[0] : "";
this.policy.insuredBirthday = this.policy.insuredBirthday ? this.policy.insuredBirthday.split(" ")[0] : "";
let clientName = res.clientNameCn ? res.clientNameCn : res.clientNameEn;
let insuredName = res.insuredNameCn ? res.insuredNameCn : res.insuredNameEn;
this.policy.clientName = clientName;
......@@ -261,10 +278,19 @@ export default {
},
userLogin(data) {
this.showForm = true;
},
initTitle() {
try {
let title = this.i18n.customService.menu43;
setTitle(title);
} catch (e) {
}
}
},
mounted() {
this.isOwner = this.$route.query.u == 2 ? false : true;
this.initTitle();
},
created() { }
}
......
......@@ -81,9 +81,7 @@
<div class="ipt-wrap">
<div class="down-arrow"></div>
<select class="ipt" v-model="data.idType">
<template v-if="idTypeCandidates">
<option v-for="(item,index) in idTypeCandidates" :key="index" :value="item.value">{{item.name}}</option>
</template>
<option v-for="(item,index) in policyIdTypeList" :key="index" :value="item.v">{{item.n}}</option>
</select>
</div>
</div>
......@@ -94,7 +92,7 @@
<div class="icon"><img src="@/assets/images/policy-change-information/icon-pci-card.png"></div> {{$t('policyChangeInformation.NO')}}
</div>
<div class="ipt-wrap">
<div class="eye"></div>
<!-- <div class="eye"></div> -->
<!-- -->
<!-- <div class="eye eye-act"></div> -->
<input class="ipt" type="text" v-model="data.idNumber">
......@@ -107,7 +105,8 @@
<div class="icon"><img src="@/assets/images/policy-change-information/icon-pci-card.png"></div> {{$t('policyChangeInformation.validityPeriod')}}
</div>
<div class="ipt-wrap">
<date-picker class="date" v-model="data.idExpireAt" :filtModel="['history', 'today']"></date-picker>
<!-- <date-picker class="date" v-model="data.idExpireAt" :filtModel="['history', 'today']"></date-picker> -->
<input disabled class="ipt disable" type="text" value="-">
</div>
</div>
......@@ -117,7 +116,12 @@
<div class="icon"><img src="@/assets/images/policy-change-information/icon-pci-earth.png"></div> {{$t('policyChangeInformation.nationality')}}
</div>
<div class="ipt-wrap">
<input class="ipt" type="text" v-model="data.nature">
<!-- <input class="ipt" type="text" v-model="data.nature"> -->
<div class="down-arrow"></div>
<select class="ipt" v-model="data.nature">
<option v-for="(item,index) in nationList" :key="index" :value="item.v">{{item.n}}</option>
</select>
</div>
</div>
......@@ -137,7 +141,12 @@
<div class="icon"><img src="@/assets/images/policy-change-information/icon-pci-love.png"></div> {{$t('policyChangeInformation.maritalStatus')}}
</div>
<div class="ipt-wrap">
<input class="ipt" type="text" v-model="data.marriage">
<div class="down-arrow"></div>
<!-- <input class="ipt" type="text" v-model="data.marriage"> -->
<select class="ipt" v-model="data.marriage">
<option v-for="(item,index) in marryList" :key="index" :value="item.v">{{item.n}}</option>
</select>
</div>
</div>
......
<template>
<div class="content">
</div>
</template>
<style lang="scss" scoped>
.content {
height: 500px;
}
</style>
<script>
export default {};
</script>
\ No newline at end of file
......@@ -176,12 +176,11 @@ export default {
if (key == "zh") {
key = "cn";
}
let newList = [];
let bannerList = [];
this.bannerCandidateList.forEach(element => {
newList.push(element[key]);
bannerList.push(element[key]);
});
console.log(newList);
this.$set(this, 'bannerList', newList);
this.$set(this, 'bannerList', bannerList);
},
btnNavigateTo(type, link) {
location.href = link;
......
<template>
<div class="content">
</div>
</template>
<style lang="scss" scoped>
.content {
height: 500px;
}
</style>
<script>
export default {};
</script>
\ No newline at end of file
......@@ -30,7 +30,7 @@ export default {
return {
loading: false,
key: 'value',
type: 1, // 1:帐密登陆 2:OTP登陆,
type: 1, // 1:帐密登陆 2:OTP登陆 3:OTP注册密码,
values: {
// 返回的token,串连整个流程,后台安全校验使用
token: "",
......@@ -48,14 +48,14 @@ export default {
tip: "" // 显示的文字
},
loginForm: {
userId: "",
password: "",
// userId: "18334783910",
// password: "qweqwe123",
// userId: "18145729463",
// password: "ccc123!@#",
// userId: "15927024254",
// password: "a1234567@",
userId: "",
password: "",
imageValue: "",
mobileNo: "",
......@@ -571,8 +571,13 @@ export default {
},
mounted() {
this.initData();
// console.log("PK === ", this.PK)
// console.log("E === ", this.E)
},
created() { }
created() {
eventBus.$on("login", () => {
this.type = 1;
});
}
}
......
......@@ -38,6 +38,16 @@
@extend .box-shadow;
background-color: #ffffff;
&-tit2 {
color: $cOrange;
text-align: center;
font-size: $fontSizeTitle;
font-weight: bold;
letter-spacing: .2rem;
text-shadow: 3px 5.2px 9px rgba(236, 100, 41, 0.27);
margin-top: 2rem;
}
&-tit {
color: $cOrange;
text-align: center;
......@@ -244,6 +254,17 @@
padding: 2rem 1rem 3.5rem;
border-bottom: none;
&-tit2 {
color: $cOrange;
text-align: center;
font-size: $fontSizeTitle;
font-weight: bold;
letter-spacing: .2rem;
text-shadow: 3px 5.2px 9px rgba(236, 100, 41, 0.27);
margin-top: 2rem;
}
&-nav {
margin: 1.75rem auto 1rem;
}
......
......@@ -138,11 +138,13 @@
<!---->
<div v-if="type == 3" class="login">
<div class="login-tit">
<!-- <div class="login-tit">
<img v-if="locale == 'zh'" src="@/assets/images/login/login-tit-zh.png">
<img v-if="locale == 'tc'" src="@/assets/images/login/login-tit-tc.png">
<img v-if="locale == 'en'" class="img-en" src="@/assets/images/login/login-tit-en.png">
</div>
</div> -->
<div class="login-tit2">{{$t('register.title2')}}</div>
<div class="gird-g form">
<div class="pure-u-1 form-item">
<div class="label">
......
<template>
<div class="content">
</div>
</template>
<style lang="scss" scoped>
.content {
height: 500px;
}
</style>
<script>
export default {};
</script>
\ No newline at end of file
......@@ -20,7 +20,9 @@ export default {
page: 1,
size: 10
},
total: 0,
totalPage: 0,
totalItem : 0,
news: []
}
},
......@@ -54,14 +56,14 @@ export default {
this.$nextTick(()=>{
this.$refs.pagination.selPage(page);
});
httpGet({ url: api.newsList, data: this.queryForm }).then(res => {
let newsList = res.list;
newsList.forEach(element => {
element.dateFormat = getDateYMD(element.createAt);
});
this.$set(this, 'news', newsList);
this.total = Math.ceil(res.total / this.queryForm.size);
this.totalPage = Math.ceil(res.total / this.queryForm.size);
this.totalItem = res.total;
});
}
},
......
......@@ -15,7 +15,7 @@
<div class="news-item-date">{{item.dateFormat}}</div>
</div>
</div>
<pagination ref="pagination" @selpage="selPage" :total="total" class="pagination"></pagination>
<pagination ref="pagination" @selpage="selPage" :total="totalPage" :totalItem="totalItem" class="pagination"></pagination>
</div>
</div>
</div>
......
......@@ -274,7 +274,7 @@ export default {
case "COMMON_ERROR_E2":
// 身份过期了,请重新登录
this.values.cid = "";
this.showModal(this.i18n().passwordReset.cidExpire, "info");
// this.showModal(this.i18n().passwordReset.cidExpire, "info");
this.step2.idNo = "";
this.step3.otp = "";
this.step3.error = "";
......
<template>
<div class="content">
</div>
</template>
<style lang="scss" scoped>
.content {
height: 500px;
}
</style>
<script>
export default {};
</script>
\ No newline at end of file
......@@ -335,6 +335,9 @@ export default {
_showCheckOTPErrTip(msg) {
// this.showModal(msg, "info");
// let message = this.i18n.register.tips.e5;
if (msg == "非法操作") {
this._showOTPTip();
}
this.errorTips.p2 = msg;
// alert(msg);
......@@ -514,5 +517,8 @@ export default {
},
created() {
this.initData();
eventBus.$on("/register", () => {
this.type = 1;
});
}
}
......
<template>
<div class="content">
</div>
</template>
<style lang="scss" scoped>
.content {
height: 500px;
}
</style>
<script>
export default {};
</script>
\ No newline at end of file
<template>
<div class="content">
</div>
</template>
<style lang="scss" scoped>
.content {
height: 500px;
}
</style>
<script>
export default {};
</script>
\ No newline at end of file
......@@ -132,6 +132,15 @@ const routes = [
},
{
path: '/product/introduction',
name: 'productIntroduction',
component: () => import('./pages/product-introduction/product-introduction.vue'),
meta: {
title: '平安人寿香港'
}
},
{
path: '/product',
name: 'product',
component: () => import('./pages/product/product.vue'),
......@@ -173,6 +182,86 @@ const routes = [
}
},
{
path: '/company/events',
name: 'companyEvents',
component: () => import('./pages/company-events/company-events.vue'),
meta: {
title: '平安人寿香港'
}
},
{
path: '/responsibility',
name: 'responsibility',
component: () => import('./pages/responsibility/responsibility.vue'),
meta: {
title: '平安人寿香港'
}
},
{
path: '/awards',
name: 'awards',
component: () => import('./pages/awards/awards.vue'),
meta: {
title: '平安人寿香港'
}
},
{
path: '/join/us',
name: 'joinUs',
component: () => import('./pages/join-us/join-us.vue'),
meta: {
title: '平安人寿香港'
}
},
{
path: '/corporate/culture',
name: 'corporateCulture',
component: () => import('./pages/corporate-culture/corporate-culture.vue'),
meta: {
title: '平安人寿香港'
}
},
{
path: '/career/opportunities',
name: 'careerOpportunities',
component: () => import('./pages/career-opportunities/career-opportunities.vue'),
meta: {
title: '平安人寿香港'
}
},
{
path: '/help',
name: 'help',
component: () => import('./pages/help/help.vue'),
meta: {
title: '帮助中心'
}
},
{
path: '/contact/method',
name: 'contactMethod',
component: () => import('./pages/contact-method/contact-method.vue'),
meta: {
title: '联系方式'
}
},
{
path: '/service/net',
name: 'serviceNet',
component: () => import('./pages/service-net/service-net.vue'),
meta: {
title: '服务网络'
}
},
{
path: '/map',
name: 'map',
component: () => import('./pages/map/map.vue'),
meta: {
title: '网站地图'
}
},
{
path: '/empty',
name: 'empty',
component: () => import('./pages/empty/empty.vue'),
......@@ -223,16 +312,14 @@ router.beforeEach((to, from, next) => {
// lang对象为当前语言配置 见 en.js,tc.js,zh.js
let title = "";
lang.nav.navList.forEach(e1 => {
if (e1.list && e1.list.length > 0) {
if (e1.path == to.fullPath) {
title = e1.name;
} else if (e1.list && e1.list.length > 0) {
e1.list.forEach(e2 => {
if(e2.path == to.fullPath){
if (e2.path == to.fullPath) {
title = e2.name;
}
});
} else {
if(e1.path == to.fullPath){
title = e1.name;
}
}
});
// to参数可以获取要前往页面的信息,包括参数
......
let nationsList = [
{ "v": "10", "n": "HONG KONG,CHINA" },
{ "v": "28", "n": "CHINA" },
{ "v": "401", "n": "AFGHANISTAN" },
{ "v": "403", "n": "ALBANIA" },
{ "v": "405", "n": "ALGERIA" },
{ "v": "407", "n": "AMERICAN SAMOA" },
{ "v": "409", "n": "ANDORRA" },
{ "v": "411", "n": "ANGOLA" },
{ "v": "413", "n": "ANGUILLA" },
{ "v": "415", "n": "ANTARCTICA" },
{ "v": "417", "n": "ANTIGUA AND BARBUDA" },
{ "v": "419", "n": "ARGENTINA" },
{ "v": "421", "n": "ARMENIA" },
{ "v": "423", "n": "ARUBA" },
{ "v": "425", "n": "AUSTRALIA" },
{ "v": "427", "n": "AUSTRIA" },
{ "v": "429", "n": "AZERBAIJAN" },
{ "v": "431", "n": "BAHAMAS" },
{ "v": "433", "n": "BAHRAIN" },
{ "v": "435", "n": "BANGLADESH" },
{ "v": "437", "n": "BARBADOS" },
{ "v": "439", "n": "BELARUS" },
{ "v": "441", "n": "BELGIUM" },
{ "v": "443", "n": "BELIZE" },
{ "v": "445", "n": "BENIN" },
{ "v": "447", "n": "BERMUDA" },
{ "v": "449", "n": "BHUTAN" },
{ "v": "451", "n": "BOLIVIA" },
{ "v": "453", "n": "BOSNIA AND HERZEGOVINA" },
{ "v": "455", "n": "BOTSWANA" },
{ "v": "457", "n": "BOUVET ISLAND" },
{ "v": "459", "n": "BRAZIL" },
{ "v": "461", "n": "BRUNEI DARUSSALAM" },
{ "v": "463", "n": "BULGARIA" },
{ "v": "465", "n": "BURKINA FASO" },
{ "v": "467", "n": "BURUNDI" },
{ "v": "469", "n": "CAMBODIA" },
{ "v": "471", "n": "CAMEROON" },
{ "v": "473", "n": "CANADA" },
{ "v": "475", "n": "CAPE VERDE" },
{ "v": "477", "n": "CAYMAN ISLANDS" },
{ "v": "479", "n": "CENTRAL AFRICAN REPUBLIC" },
{ "v": "481", "n": "CHAD" },
{ "v": "483", "n": "CHILE" },
{ "v": "485", "n": "CHRISTMAS ISLAND" },
{ "v": "487", "n": "COCOS (KEELING) ISLANDS" },
{ "v": "489", "n": "COLOMBIA" },
{ "v": "491", "n": "COMOROS" },
{ "v": "493", "n": "CONGO, REPUBLIC OF" },
{ "v": "495", "n": "COOK ISLANDS" },
{ "v": "497", "n": "COSTA RICA" },
{ "v": "499", "n": "COTE D'IVOIRE" },
{ "v": "501", "n": "CROATIA" },
{ "v": "503", "n": "CUBA" },
{ "v": "505", "n": "CYPRUS" },
{ "v": "507", "n": "CZECH REPUBLIC" },
{ "v": "509", "n": "DENMARK" },
{ "v": "511", "n": "DJIBOUTI" },
{ "v": "513", "n": "DOMINICA" },
{ "v": "515", "n": "EAST TIMOR" },
{ "v": "517", "n": "ECUADOR" },
{ "v": "519", "n": "EGYPT" },
{ "v": "521", "n": "EL SALVADOR" },
{ "v": "523", "n": "EQUATORIAL GUINEA" },
{ "v": "525", "n": "ERITREA" },
{ "v": "527", "n": "ESTONIA" },
{ "v": "529", "n": "ETHIOPIA" },
{ "v": "531", "n": "FALKLAND ISLANDS" },
{ "v": "533", "n": "FAROE ISLANDS" },
{ "v": "535", "n": "FIJI" },
{ "v": "537", "n": "FINLAND" },
{ "v": "539", "n": "FRANCE" },
{ "v": "541", "n": "GABON" },
{ "v": "543", "n": "GAMBIA" },
{ "v": "545", "n": "GEORGIA" },
{ "v": "547", "n": "GERMANY" },
{ "v": "549", "n": "GHANA" },
{ "v": "551", "n": "GIBRALTAR" },
{ "v": "553", "n": "GREECE" },
{ "v": "555", "n": "GREENLAND" },
{ "v": "557", "n": "GRENADA" },
{ "v": "559", "n": "GUADELOUPE" },
{ "v": "561", "n": "GUAM" },
{ "v": "563", "n": "GUATEMALA" },
{ "v": "565", "n": "GUINEA" },
{ "v": "567", "n": "GUINEA-BISSAU" },
{ "v": "569", "n": "GUYANA" },
{ "v": "571", "n": "HAITI" },
{ "v": "573", "n": "HEARD AND MC DONALD ISLANDS" },
{ "v": "575", "n": "HOLY SEE (VATICAN CITY STATE)" },
{ "v": "577", "n": "HONDURAS" },
{ "v": "579", "n": "HUNGARY" },
{ "v": "581", "n": "ICELAND" },
{ "v": "583", "n": "INDIA" },
{ "v": "585", "n": "INDONESIA" },
{ "v": "587", "n": "IRAN" },
{ "v": "589", "n": "IRAQ" },
{ "v": "591", "n": "IRELAND" },
{ "v": "593", "n": "ISRAEL" },
{ "v": "595", "n": "ITALY" },
{ "v": "597", "n": "JAMAICA" },
{ "v": "599", "n": "JAPAN" },
{ "v": "601", "n": "JORDAN" },
{ "v": "603", "n": "KAZAKHSTAN" },
{ "v": "605", "n": "KENYA" },
{ "v": "607", "n": "KIRIBATI" },
{ "v": "609", "n": "KOSOVO" },
{ "v": "611", "n": "KUWAIT" },
{ "v": "613", "n": "KYRGYZSTAN" },
{ "v": "615", "n": "LAOS" },
{ "v": "617", "n": "LATVIA" },
{ "v": "619", "n": "LEBANON" },
{ "v": "621", "n": "LESOTHO" },
{ "v": "623", "n": "LIBERIA" },
{ "v": "625", "n": "LIBYAN ARAB JAMAHIRIYA" },
{ "v": "627", "n": "LIECHTENSTEIN" },
{ "v": "629", "n": "LITHUANIA" },
{ "v": "631", "n": "LUXEMBOURG" },
{ "v": "633", "n": "MADAGASCAR" },
{ "v": "635", "n": "MALAWI" },
{ "v": "637", "n": "MALAYSIA" },
{ "v": "639", "n": "MALDIVES" },
{ "v": "641", "n": "MALI" },
{ "v": "643", "n": "MALTA" },
{ "v": "645", "n": "MARSHALL ISLANDS" },
{ "v": "647", "n": "MARTINIQUE" },
{ "v": "649", "n": "MAURITANIA" },
{ "v": "651", "n": "MAURITIUS" },
{ "v": "653", "n": "MAYOTTE" },
{ "v": "655", "n": "MEXICO" },
{ "v": "657", "n": "MICRONESIA" },
{ "v": "659", "n": "MONACO" },
{ "v": "661", "n": "MONGOLIA" },
{ "v": "663", "n": "MONTENEGRO" },
{ "v": "665", "n": "MONTSERRAT" },
{ "v": "667", "n": "MOROCCO" },
{ "v": "669", "n": "MOZAMBIQUE" },
{ "v": "671", "n": "MYANMAR" },
{ "v": "673", "n": "NAMIBIA" },
{ "v": "675", "n": "NAURU" },
{ "v": "677", "n": "NEPAL" },
{ "v": "679", "n": "NETHERLANDS" },
{ "v": "681", "n": "NEW CALEDONIA" },
{ "v": "683", "n": "NEW ZEALAND" },
{ "v": "685", "n": "NICARAGUA" },
{ "v": "687", "n": "NIGER" },
{ "v": "689", "n": "NIGERIA" },
{ "v": "691", "n": "NIUE" },
{ "v": "693", "n": "NORFOLK ISLAND" },
{ "v": "695", "n": "NORTH KOREA" },
{ "v": "697", "n": "NORTHERN MARIANA ISLANDS" },
{ "v": "699", "n": "NORWAY" },
{ "v": "701", "n": "OMAN" },
{ "v": "703", "n": "PAKISTAN" },
{ "v": "705", "n": "PALAU" },
{ "v": "707", "n": "PALESTINE" },
{ "v": "709", "n": "PANAMA" },
{ "v": "711", "n": "PAPUA NEW GUINEA" },
{ "v": "713", "n": "PARAGUAY" },
{ "v": "715", "n": "PERU" },
{ "v": "717", "n": "PHILIPPINES" },
{ "v": "719", "n": "PITCAIRN" },
{ "v": "721", "n": "POLAND" },
{ "v": "723", "n": "PORTUGAL" },
{ "v": "725", "n": "PUERTO RICO" },
{ "v": "727", "n": "QATAR" },
{ "v": "729", "n": "REPUBLIC OF MACEDONI" },
{ "v": "731", "n": "REPUBLIC OF MOLDOVA" },
{ "v": "733", "n": "REUNION" },
{ "v": "735", "n": "ROMANIA" },
{ "v": "737", "n": "RUSSIA" },
{ "v": "739", "n": "RWANDA" },
{ "v": "741", "n": "SAINT KITTS AND NEVIS" },
{ "v": "743", "n": "SAINT LUCIA" },
{ "v": "745", "n": "SAINT VINCENT AND THE GRENADINES" },
{ "v": "747", "n": "SAMOA" },
{ "v": "749", "n": "SAN MARINO" },
{ "v": "751", "n": "SAO TOME AND PRINCIPE" },
{ "v": "753", "n": "SAUDI ARABIA" },
{ "v": "755", "n": "SENEGAL" },
{ "v": "757", "n": "SERBIA" },
{ "v": "759", "n": "SERBIA AND MONTENEGRO" },
{ "v": "761", "n": "SEYCHELLES" },
{ "v": "763", "n": "SIERRA LEONE" },
{ "v": "765", "n": "SINGAPORE" },
{ "v": "767", "n": "SLOVAKIA" },
{ "v": "769", "n": "SLOVENIA" },
{ "v": "771", "n": "SOLOMON ISLANDS" },
{ "v": "773", "n": "SOMALIA" },
{ "v": "775", "n": "SOUTH AFRICA" },
{ "v": "777", "n": "SOUTH GEORGIA AND THE SOUTH SANDWICH ISL" },
{ "v": "779", "n": "SOUTH KOREA" },
{ "v": "781", "n": "SOUTH YEMEN" },
{ "v": "783", "n": "SPAIN" },
{ "v": "785", "n": "SRI LANKA" },
{ "v": "787", "n": "ST. HELENA" },
{ "v": "789", "n": "ST. PIERRE AND MIQUELON" },
{ "v": "791", "n": "STATELESS" },
{ "v": "793", "n": "SUDAN" },
{ "v": "795", "n": "SURINAME" },
{ "v": "797", "n": "SVALBARD AND JAN MAYEN ISLANDS" },
{ "v": "799", "n": "SWAZILAND" },
{ "v": "801", "n": "SWEDEN" },
{ "v": "803", "n": "SWITZERLAND" },
{ "v": "805", "n": "SYRIAN ARAB REPUBLIC" },
{ "v": "807", "n": "TAIWAN,CHINA" },
{ "v": "809", "n": "TAJIKISTAN" },
{ "v": "811", "n": "THAILAND" },
{ "v": "813", "n": "TIMOR-LESTE" },
{ "v": "815", "n": "TOGO" },
{ "v": "817", "n": "TOKELAU" },
{ "v": "819", "n": "TONGA" },
{ "v": "821", "n": "TRINIDAD AND TOBAGO" },
{ "v": "823", "n": "TUNISIA" },
{ "v": "825", "n": "TURKEY" },
{ "v": "827", "n": "TURKMENISTAN" },
{ "v": "829", "n": "TURKS AND CAICOS ISLANDS" },
{ "v": "831", "n": "TUVALU" },
{ "v": "833", "n": "UGANDA" },
{ "v": "835", "n": "UKRAINE" },
{ "v": "837", "n": "UNITED ARAB EMIRATES" },
{ "v": "839", "n": "UNITED KINGDOM" },
{ "v": "841", "n": "UNITED REPUBLIC OF TANZANIA" },
{ "v": "843", "n": "UPPER VOLTA" },
{ "v": "845", "n": "URUGUAY" },
{ "v": "847", "n": "UZBEKISTAN" },
{ "v": "849", "n": "VANUATU" },
{ "v": "851", "n": "VENEZUELA" },
{ "v": "853", "n": "VIETNAM" },
{ "v": "855", "n": "VIRGIN ISLANDS" },
{ "v": "857", "n": "WALLIS AND FUTUNA ISLANDS" },
{ "v": "859", "n": "WESTERN SAHARA" },
{ "v": "861", "n": "YEMEN" },
{ "v": "863", "n": "YUGOSLAVIA" },
{ "v": "865", "n": "ZAIRE" },
{ "v": "867", "n": "ZAMBIA" },
{ "v": "869", "n": "ZIMBABWE" },
{ "v": "119", "n": "MACAU,CHINA" },
{ "v": "225", "n": "UNITED STATES" },
{ "v": "494", "n": "CONGO, DEMOCRATIC REP" },
{ "v": "906", "n": "REPUBLIC OF SOUTH SUDAN" }
]
let marryList = [
{ "v": "1", "n": "已婚" },
{ "v": "2", "n": "未婚" },
{ "v": "5", "n": "其他" }
];
let policyIdTypeList = [
{ "v": "1", "n": "身份证(旧)" },
{ "v": "36", "n": "身份证(新)" },
{ "v": "33", "n": "香港身份证" },
{ "v": "40", "n": "护照" },
{ "v": "9", "n": "其他" },
];
/**
*
* @param {string} lan 语言
......@@ -28,3 +286,26 @@ export function getDateYMD(timestamp) {
let s = y + "-" + (m < 10 ? "0" + m : m) + "-" + (d < 10 ? "0" + d : d);
return s;
}
export function getNationsList() {
return nationsList;
};
export function getMarryList() {
return marryList;
};
export function getPolicyIdTypeList(){
return policyIdTypeList;
}
export function getNationsByCode(code) {
let n = "";
nationsList.forEach(element => {
if (element.v == code) {
n = element.n;
}
});
return n;
}
\ No newline at end of file
......