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
a5fd79f4
Commit
a5fd79f4
authored
Feb 26, 2024
by
Steven杜宇
1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
// 配偶信息
parent
46d435cb
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
33 additions
and
10 deletions
+33
-10
YHSpouseInfoContainerVC.swift
...ember(家庭成员信息表)/C/Spouse(配偶)/YHSpouseInfoContainerVC.swift
+9
-3
YHSpousePrimaryInfoVC.swift
...yMember(家庭成员信息表)/C/Spouse(配偶)/YHSpousePrimaryInfoVC.swift
+14
-0
String+Extension.swift
galaxy/galaxy/Classes/Tools/Extention/String+Extension.swift
+10
-7
No files found.
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/ServiceProcess(流程)/FamilyMember(家庭成员信息表)/C/Spouse(配偶)/YHSpouseInfoContainerVC.swift
View file @
a5fd79f4
...
...
@@ -67,14 +67,17 @@ class YHSpouseInfoContainerVC: YHBaseViewController, YHSpouseInfoVCProtocol {
certificateVC
.
delegate
=
self
basicInfoVC
.
delegate
=
self
updateStepView
()
view
.
addSubview
(
stepView
)
view
.
addSubview
(
bottomView
)
updateStepView
()
bottomView
.
submitBlock
=
{
[
weak
self
]
in
guard
let
self
=
self
else
{
return
}
let
index
=
(
currentIndex
+
1
)
%
self
.
children
.
count
currentIndex
=
index
self
.
didClickSubmitBtn
()
}
...
...
@@ -110,6 +113,8 @@ class YHSpouseInfoContainerVC: YHBaseViewController, YHSpouseInfoVCProtocol {
vc
.
removeFromParent
()
}
print
(
self
.
children
)
if
spouse
.
isFollow
()
{
self
.
addChild
(
initalInfoVC
)
...
...
@@ -137,7 +142,8 @@ class YHSpouseInfoContainerVC: YHBaseViewController, YHSpouseInfoVCProtocol {
print
(
"step:
\(
spouse
.
step
)
"
)
currentIndex
=
spouse
.
step
currentIndex
=
0
stepView
.
block
=
{
[
weak
self
]
index
in
guard
let
self
=
self
else
{
return
}
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/ServiceProcess(流程)/FamilyMember(家庭成员信息表)/C/Spouse(配偶)/YHSpousePrimaryInfoVC.swift
View file @
a5fd79f4
...
...
@@ -383,5 +383,19 @@ extension YHSpousePrimaryInfoVC : UITableViewDelegate, UITableViewDataSource {
cell
.
layer
.
mask
=
nil
}
}
// 检查填写信息完整性
func
checkIntegrity
()
->
Bool
{
guard
let
spouse
=
spouse
else
{
return
false
}
if
!
spouse
.
isFollow
()
{
return
true
}
if
isEmptyString
(
spouse
.
nationality
)
{
return
false
}
return
false
}
}
galaxy/galaxy/Classes/Tools/Extention/String+Extension.swift
View file @
a5fd79f4
...
...
@@ -8,7 +8,17 @@
import
UIKit
import
SwifterSwift
// 字符串是否为空(空的标准是nil或"")
func
isEmptyString
(
_
string
:
String
?)
->
Bool
{
if
let
string
=
string
,
string
.
count
>
0
{
return
false
}
return
true
}
extension
String
{
/// JSONString转换为字典
func
toDictionary
()
->
Dictionary
<
String
,
Any
>
{
guard
let
jsonData
:
Data
=
data
(
using
:
.
utf8
)
else
{
return
[
String
:
Any
]()
}
...
...
@@ -30,13 +40,6 @@ extension String {
}
return
nil
}
static
func
isEmpty
(
string
:
String
?)
->
Bool
{
if
let
string
=
string
,
string
.
count
>
0
{
return
false
}
return
true
}
}
extension
String
{
...
...
pete谢兆麟
@pete
mentioned in commit
47c64236
·
Feb 26, 2024
mentioned in commit
47c64236
mentioned in commit 47c6423651af4d4080d48ab288093087a0fe76bd
Toggle commit list
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