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
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
54 additions
and
3 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
=>
{
...
...
@@ -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