Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
dev
/
pingan-life-index-pro
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
50bec270
authored
2020-05-20 15:16:18 +0800
by
joe
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修改注册的证件类型
1 parent
45c07229
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
66 additions
and
15 deletions
src/pages/infomation-improve/infomation-improve.js
src/utils/biz.js
src/pages/infomation-improve/infomation-improve.js
View file @
50bec27
...
...
@@ -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
;
...
...
src/utils/biz.js
View file @
50bec27
...
...
@@ -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
=>
{
...
...
@@ -3984,24 +4033,24 @@ export function getInsuredPeriod(lan, t, v) {
lan
==
"zh"
?
v
+
"年"
:
lan
==
"tc"
?
v
+
"年"
:
""
+
v
+
" "
+
(
v
>
1
?
"years"
:
"year"
);
?
v
+
"年"
:
""
+
v
+
" "
+
(
v
>
1
?
"years"
:
"year"
);
break
;
case
"3"
:
value
=
lan
==
"zh"
?
v
+
"岁"
:
lan
==
"tc"
?
v
+
"歲"
:
"Up to "
+
v
+
" "
+
(
v
>
1
?
"years"
:
"year"
)
+
" old"
;
?
v
+
"歲"
:
"Up to "
+
v
+
" "
+
(
v
>
1
?
"years"
:
"year"
)
+
" old"
;
break
;
case
"4"
:
value
=
lan
==
"zh"
?
v
+
"月"
:
lan
==
"tc"
?
v
+
"月"
:
" "
+
v
+
" "
+
(
v
>
1
?
"months"
:
"month"
);
?
v
+
"月"
:
" "
+
v
+
" "
+
(
v
>
1
?
"months"
:
"month"
);
break
;
default
:
value
=
lan
==
"zh"
?
"无关"
:
lan
==
"tc"
?
"無關"
:
"NA"
;
...
...
@@ -4081,16 +4130,16 @@ export function getPayPeriod(lan, t, v) {
lan
==
"zh"
?
"缴"
+
v
+
"年"
:
lan
==
"tc"
?
"繳"
+
v
+
"年"
:
""
+
v
+
" "
+
(
v
>
1
?
"years"
:
"year"
);
?
"繳"
+
v
+
"年"
:
""
+
v
+
" "
+
(
v
>
1
?
"years"
:
"year"
);
break
;
case
"3"
:
value
=
lan
==
"zh"
?
"缴至"
+
v
+
"岁"
:
lan
==
"tc"
?
"繳至"
+
v
+
"歲"
:
"Pay to"
+
v
+
" "
+
(
v
>
1
?
"years"
:
"year"
)
+
" old"
;
?
"繳至"
+
v
+
"歲"
:
"Pay to"
+
v
+
" "
+
(
v
>
1
?
"years"
:
"year"
)
+
" old"
;
break
;
default
:
value
=
lan
==
"zh"
?
"缴终身"
:
lan
==
"tc"
?
"繳終身"
:
"Whole life"
;
...
...
@@ -4127,8 +4176,8 @@ export function getMoneyName(lan, t) {
lan
==
"zh"
?
moneyNameList
:
lan
==
"tc"
?
moneyNameTcList
:
moneyNameEnList
;
?
moneyNameTcList
:
moneyNameEnList
;
candidates
.
forEach
(
element
=>
{
if
(
element
.
v
==
t
)
{
value
=
element
.
n
;
...
...
@@ -4164,7 +4213,7 @@ export function getPolicyName(lan, code, name) {
}
}
}
}
catch
(
e
)
{}
}
catch
(
e
)
{
}
if
(
!
policy
)
{
return
name
;
}
...
...
Please
register
or
sign in
to post a comment