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
024337b5
Commit
024337b5
authored
Apr 29, 2024
by
Steven杜宇
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'youhua-dev' into develop
parents
4544db25
3562209d
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
72 additions
and
25 deletions
+72
-25
YHChildBasicInfoVC.swift
...amilyMember(家庭成员信息表)/C/Child(子女)/YHChildBasicInfoVC.swift
+24
-5
YHBrotherInfoVC.swift
...庭成员信息表)/C/Parents&Brothers(父母和兄弟姐妹)/YHBrotherInfoVC.swift
+14
-6
YHParentInfoVC.swift
...家庭成员信息表)/C/Parents&Brothers(父母和兄弟姐妹)/YHParentInfoVC.swift
+20
-8
YHSpouseBasicInfoVC.swift
...ilyMember(家庭成员信息表)/C/Spouse(配偶)/YHSpouseBasicInfoVC.swift
+11
-5
YHFamilyMemberInfoListVC.swift
...程)/FamilyMember(家庭成员信息表)/C/YHFamilyMemberInfoListVC.swift
+1
-0
YHFamilyRequestViewModel.swift
...程)/FamilyMember(家庭成员信息表)/M/YHFamilyRequestViewModel.swift
+2
-1
No files found.
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/ServiceProcess(我的信息流程)/FamilyMember(家庭成员信息表)/C/Child(子女)/YHChildBasicInfoVC.swift
View file @
024337b5
...
...
@@ -157,7 +157,8 @@ class YHChildBasicInfoVC: YHBaseViewController, YHFamilyMemberProtol {
if
child
.
isHaveHKIdentityCard
()
{
// 办理过香港身份证才显示证号
let
item41
=
YHFormDetailItem
(
type
:
.
hkIdentityCardNumber
)
item41
.
value
=
child
.
hkIdentityCard
item41
.
tips
=
"请输入香港身份证号"
.
local
let
tips
=
isEmptyString
(
child
.
hkIdentityCard
)
?
"请输入香港身份证号码"
:
"请输入正确的香港身份证号码"
item41
.
tips
=
tips
arr4
.
append
(
item41
)
}
items
.
append
(
arr4
)
...
...
@@ -255,7 +256,17 @@ extension YHChildBasicInfoVC : UITableViewDelegate, UITableViewDataSource {
cell
.
placeHolder
=
detailItem
.
placeHolder
cell
.
title
=
detailItem
.
getTitle
()
cell
.
text
=
detailItem
.
value
if
detailItem
.
type
==
.
hkIdentityCardNumber
{
// 输入香港身份证号码
let
isEmptyValue
=
isEmptyString
(
detailItem
.
value
)
var
isUnvalidFormat
=
true
if
let
value
=
detailItem
.
value
,
value
.
isHKIdentityCardNumber
()
{
isUnvalidFormat
=
false
}
let
isNeedShowTips
=
isEmptyValue
||
isUnvalidFormat
cell
.
setTips
(
detailItem
.
tips
,
isShow
:
isNeedShowError
&&
isNeedShowTips
)
}
else
{
cell
.
setTips
(
detailItem
.
tips
,
isShow
:
isNeedShowError
&&
detailItem
.
isShowTips
)
}
if
detailItem
.
type
==
.
befourMarryFirstName
{
cell
.
textField
.
keyboardType
=
.
asciiCapable
// 英文键盘
...
...
@@ -314,9 +325,14 @@ extension YHChildBasicInfoVC : UITableViewDelegate, UITableViewDataSource {
}
else
if
detailItem
.
type
==
.
hkIdentityCardNumber
{
self
.
child
?
.
hkIdentityCard
=
text
}
if
isEditEnd
{
self
.
loadInfo
()
if
detailItem
.
type
==
.
hkIdentityCardNumber
{
if
let
text
=
text
,
!
text
.
isEmpty
,
!
text
.
isHKIdentityCardNumber
()
{
YHHUD
.
flash
(
message
:
"请输入正确的香港身份证号格式"
)
return
}
}
save
()
}
}
...
...
@@ -583,9 +599,6 @@ extension YHChildBasicInfoVC {
if
isEmptyString
(
child
.
hkIdentityCard
)
{
return
false
}
if
let
hkIdentityCard
=
child
.
hkIdentityCard
,
!
hkIdentityCard
.
isHKIdentityCardNumber
()
{
return
false
}
}
return
true
}
...
...
@@ -600,6 +613,12 @@ extension YHChildBasicInfoVC {
YHHUD
.
flash
(
message
:
"资料还未填完"
)
return
false
}
if
let
hkIdentityCard
=
child
?
.
hkIdentityCard
,
!
hkIdentityCard
.
isHKIdentityCardNumber
()
{
isNeedShowError
=
true
loadInfo
()
YHHUD
.
flash
(
message
:
"请输入正确的香港身份证号码"
)
return
false
}
return
true
}
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/ServiceProcess(我的信息流程)/FamilyMember(家庭成员信息表)/C/Parents&Brothers(父母和兄弟姐妹)/YHBrotherInfoVC.swift
View file @
024337b5
...
...
@@ -132,7 +132,8 @@ class YHBrotherInfoVC: YHBaseViewController {
var
arr4
:[
YHFormItemProtocol
]
=
[
title4
,
item40
]
if
brotherInfo
.
isHaveHKIdentityCard
()
{
// 办理过香港身份证才显示证号
let
item41
=
YHFormDetailItem
(
type
:
.
hkIdentityCardNumber
,
value
:
brotherInfo
.
hkIdentityCard
,
tips
:
"请输入正确的香港身份证号码"
)
let
tips
=
isEmptyString
(
brotherInfo
.
hkIdentityCard
)
?
"请输入香港身份证号码"
.
local
:
"请输入正确的香港身份证号码"
.
local
let
item41
=
YHFormDetailItem
(
type
:
.
hkIdentityCardNumber
,
value
:
brotherInfo
.
hkIdentityCard
,
tips
:
tips
)
arr4
.
append
(
item41
)
}
items
.
append
(
contentsOf
:
[
arr1
,
arr2
,
arr3
,
arr4
])
...
...
@@ -273,9 +274,14 @@ extension YHBrotherInfoVC : UITableViewDelegate, UITableViewDataSource {
}
else
if
detailItem
.
type
==
.
hkIdentityCardNumber
{
self
.
brotherInfo
?
.
hkIdentityCard
=
text
??
""
}
if
isEditEnd
{
self
.
loadInfo
()
if
detailItem
.
type
==
.
hkIdentityCardNumber
{
if
let
text
=
text
,
!
text
.
isEmpty
,
!
text
.
isHKIdentityCardNumber
()
{
YHHUD
.
flash
(
message
:
"请输入正确的香港身份证号格式"
)
return
}
}
saveInfoSilent
()
}
}
...
...
@@ -563,10 +569,6 @@ extension YHBrotherInfoVC {
if
isEmptyString
(
brotherInfo
.
hkIdentityCard
)
{
return
false
}
if
let
hkIdCard
=
brotherInfo
.
hkIdentityCard
,
!
hkIdCard
.
isHKIdentityCardNumber
()
{
return
false
}
}
return
true
...
...
@@ -585,6 +587,12 @@ extension YHBrotherInfoVC {
YHHUD
.
flash
(
message
:
"资料还未填完"
)
return
}
if
let
hkIdentityCard
=
brotherInfo
?
.
hkIdentityCard
,
!
hkIdentityCard
.
isHKIdentityCardNumber
()
{
isNeedShowError
=
true
loadInfo
()
YHHUD
.
flash
(
message
:
"请输入正确的香港身份证号码"
)
return
}
}
guard
let
brotherInfo
=
brotherInfo
else
{
return
}
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/ServiceProcess(我的信息流程)/FamilyMember(家庭成员信息表)/C/Parents&Brothers(父母和兄弟姐妹)/YHParentInfoVC.swift
View file @
024337b5
...
...
@@ -168,10 +168,15 @@ class YHParentInfoVC: YHBaseViewController {
var
arr4
:[
YHFormItemProtocol
]
=
[
title4
,
item40
]
if
parentInfo
.
isHaveHKIdentityCard
()
{
// 办理过香港身份证才显示证号
let
item41
=
YHFormDetailItem
(
type
:
.
hkIdentityCardNumber
,
value
:
parentInfo
.
hkIdentityCard
,
tips
:
"请输入正确的香港身份证号码"
.
local
)
let
tips
=
isEmptyString
(
parentInfo
.
hkIdentityCard
)
?
"请输入香港身份证号码"
.
local
:
"请输入正确的香港身份证号码"
.
local
let
item41
=
YHFormDetailItem
(
type
:
.
hkIdentityCardNumber
,
value
:
parentInfo
.
hkIdentityCard
,
tips
:
tips
)
arr4
.
append
(
item41
)
}
items
.
append
(
contentsOf
:
[
arr0
,
arr1
,
arr2
,
arr3
,
arr4
])
}
else
{
// 父母已故
if
let
hkIdentityCard
=
parentInfo
.
hkIdentityCard
,
!
hkIdentityCard
.
isHKIdentityCardNumber
()
{
parentInfo
.
hkIdentityCard
=
""
}
}
tableView
.
reloadData
()
}
...
...
@@ -317,9 +322,14 @@ extension YHParentInfoVC : UITableViewDelegate, UITableViewDataSource {
}
else
if
detailItem
.
type
==
.
hkIdentityCardNumber
{
self
.
parentInfo
?
.
hkIdentityCard
=
text
}
if
isEditEnd
{
self
.
loadInfo
()
if
detailItem
.
type
==
.
hkIdentityCardNumber
{
if
let
text
=
text
,
!
text
.
isEmpty
,
!
text
.
isHKIdentityCardNumber
()
{
YHHUD
.
flash
(
message
:
"请输入正确的香港身份证号格式"
)
return
}
}
saveInfoSilent
()
}
}
...
...
@@ -601,10 +611,6 @@ extension YHParentInfoVC {
if
isEmptyString
(
parentInfo
.
hkIdentityCard
)
{
return
false
}
if
let
hkIdCard
=
parentInfo
.
hkIdentityCard
,
!
hkIdCard
.
isHKIdentityCardNumber
()
{
return
false
}
}
return
true
...
...
@@ -616,13 +622,19 @@ extension YHParentInfoVC {
if
isSubmit
{
let
isChecked
=
checkIntegrity
()
isNeedShowError
=
!
isChecked
self
.
tableView
.
reloadData
()
loadInfo
()
if
!
isChecked
{
YHHUD
.
flash
(
message
:
"资料还未填完"
)
return
}
if
let
parent
=
parentInfo
,
!
parent
.
isDead
(),
let
hkIdentityCard
=
parentInfo
?
.
hkIdentityCard
,
!
hkIdentityCard
.
isHKIdentityCardNumber
()
{
isNeedShowError
=
true
loadInfo
()
YHHUD
.
flash
(
message
:
"请输入正确的香港身份证号码"
)
return
}
}
guard
let
parentInfo
=
parentInfo
else
{
return
}
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/ServiceProcess(我的信息流程)/FamilyMember(家庭成员信息表)/C/Spouse(配偶)/YHSpouseBasicInfoVC.swift
View file @
024337b5
...
...
@@ -199,7 +199,8 @@ class YHSpouseBasicInfoVC: YHBaseViewController, YHFamilyMemberProtol {
if
spouse
.
isHaveHKIdentityCard
()
{
// 办理过香港身份证才显示证号
let
item41
=
YHFormDetailItem
(
type
:
.
hkIdentityCardNumber
)
item41
.
value
=
spouse
.
hkIdentityCard
item41
.
tips
=
"请输入正确的香港身份证号码"
.
local
let
tips
=
isEmptyString
(
spouse
.
hkIdentityCard
)
?
"请输入香港身份证号码"
.
local
:
"请输入正确的香港身份证号码"
.
local
item41
.
tips
=
tips
arr4
.
append
(
item41
)
}
items
.
append
(
arr4
)
...
...
@@ -262,9 +263,6 @@ class YHSpouseBasicInfoVC: YHBaseViewController, YHFamilyMemberProtol {
if
isEmptyString
(
spouse
.
hkIdentityCard
)
{
return
false
}
if
let
hkIdentityCard
=
spouse
.
hkIdentityCard
,
!
hkIdentityCard
.
isHKIdentityCardNumber
()
{
return
false
}
}
return
true
}
...
...
@@ -280,6 +278,12 @@ class YHSpouseBasicInfoVC: YHBaseViewController, YHFamilyMemberProtol {
YHHUD
.
flash
(
message
:
"资料还未填完"
)
return
false
}
if
let
hkIdentityCard
=
spouse
.
hkIdentityCard
,
!
hkIdentityCard
.
isHKIdentityCardNumber
()
{
isNeedShowError
=
true
loadInfo
()
YHHUD
.
flash
(
message
:
"请输入正确的香港身份证号码"
)
return
false
}
return
true
}
...
...
@@ -458,7 +462,7 @@ extension YHSpouseBasicInfoVC : UITableViewDelegate, UITableViewDataSource {
if
isEditEnd
{
self
.
loadInfo
()
if
detailItem
.
type
==
.
hkIdentityCardNumber
{
if
let
text
=
text
,
!
text
.
isHKIdentityCardNumber
()
{
if
let
text
=
text
,
!
text
.
is
Empty
,
!
text
.
is
HKIdentityCardNumber
()
{
YHHUD
.
flash
(
message
:
"请输入正确的香港身份证号格式"
)
return
}
...
...
@@ -502,6 +506,7 @@ extension YHSpouseBasicInfoVC : UITableViewDelegate, UITableViewDataSource {
let
selectItem
=
answers
[
index
]
self
.
spouse
?
.
setBirthOverSeas
(
selectItem
.
title
==
"国外"
.
local
)
self
.
loadInfo
()
save
()
}
}
else
if
detailItem
.
type
==
.
isHaveHkIdentityCard
||
detailItem
.
type
==
.
isNowInHK
{
// 是否办理过香港身份证 是否在岗
var
select
=
false
...
...
@@ -521,6 +526,7 @@ extension YHSpouseBasicInfoVC : UITableViewDelegate, UITableViewDataSource {
self
.
spouse
?
.
setHaveHKIdentityCard
(
selectItem
.
title
==
"是"
.
local
)
}
self
.
loadInfo
()
save
()
}
}
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/ServiceProcess(我的信息流程)/FamilyMember(家庭成员信息表)/C/YHFamilyMemberInfoListVC.swift
View file @
024337b5
...
...
@@ -612,6 +612,7 @@ extension YHFamilyMemberInfoListVC : UITableViewDelegate, UITableViewDataSource
if
detailItem
.
relationType
==
.
child
{
let
vc
=
YHChildInfoContainerVC
()
vc
.
child
=
detailItem
vc
.
orderId
=
orderId
self
.
navigationController
?
.
pushViewController
(
vc
)
return
}
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/ServiceProcess(我的信息流程)/FamilyMember(家庭成员信息表)/M/YHFamilyRequestViewModel.swift
View file @
024337b5
...
...
@@ -113,7 +113,8 @@ class YHFamilyRequestViewModel {
let
strUrl
=
YHBaseUrlManager
.
shared
.
curURL
()
+
YHAllApiName
.
Family
.
familyInfoDetailApi
let
_
=
YHNetRequest
.
postRequest
(
url
:
strUrl
,
params
:[
"order_id"
:
orderId
])
{
json
,
code
in
let
_
=
YHNetRequest
.
getRequest
(
url
:
strUrl
,
params
:[
"order_id"
:
orderId
,
"id"
:
detailId
])
{
json
,
code
in
YHHUD
.
hide
()
printLog
(
"model 是 ==>
\(
json
)
"
)
...
...
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