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
66d44524
Commit
66d44524
authored
Mar 08, 2024
by
Steven杜宇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
// 家庭成员
parent
cf92146c
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
14 deletions
+14
-14
YHChildPrimaryInfoVC.swift
...ilyMember(家庭成员信息表)/C/Child(子女)/YHChildPrimaryInfoVC.swift
+2
-2
YHSpousePrimaryInfoVC.swift
...yMember(家庭成员信息表)/C/Spouse(配偶)/YHSpousePrimaryInfoVC.swift
+2
-2
YHFamilyInitialInfo.swift
...ess(流程)/FamilyMember(家庭成员信息表)/M/YHFamilyInitialInfo.swift
+10
-10
No files found.
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/ServiceProcess(流程)/FamilyMember(家庭成员信息表)/C/Child(子女)/YHChildPrimaryInfoVC.swift
View file @
66d44524
...
...
@@ -295,7 +295,7 @@ extension YHChildPrimaryInfoVC : UITableViewDelegate, UITableViewDataSource {
guard
let
child
=
child
else
{
return
}
if
detailItem
.
type
==
.
detailAddress
{
if
child
.
address
.
is
InChina
()
{
if
child
.
isLive
InChina
()
{
child
.
address
.
details
=
text
??
""
}
else
{
child
.
address
.
foreign
=
text
??
""
...
...
@@ -466,7 +466,7 @@ extension YHChildPrimaryInfoVC {
if
isEmptyString
(
child
.
address
.
country
)
{
return
false
}
if
child
.
address
.
is
InChina
()
{
if
child
.
isLive
InChina
()
{
if
isEmptyArray
(
child
.
address
.
area
)
{
return
false
}
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/ServiceProcess(流程)/FamilyMember(家庭成员信息表)/C/Spouse(配偶)/YHSpousePrimaryInfoVC.swift
View file @
66d44524
...
...
@@ -250,7 +250,7 @@ extension YHSpousePrimaryInfoVC : UITableViewDelegate, UITableViewDataSource {
if
detailItem
.
type
==
.
detailAddress
{
if
spouse
.
address
.
is
InChina
()
{
if
spouse
.
isLive
InChina
()
{
spouse
.
address
.
details
=
text
??
""
}
else
{
spouse
.
address
.
foreign
=
text
??
""
...
...
@@ -387,7 +387,7 @@ extension YHSpousePrimaryInfoVC : UITableViewDelegate, UITableViewDataSource {
if
isEmptyString
(
spouse
.
address
.
country
)
{
return
false
}
if
spouse
.
address
.
is
InChina
()
{
if
spouse
.
isLive
InChina
()
{
if
isEmptyArray
(
spouse
.
address
.
area
)
{
return
false
}
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/ServiceProcess(流程)/FamilyMember(家庭成员信息表)/M/YHFamilyInitialInfo.swift
View file @
66d44524
...
...
@@ -874,6 +874,16 @@ class YHFamilyMember: SmartCodable, YHFormItemProtocol {
self
.
childStepchild
.
has
=
(
val
?
"Y"
:
"N"
)
}
// 是否住在中国
func
isLiveInChina
()
->
Bool
{
// 默认在中国
if
isEmptyString
(
self
.
address
.
country
)
{
return
true
}
if
self
.
address
.
country
.
contains
(
"中国"
)
{
return
true
}
return
false
}
// 根据生日推算年龄
func
getAge
(
birthday
:
String
)
->
Int
{
let
arr
=
birthday
.
components
(
separatedBy
:
YHDatePickView
.
separator
)
...
...
@@ -986,16 +996,6 @@ class YHAddress: SmartCodable {
}
// 是否在中国
func
isInChina
()
->
Bool
{
// 默认在中国
if
isEmptyString
(
country
)
{
return
true
}
if
country
.
contains
(
"中国"
)
{
return
true
}
return
false
}
// 清空地址信息
func
clearAddress
()
{
self
.
area
=
[]
...
...
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