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
0a6c3da8
Commit
0a6c3da8
authored
Mar 18, 2024
by
Steven杜宇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
// 产品走查
parent
77da0cf5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
46 additions
and
61 deletions
+46
-61
YHChildBasicInfoVC.swift
...amilyMember(家庭成员信息表)/C/Child(子女)/YHChildBasicInfoVC.swift
+45
-60
YHChildPrimaryInfoVC.swift
...ilyMember(家庭成员信息表)/C/Child(子女)/YHChildPrimaryInfoVC.swift
+1
-1
No files found.
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/ServiceProcess(我的信息流程)/FamilyMember(家庭成员信息表)/C/Child(子女)/YHChildBasicInfoVC.swift
View file @
0a6c3da8
...
@@ -85,10 +85,6 @@ class YHChildBasicInfoVC: YHBaseViewController, YHFamilyMemberProtol {
...
@@ -85,10 +85,6 @@ class YHChildBasicInfoVC: YHBaseViewController, YHFamilyMemberProtol {
let
item04
=
YHFormDetailItem
(
type
:
.
marriageState
)
let
item04
=
YHFormDetailItem
(
type
:
.
marriageState
)
item04
.
value
=
child
.
married
item04
.
value
=
child
.
married
item04
.
tips
=
"请选择婚姻状况"
.
local
item04
.
tips
=
"请选择婚姻状况"
.
local
let
item05
=
YHFormDetailItem
(
type
:
.
birthday
)
item05
.
value
=
child
.
birthday
item05
.
tips
=
"请选择出生日期"
.
local
item05
.
placeHolder
=
"请选择出生日期"
.
local
let
item06
=
YHFormDetailItem
(
type
:
.
birthNation
)
let
item06
=
YHFormDetailItem
(
type
:
.
birthNation
)
item06
.
value
=
String
(
child
.
isBirthOverSeas
())
item06
.
value
=
String
(
child
.
isBirthOverSeas
())
item06
.
tips
=
"请选择出生国家/地区"
.
local
item06
.
tips
=
"请选择出生国家/地区"
.
local
...
@@ -105,7 +101,7 @@ class YHChildBasicInfoVC: YHBaseViewController, YHFamilyMemberProtol {
...
@@ -105,7 +101,7 @@ class YHChildBasicInfoVC: YHBaseViewController, YHFamilyMemberProtol {
item07
.
tips
=
"请选择出生城市"
.
local
item07
.
tips
=
"请选择出生城市"
.
local
}
}
let
arr0
:[
YHFormItemProtocol
]
=
[
title0
,
item00
,
item01
,
item02
,
item03
,
item04
,
item0
5
,
item0
6
,
item07
]
let
arr0
:[
YHFormItemProtocol
]
=
[
title0
,
item00
,
item01
,
item02
,
item03
,
item04
,
item06
,
item07
]
// 职业信息
// 职业信息
let
title1
=
YHFormTitleItem
(
type
:
.
occupationInfo
)
let
title1
=
YHFormTitleItem
(
type
:
.
occupationInfo
)
...
@@ -122,36 +118,42 @@ class YHChildBasicInfoVC: YHBaseViewController, YHFamilyMemberProtol {
...
@@ -122,36 +118,42 @@ class YHChildBasicInfoVC: YHBaseViewController, YHFamilyMemberProtol {
item11
.
placeHolder
=
"请输入职业名称"
.
local
item11
.
placeHolder
=
"请输入职业名称"
.
local
arr1
.
append
(
item11
)
arr1
.
append
(
item11
)
}
}
items
.
append
(
contentsOf
:
[
arr0
,
arr1
])
if
child
.
isFollow
()
{
// 是否前次婚姻子女
let
title2
=
YHFormTitleItem
(
type
:
.
isPreviousMarriageChild
)
let
item20
=
YHFormDetailItem
(
type
:
.
isPreviousMarriageChild
)
item20
.
value
=
String
(
child
.
isPreviousMarriageChild
())
item20
.
tips
=
"请选择是否前次婚姻子女"
.
local
let
arr2
:[
YHFormItemProtocol
]
=
[
title2
,
item20
]
// 在港信息
let
title3
=
YHFormTitleItem
(
type
:
.
inHongKongInfo
)
let
item30
=
YHFormDetailItem
(
type
:
.
isNowInHK
)
item30
.
value
=
String
(
child
.
isNowInHK
())
item30
.
tips
=
"请选择目前是否在港"
.
local
var
arr3
:[
YHFormItemProtocol
]
=
[
title3
,
item30
]
if
child
.
isNowInHK
()
{
// 目前在港才显示 逗留期限和在港身份
let
item31
=
YHFormDetailItem
(
type
:
.
stayHKDate
)
item31
.
placeHolder
=
"请选择"
.
local
item31
.
tips
=
"请选择获准逗留期限"
.
local
item31
.
value
=
child
.
childInHk
.
info
let
item32
=
YHFormDetailItem
(
type
:
.
roleInHK
)
// 是否前次婚姻子女
item32
.
placeHolder
=
"请选择"
.
local
let
title2
=
YHFormTitleItem
(
type
:
.
isPreviousMarriageChild
)
item32
.
tips
=
"请选择在港身份"
.
local
let
item20
=
YHFormDetailItem
(
type
:
.
isPreviousMarriageChild
)
item32
.
value
=
child
.
hkIdentity
item20
.
value
=
String
(
child
.
isPreviousMarriageChild
())
item20
.
tips
=
"请选择是否前次婚姻子女"
.
local
let
arr2
:[
YHFormItemProtocol
]
=
[
title2
,
item20
]
items
.
append
(
arr2
)
arr3
.
append
(
contentsOf
:
[
item31
,
item32
])
// 在港信息
let
title3
=
YHFormTitleItem
(
type
:
.
inHongKongInfo
)
let
item30
=
YHFormDetailItem
(
type
:
.
isNowInHK
)
item30
.
value
=
String
(
child
.
isNowInHK
())
item30
.
tips
=
"请选择目前是否在港"
.
local
var
arr3
:[
YHFormItemProtocol
]
=
[
title3
,
item30
]
if
child
.
isNowInHK
()
{
// 目前在港才显示 逗留期限和在港身份
let
item31
=
YHFormDetailItem
(
type
:
.
stayHKDate
)
item31
.
placeHolder
=
"请选择"
.
local
item31
.
tips
=
"请选择获准逗留期限"
.
local
item31
.
value
=
child
.
childInHk
.
info
let
item32
=
YHFormDetailItem
(
type
:
.
roleInHK
)
item32
.
placeHolder
=
"请选择"
.
local
item32
.
tips
=
"请选择在港身份"
.
local
item32
.
value
=
child
.
hkIdentity
arr3
.
append
(
contentsOf
:
[
item31
,
item32
])
}
items
.
append
(
arr3
)
}
}
// 香港身份证
// 香港身份证
...
@@ -167,8 +169,7 @@ class YHChildBasicInfoVC: YHBaseViewController, YHFamilyMemberProtol {
...
@@ -167,8 +169,7 @@ class YHChildBasicInfoVC: YHBaseViewController, YHFamilyMemberProtol {
item41
.
tips
=
"请输入香港身份证号"
.
local
item41
.
tips
=
"请输入香港身份证号"
.
local
arr4
.
append
(
item41
)
arr4
.
append
(
item41
)
}
}
items
.
append
(
arr4
)
items
.
append
(
contentsOf
:
[
arr0
,
arr1
,
arr2
,
arr3
,
arr4
])
tableView
.
reloadData
()
tableView
.
reloadData
()
}
}
...
@@ -200,8 +201,7 @@ class YHChildBasicInfoVC: YHBaseViewController, YHFamilyMemberProtol {
...
@@ -200,8 +201,7 @@ class YHChildBasicInfoVC: YHBaseViewController, YHFamilyMemberProtol {
{
{
return
.
inputText
return
.
inputText
}
}
if
detailItem
.
type
==
.
birthday
if
detailItem
.
type
==
.
occupation
||
detailItem
.
type
==
.
occupation
||
detailItem
.
type
==
.
stayHKDate
||
detailItem
.
type
==
.
stayHKDate
||
detailItem
.
type
==
.
roleInHK
||
detailItem
.
type
==
.
roleInHK
||
detailItem
.
type
==
.
ownDegree
||
detailItem
.
type
==
.
ownDegree
...
@@ -445,31 +445,15 @@ extension YHChildBasicInfoVC : UITableViewDelegate, UITableViewDataSource {
...
@@ -445,31 +445,15 @@ extension YHChildBasicInfoVC : UITableViewDelegate, UITableViewDataSource {
if
item
is
YHFormDetailItem
{
if
item
is
YHFormDetailItem
{
let
detailItem
=
item
as!
YHFormDetailItem
let
detailItem
=
item
as!
YHFormDetailItem
if
detailItem
.
type
==
.
birthday
||
detailItem
.
type
==
.
stayHKDate
{
// 出生日期/获准滞留至
if
detailItem
.
type
==
.
stayHKDate
{
// 出生日期/获准滞留至
var
title
=
""
var
title
=
""
if
detailItem
.
type
==
.
birthday
{
if
detailItem
.
type
==
.
stayHKDate
{
title
=
"选择出生日期"
}
else
if
detailItem
.
type
==
.
stayHKDate
{
title
=
"选择逗留日期"
title
=
"选择逗留日期"
}
}
YHDatePickView
.
show
(
type
:
.
yyyymmdd
,
title
:
title
)
{
[
weak
self
]
dateStr
in
YHDatePickView
.
show
(
type
:
.
yyyymmdd
,
title
:
title
)
{
[
weak
self
]
dateStr
in
guard
let
self
=
self
else
{
return
}
guard
let
self
=
self
else
{
return
}
if
detailItem
.
type
==
.
birthday
{
if
detailItem
.
type
==
.
stayHKDate
{
let
format
=
DateFormatter
()
format
.
dateFormat
=
"yyyy-MM-dd"
if
let
selectDate
=
format
.
date
(
from
:
dateStr
)
{
let
selectTimeInterval
=
selectDate
.
timeIntervalSince1970
let
currentTimeInterval
=
Date
()
.
timeIntervalSince1970
// 出生日期须早于当前日期
if
selectTimeInterval
>
currentTimeInterval
{
YHHUD
.
flash
(
message
:
"出生日期须早于当前日期"
.
local
)
return
}
}
self
.
child
?
.
birthday
=
dateStr
}
else
if
detailItem
.
type
==
.
stayHKDate
{
self
.
child
?
.
childInHk
.
info
=
dateStr
self
.
child
?
.
childInHk
.
info
=
dateStr
}
}
loadInfo
()
loadInfo
()
...
@@ -574,8 +558,7 @@ extension YHChildBasicInfoVC {
...
@@ -574,8 +558,7 @@ extension YHChildBasicInfoVC {
guard
let
child
=
child
else
{
return
false
}
guard
let
child
=
child
else
{
return
false
}
if
isEmptyString
(
child
.
subsetName
)
if
isEmptyString
(
child
.
subsetName
)
||
child
.
sex
==
0
||
child
.
sex
==
0
||
isEmptyString
(
child
.
married
)
||
isEmptyString
(
child
.
married
){
||
isEmptyString
(
child
.
birthday
){
return
false
return
false
}
}
...
@@ -597,9 +580,11 @@ extension YHChildBasicInfoVC {
...
@@ -597,9 +580,11 @@ extension YHChildBasicInfoVC {
return
false
return
false
}
}
if
child
.
isNowInHK
()
{
if
child
.
isFollow
()
{
if
isEmptyString
(
child
.
childInHk
.
info
)
||
isEmptyString
(
child
.
hkIdentity
)
{
if
child
.
isNowInHK
()
{
return
false
if
isEmptyString
(
child
.
childInHk
.
info
)
||
isEmptyString
(
child
.
hkIdentity
)
{
return
false
}
}
}
}
}
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/ServiceProcess(我的信息流程)/FamilyMember(家庭成员信息表)/C/Child(子女)/YHChildPrimaryInfoVC.swift
View file @
0a6c3da8
...
@@ -406,7 +406,7 @@ extension YHChildPrimaryInfoVC : UITableViewDelegate, UITableViewDataSource {
...
@@ -406,7 +406,7 @@ extension YHChildPrimaryInfoVC : UITableViewDelegate, UITableViewDataSource {
// 子女选择年满18岁则【是否随行至香港】默认选择否,不可修改
// 子女选择年满18岁则【是否随行至香港】默认选择否,不可修改
// 如果未年满18岁则【是否随行至香港】可选择【是/否】,可修改
// 如果未年满18岁则【是否随行至香港】可选择【是/否】,可修改
YHDatePickView
.
show
(
type
:
.
yyyymmdd
)
{
[
weak
self
]
date
in
YHDatePickView
.
show
(
type
:
.
yyyymmdd
,
title
:
"选择出生日期"
.
local
)
{
[
weak
self
]
date
in
guard
let
self
=
self
else
{
return
}
guard
let
self
=
self
else
{
return
}
if
detailItem
.
type
==
.
birthday
{
if
detailItem
.
type
==
.
birthday
{
...
...
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