Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mallapp
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
viitto
mallapp
Commits
0919e918
Commit
0919e918
authored
Sep 29, 2021
by
Mac
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
0f7f4ef3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
0 deletions
+28
-0
persondetails.vue
pages/blindDate/persondetails.vue
+28
-0
No files found.
pages/blindDate/persondetails.vue
View file @
0919e918
...
...
@@ -279,6 +279,7 @@
src=
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/pd-sr.png"
></image>
<text>
{{
dataList
.
BirthdayYear
}}
年
</text>
<!--
<text>
{{
getyear
()
}}
年
</text>
-->
<text
style=
"margin: 0 5px"
>
·
</text>
<text>
{{
dataList
.
ConoldBaseInfostellation
}}
</text>
</view>
...
...
@@ -839,6 +840,33 @@ export default {
});
},
getyear
(){
//认证了取身份证上的年份 没认证取用户填写的年份
if
(
this
.
dataList
.
IsAttestation
==
1
){
let
text
=
this
.
dataList
.
IDCardNo
!=
''
?
this
.
getBirthdatByIdNo
(
this
.
dataList
.
IDCardNo
):
""
return
text
}
else
{
return
this
.
dataList
.
BirthdayYear
}
},
getBirthdatByIdNo
(
iIdNo
)
{
//获取身份证的年份
var
tmpStr
=
""
;
var
idDate
=
""
;
var
tmpInt
=
0
;
var
strReturn
=
""
;
iIdNo
=
iIdNo
.
replace
(
/^
\s
+|
\s
+$/g
,
""
);
if
(
iIdNo
.
length
==
15
)
{
tmpStr
=
iIdNo
.
substring
(
6
,
12
);
tmpStr
=
"19"
+
tmpStr
;
}
else
{
tmpStr
=
iIdNo
.
substring
(
6
,
14
);
}
// tmpStr = tmpStr.substring(0, 4) + "-" + tmpStr.substring(4, 6) + "-" + tmpStr.substring(6)
tmpStr
=
tmpStr
.
substring
(
0
,
4
)
return
tmpStr
;
}
},
};
</
script
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment