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
a35312e7
Commit
a35312e7
authored
Mar 19, 2024
by
Steven杜宇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
// UI走查
parent
5756f284
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
30 additions
and
21 deletions
+30
-21
YHQualificationDetailVC.swift
...n&Qualification(学历专业资格填写)/C/YHQualificationDetailVC.swift
+1
-0
YHChildBasicInfoVC.swift
...amilyMember(家庭成员信息表)/C/Child(子女)/YHChildBasicInfoVC.swift
+0
-9
YHChildInfoContainerVC.swift
...yMember(家庭成员信息表)/C/Child(子女)/YHChildInfoContainerVC.swift
+15
-6
YHSpouseInfoContainerVC.swift
...ember(家庭成员信息表)/C/Spouse(配偶)/YHSpouseInfoContainerVC.swift
+14
-6
No files found.
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/ServiceProcess(我的信息流程)/Education&Qualification(学历专业资格填写)/C/YHQualificationDetailVC.swift
View file @
a35312e7
...
...
@@ -49,6 +49,7 @@ class YHQualificationDetailVC: YHBaseViewController {
var
bottomView
:
YHSaveAndSubmitView
=
{
let
view
=
YHSaveAndSubmitView
.
createView
()
view
.
changeRightBtnTitle
(
"下一步"
.
local
)
return
view
}()
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/ServiceProcess(我的信息流程)/FamilyMember(家庭成员信息表)/C/Child(子女)/YHChildBasicInfoVC.swift
View file @
a35312e7
...
...
@@ -71,14 +71,11 @@ class YHChildBasicInfoVC: YHBaseViewController, YHFamilyMemberProtol {
let
title0
=
YHFormTitleItem
(
type
:
.
childInfo
)
let
item00
=
YHFormDetailItem
(
type
:
.
childName
)
item00
.
value
=
child
.
subsetName
item00
.
placeHolder
=
"请输入子女姓名"
.
local
item00
.
tips
=
"请输入子女姓名"
.
local
let
item01
=
YHFormDetailItem
(
type
:
.
everName
,
isNeed
:
false
)
item01
.
value
=
child
.
usedName
item01
.
placeHolder
=
"请输入曾用名"
.
local
let
item02
=
YHFormDetailItem
(
type
:
.
befourMarryFirstName
,
isNeed
:
false
)
item02
.
value
=
child
.
surname
item02
.
placeHolder
=
"请输入婚前姓氏"
.
local
let
item03
=
YHFormDetailItem
(
type
:
.
gender
)
item03
.
value
=
child
.
sexName
()
item03
.
tips
=
"请选择性别"
.
local
...
...
@@ -92,12 +89,10 @@ class YHChildBasicInfoVC: YHBaseViewController, YHFamilyMemberProtol {
if
child
.
isBirthOverSeas
()
{
item07
.
value
=
child
.
birthPlace
.
foreign
item07
.
placeHolder
=
"请输入"
.
local
item07
.
tips
=
"请输入出生城市"
.
local
}
else
{
item07
.
value
=
child
.
birthPlace
.
area
.
joined
(
separator
:
","
)
item07
.
placeHolder
=
"请选择出生城市"
.
local
item07
.
tips
=
"请选择出生城市"
.
local
}
...
...
@@ -108,14 +103,12 @@ class YHChildBasicInfoVC: YHBaseViewController, YHFamilyMemberProtol {
let
item10
=
YHFormDetailItem
(
type
:
.
occupation
)
item10
.
value
=
child
.
occupation
item10
.
tips
=
"请选择职业"
.
local
item10
.
placeHolder
=
"请选择职业"
.
local
var
arr1
:[
YHFormItemProtocol
]
=
[
title1
,
item10
]
if
child
.
isNowHaveJob
()
{
let
item11
=
YHFormDetailItem
(
type
:
.
occupationName
)
item11
.
value
=
child
.
occupationName
item11
.
tips
=
"请输入职业名称"
.
local
item11
.
placeHolder
=
"请输入职业名称"
.
local
arr1
.
append
(
item11
)
}
items
.
append
(
contentsOf
:
[
arr0
,
arr1
])
...
...
@@ -141,12 +134,10 @@ class YHChildBasicInfoVC: YHBaseViewController, YHFamilyMemberProtol {
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
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/ServiceProcess(我的信息流程)/FamilyMember(家庭成员信息表)/C/Child(子女)/YHChildInfoContainerVC.swift
View file @
a35312e7
...
...
@@ -116,7 +116,7 @@ class YHChildInfoContainerVC: YHBaseViewController, YHSpouseInfoVCProtocol {
bottomView
.
saveBlock
=
{
[
weak
self
]
in
guard
let
self
=
self
else
{
return
}
self
.
saveInfo
(
isSubmit
:
false
,
isShowLoading
:
true
,
callBack
:
nil
)
self
.
saveInfo
(
isSubmit
:
false
,
isShow
SubmitMsg
:
false
,
isShow
Loading
:
true
,
callBack
:
nil
)
}
stepView
.
snp
.
makeConstraints
{
make
in
...
...
@@ -188,7 +188,15 @@ class YHChildInfoContainerVC: YHBaseViewController, YHSpouseInfoVCProtocol {
func
submit
()
{
if
let
targetVC
=
getCurrentStepViewController
()
{
if
targetVC
.
nextStep
()
{
saveInfo
(
isSubmit
:
true
,
isShowLoading
:
true
)
{
var
isShowSubmitMsg
=
false
let
index
=
getArrayIndexOfCurrentStep
()
if
let
index
=
index
,
index
==
stepVCs
.
count
-
1
{
// 最后一步
isShowSubmitMsg
=
true
}
saveInfo
(
isSubmit
:
true
,
isShowSubmitMsg
:
isShowSubmitMsg
,
isShowLoading
:
true
)
{
[
weak
self
]
success
in
guard
let
self
=
self
else
{
return
}
if
success
{
...
...
@@ -244,7 +252,8 @@ extension YHChildInfoContainerVC {
// @param isSubmit:是否为提交 false为保存 true为提交
// @param isShowLoading: 是否展示loading和toast
func
saveInfo
(
isSubmit
:
Bool
,
isShowLoading
:
Bool
,
callBack
:((
Bool
)
->
Void
)?)
{
//
func
saveInfo
(
isSubmit
:
Bool
,
isShowSubmitMsg
:
Bool
,
isShowLoading
:
Bool
,
callBack
:((
Bool
)
->
Void
)?)
{
guard
let
child
=
child
else
{
return
}
guard
let
info
=
child
.
toDictionary
()
else
{
return
}
...
...
@@ -260,9 +269,9 @@ extension YHChildInfoContainerVC {
guard
let
self
=
self
else
{
return
}
if
isShowLoading
{
if
success
{
YHHUD
.
flash
(
message
:
isSubmit
?
"提交成功"
:
"保存成功"
)
YHHUD
.
flash
(
message
:
isSubmit
&&
isShowSubmitMsg
?
"提交成功"
:
"保存成功"
)
}
else
{
var
msg
=
isSubmit
?
"提交失败"
:
"保存失败"
var
msg
=
isSubmit
&&
isShowSubmitMsg
?
"提交失败"
:
"保存失败"
if
let
errorMsg
=
error
?
.
errorMsg
,
errorMsg
.
count
>
0
{
msg
=
errorMsg
}
...
...
@@ -295,6 +304,6 @@ extension YHChildInfoContainerVC {
}
func
saveInfoSilent
()
{
saveInfo
(
isSubmit
:
false
,
isShowLoading
:
false
,
callBack
:
nil
)
saveInfo
(
isSubmit
:
false
,
isShow
SubmitMsg
:
false
,
isShow
Loading
:
false
,
callBack
:
nil
)
}
}
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/ServiceProcess(我的信息流程)/FamilyMember(家庭成员信息表)/C/Spouse(配偶)/YHSpouseInfoContainerVC.swift
View file @
a35312e7
...
...
@@ -131,7 +131,7 @@ class YHSpouseInfoContainerVC: YHBaseViewController, YHSpouseInfoVCProtocol {
bottomView
.
saveBlock
=
{
[
weak
self
]
in
guard
let
self
=
self
else
{
return
}
saveInfo
(
isSubmit
:
false
,
isLoading
:
true
,
callBack
:
nil
)
saveInfo
(
isSubmit
:
false
,
is
ShowSubmitMsg
:
false
,
is
Loading
:
true
,
callBack
:
nil
)
}
stepView
.
snp
.
makeConstraints
{
make
in
...
...
@@ -206,7 +206,7 @@ class YHSpouseInfoContainerVC: YHBaseViewController, YHSpouseInfoVCProtocol {
extension
YHSpouseInfoContainerVC
{
// isSubmit:是否为提交 false为保存 true为提交
func
saveInfo
(
isSubmit
:
Bool
,
isLoading
:
Bool
,
callBack
:((
Bool
)
->
Void
)?)
{
func
saveInfo
(
isSubmit
:
Bool
,
is
ShowSubmitMsg
:
Bool
,
is
Loading
:
Bool
,
callBack
:((
Bool
)
->
Void
)?)
{
guard
let
spouse
=
spouse
else
{
return
}
guard
let
info
=
spouse
.
toDictionary
()
else
{
return
}
...
...
@@ -221,9 +221,9 @@ extension YHSpouseInfoContainerVC {
success
,
error
in
if
isLoading
{
if
success
{
YHHUD
.
flash
(
message
:
isSubmit
?
"提交成功"
:
"保存成功"
)
YHHUD
.
flash
(
message
:
isSubmit
&&
isShowSubmitMsg
?
"提交成功"
:
"保存成功"
)
}
else
{
var
msg
=
isSubmit
?
"提交失败"
:
"保存失败"
var
msg
=
isSubmit
&&
isShowSubmitMsg
?
"提交失败"
:
"保存失败"
if
let
errorMsg
=
error
?
.
errorMsg
,
errorMsg
.
count
>
0
{
msg
=
errorMsg
}
...
...
@@ -237,7 +237,7 @@ extension YHSpouseInfoContainerVC {
}
func
saveInfoSilent
()
{
saveInfo
(
isSubmit
:
false
,
isLoading
:
false
)
{
saveInfo
(
isSubmit
:
false
,
isShowSubmitMsg
:
false
,
isLoading
:
false
)
{
[
weak
self
]
success
in
}
...
...
@@ -247,7 +247,15 @@ extension YHSpouseInfoContainerVC {
func
submit
()
{
if
let
targetVC
=
getCurrentStepViewController
()
{
if
targetVC
.
nextStep
()
{
saveInfo
(
isSubmit
:
true
,
isLoading
:
true
)
{
var
isShowSubmitMsg
=
false
let
index
=
getArrayIndexOfCurrentStep
()
if
let
index
=
index
,
index
==
stepVCs
.
count
-
1
{
// 最后一步
isShowSubmitMsg
=
true
}
saveInfo
(
isSubmit
:
true
,
isShowSubmitMsg
:
isShowSubmitMsg
,
isLoading
:
true
)
{
[
weak
self
]
success
in
guard
let
self
=
self
else
{
return
}
if
success
{
...
...
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