50bec270 by joe

修改注册的证件类型

1 parent 45c07229
......@@ -13,6 +13,8 @@ import {
} from 'vuex';
import { getUserIdTypeList } from "@utils/biz.js";
import Auth from '@components/auth/auth.vue';
import modalComp from '@/components/modal-comp/modal-comp.vue';
import modalSimpleComp from '@/components/modal-simple-comp/modal-simple-comp.vue';
......@@ -88,8 +90,8 @@ export default {
return i18n.infomationImprove.candidates.sex;
},
idTypeCandidates() {
let i18n = this.$i18n.messages[this.$i18n.locale];
return i18n.infomationImprove.candidates.idType;
// let i18n = this.$i18n.messages[this.$i18n.locale];
return getUserIdTypeList(this.$i18n.locale);
},
submitBtnDisabled() {
let b1 = !checkName(this.information.firstName) ? true : false;
......
......@@ -3641,6 +3641,39 @@ let policyIdTypeEnList = [
{ v: "9", n: "Others" }
];
/** 用户体系的证件类型映射 **/
let userIdTypeList = [
{ value: "33", name: "香港身份证号" },
{ value: "1", name: "大陆身份证号(18位)" },
{ value: "34", name: "澳门身份证号" },
{ value: "2", name: "护照" },
{ value: "51", name: "香港出生证明" },
{ value: "52", name: "中国出生证" },
{ value: "0", name: "其他" }
];
/** 用户体系的证件类型映射 **/
let userIdTypeTcList = [
{ value: "33", name: "香港身份證號" },
{ value: "1", name: "大陸身份證號(18位)" },
{ value: "34", name: "澳門身份證號" },
{ value: "2", name: "護照" },
{ value: "51", name: "香港出生證明" },
{ value: "52", name: "中國出生證" },
{ value: "0", name: "其他" }
];
/** 用户体系的证件类型映射 **/
let userIdTypeEnList = [
{ value: "33", name: "HK ID No." },
{ value: "1", name: "Mainland ID No. (18 digits)" },
{ value: "34", name: "Macao ID No." },
{ value: "2", name: "Passport" },
{ value: "51", name: "HK birth certificate" },
{ value: "52", name: "Chinese birth certificate" },
{ value: "0", name: "Others" }
];
let relationList = [
{ v: "22", n: "本人" },
{ v: "23", n: "父母" },
......@@ -3963,6 +3996,22 @@ export function getPolicyIdTypeList(lan) {
}
}
/**
* 获取用户体系证件类型列表
* @param {String} lan
*/
export function getUserIdTypeList(lan) {
switch (lan) {
case "zh":
return userIdTypeList;
case "en":
return userIdTypeEnList;
default:
return userIdTypeTcList;
}
}
export function getNationsByCode(code) {
let n = "";
nationsList.forEach(element => {
......@@ -4164,7 +4213,7 @@ export function getPolicyName(lan, code, name) {
}
}
}
} catch (e) {}
} catch (e) { }
if (!policy) {
return name;
}
......