Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
galaxy-iOS
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
mobile-group
galaxy-iOS
Commits
8edd1609
Commit
8edd1609
authored
Mar 14, 2024
by
David黄金龙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
身份证 检查
parent
a876489f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
4 deletions
+17
-4
YHItemView.swift
...信息流程)/MainApplicantInformation(主申请人信息)/V/YHItemView.swift
+13
-2
YHMainApplicantInformationViewModel.swift
...tion(主申请人信息)/VM/YHMainApplicantInformationViewModel.swift
+4
-2
No files found.
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/ServiceProcess(我的信息流程)/MainApplicantInformation(主申请人信息)/V/YHItemView.swift
View file @
8edd1609
...
@@ -273,6 +273,14 @@ class YHItemView: UIView {
...
@@ -273,6 +273,14 @@ class YHItemView: UIView {
if
dataSource
.
isShowPrompts
??
false
{
if
dataSource
.
isShowPrompts
??
false
{
if
dataSource
.
message
?
.
count
!=
0
{
if
dataSource
.
message
?
.
count
!=
0
{
showPromptLabel
.
isHidden
=
true
showPromptLabel
.
isHidden
=
true
//特殊处理身份证
if
dataSource
.
id
==
.
id8
{
if
let
message
=
dataSource
.
message
,
message
.
count
==
18
{
}
else
{
showPromptLabel
.
isHidden
=
false
}
}
}
else
{
}
else
{
showPromptLabel
.
isHidden
=
false
showPromptLabel
.
isHidden
=
false
}
}
...
@@ -280,6 +288,7 @@ class YHItemView: UIView {
...
@@ -280,6 +288,7 @@ class YHItemView: UIView {
showPromptLabel
.
isHidden
=
true
showPromptLabel
.
isHidden
=
true
}
}
if
dataSource
.
id
==
.
id11
||
dataSource
.
id
==
.
id15
||
dataSource
.
id
==
.
id20
{
if
dataSource
.
id
==
.
id11
||
dataSource
.
id
==
.
id15
||
dataSource
.
id
==
.
id20
{
longTimeButton
.
isHidden
=
false
longTimeButton
.
isHidden
=
false
nextStepImageView
.
isHidden
=
true
nextStepImageView
.
isHidden
=
true
...
@@ -489,7 +498,7 @@ extension YHItemView: UITextFieldDelegate {
...
@@ -489,7 +498,7 @@ extension YHItemView: UITextFieldDelegate {
return
false
return
false
}
}
if
(
dataSource
?
.
id
==
.
id8
)
&&
newText
.
count
>
20
{
if
(
dataSource
?
.
id
==
.
id8
)
&&
newText
.
count
>
18
{
return
false
return
false
}
}
...
@@ -498,7 +507,9 @@ extension YHItemView: UITextFieldDelegate {
...
@@ -498,7 +507,9 @@ extension YHItemView: UITextFieldDelegate {
}
}
if
dataSource
?
.
id
==
.
id23
{
if
dataSource
?
.
id
==
.
id23
{
newText
=
newText
.
uppercased
()
let
regex
=
"[^A-Za-z]+"
textField
.
limitInputWithPattern
(
pattern
:
regex
,
30
)
newText
=
textField
.
text
!.
uppercased
()
}
}
var
data
=
dataSource
??
YHItemModel
()
var
data
=
dataSource
??
YHItemModel
()
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/ServiceProcess(我的信息流程)/MainApplicantInformation(主申请人信息)/VM/YHMainApplicantInformationViewModel.swift
View file @
8edd1609
...
@@ -472,6 +472,8 @@ class YHMainApplicantInformationViewModel: YHBaseViewModel {
...
@@ -472,6 +472,8 @@ class YHMainApplicantInformationViewModel: YHBaseViewModel {
let
passport_issue_date_start_at
=
mainModel
.
certificates
.
passport
.
issue_date_start_at
let
passport_issue_date_start_at
=
mainModel
.
certificates
.
passport
.
issue_date_start_at
let
passport_issue_date_end_at
=
mainModel
.
certificates
.
passport
.
issue_date_end_at
let
passport_issue_date_end_at
=
mainModel
.
certificates
.
passport
.
issue_date_end_at
let
nationality
=
mainModel
.
nationality
let
nationality
=
mainModel
.
nationality
if
self
.
mainModel
.
is_handled
==
1
{
if
self
.
mainModel
.
is_handled
==
1
{
guard
hk_macao_pass_number
.
count
>
0
else
{
return
false
}
guard
hk_macao_pass_number
.
count
>
0
else
{
return
false
}
guard
hk_macao_pass_issue_at
.
count
>
0
else
{
return
false
}
guard
hk_macao_pass_issue_at
.
count
>
0
else
{
return
false
}
...
@@ -479,7 +481,7 @@ class YHMainApplicantInformationViewModel: YHBaseViewModel {
...
@@ -479,7 +481,7 @@ class YHMainApplicantInformationViewModel: YHBaseViewModel {
guard
hk_macao_pass_issue_date_end_at
.
count
>
0
else
{
return
false
}
guard
hk_macao_pass_issue_date_end_at
.
count
>
0
else
{
return
false
}
}
}
if
nationality
.
contains
(
"中国"
)
{
if
nationality
.
contains
(
"中国"
)
{
guard
cn_identity_card_number
.
count
>
0
else
{
return
false
}
guard
cn_identity_card_number
.
count
==
18
else
{
return
false
}
guard
cn_identity_card_issue_at
.
count
>
0
else
{
return
false
}
guard
cn_identity_card_issue_at
.
count
>
0
else
{
return
false
}
guard
cn_identity_card_issue_date_start_at
.
count
>
0
else
{
return
false
}
guard
cn_identity_card_issue_date_start_at
.
count
>
0
else
{
return
false
}
guard
cn_identity_card_issue_date_end_at
.
count
>
0
else
{
return
false
}
guard
cn_identity_card_issue_date_end_at
.
count
>
0
else
{
return
false
}
...
@@ -498,7 +500,7 @@ class YHMainApplicantInformationViewModel: YHBaseViewModel {
...
@@ -498,7 +500,7 @@ class YHMainApplicantInformationViewModel: YHBaseViewModel {
let
birth_place_area
=
mainModel
.
birth_place
.
area
let
birth_place_area
=
mainModel
.
birth_place
.
area
let
birth_place_foreign
=
mainModel
.
birth_place
.
foreign
let
birth_place_foreign
=
mainModel
.
birth_place
.
foreign
let
sex
=
mainModel
.
sex
let
sex
=
mainModel
.
sex
let
married
=
mainModel
.
married
_
=
mainModel
.
married
let
mobile
=
mainModel
.
mobile
let
mobile
=
mainModel
.
mobile
let
email
=
mainModel
.
email
let
email
=
mainModel
.
email
let
has_hk_id
=
mainModel
.
has_hk_id
let
has_hk_id
=
mainModel
.
has_hk_id
...
...
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