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
3d761fcc
Commit
3d761fcc
authored
Jan 26, 2024
by
Steven杜宇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
// 父母信息
parent
dbd2c665
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
309 additions
and
8 deletions
+309
-8
project.pbxproj
galaxy/galaxy.xcodeproj/project.pbxproj
+8
-4
YHFamilyMemberFormVC.swift
...viceProcess(流程)/FamilyMember/C/YHFamilyMemberFormVC.swift
+1
-1
YHParentViewController.swift
...ceProcess(流程)/FamilyMember/C/YHParentViewController.swift
+265
-0
YHSpouseInitialInfoVC.swift
...iceProcess(流程)/FamilyMember/C/YHSpouseInitialInfoVC.swift
+2
-2
YHFamilyInitialInfo.swift
...rviceProcess(流程)/FamilyMember/M/YHFamilyInitialInfo.swift
+30
-0
YHFormItemDegreeInfoCell.swift
...cess(流程)/FamilyMember/View/YHFormItemDegreeInfoCell.swift
+3
-1
No files found.
galaxy/galaxy.xcodeproj/project.pbxproj
View file @
3d761fcc
...
@@ -15,7 +15,7 @@
...
@@ -15,7 +15,7 @@
041B52932B5E6CBA007EBCEB
/* YHFormItemTitleCell.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
041B52922B5E6CBA007EBCEB
/* YHFormItemTitleCell.swift */
;
};
041B52932B5E6CBA007EBCEB
/* YHFormItemTitleCell.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
041B52922B5E6CBA007EBCEB
/* YHFormItemTitleCell.swift */
;
};
041B52952B5E7037007EBCEB
/* YHFormItemAddCell.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
041B52942B5E7037007EBCEB
/* YHFormItemAddCell.swift */
;
};
041B52952B5E7037007EBCEB
/* YHFormItemAddCell.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
041B52942B5E7037007EBCEB
/* YHFormItemAddCell.swift */
;
};
041B52982B5E8EA0007EBCEB
/* YHFamilyMemberFormVC.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
041B52972B5E8EA0007EBCEB
/* YHFamilyMemberFormVC.swift */
;
};
041B52982B5E8EA0007EBCEB
/* YHFamilyMemberFormVC.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
041B52972B5E8EA0007EBCEB
/* YHFamilyMemberFormVC.swift */
;
};
041B52D62B5F899E007EBCEB
/* YHSpouse
FormVC.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
041B52D52B5F899E007EBCEB
/* YHSpouseForm
VC.swift */
;
};
041B52D62B5F899E007EBCEB
/* YHSpouse
InitialInfoVC.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
041B52D52B5F899E007EBCEB
/* YHSpouseInitialInfo
VC.swift */
;
};
041B52D92B5F8B07007EBCEB
/* YHConsortInfo.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
041B52D82B5F8B07007EBCEB
/* YHConsortInfo.swift */
;
};
041B52D92B5F8B07007EBCEB
/* YHConsortInfo.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
041B52D82B5F8B07007EBCEB
/* YHConsortInfo.swift */
;
};
041B52DB2B5FDF8E007EBCEB
/* YHFamilyInitialInfo.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
041B52DA2B5FDF8E007EBCEB
/* YHFamilyInitialInfo.swift */
;
};
041B52DB2B5FDF8E007EBCEB
/* YHFamilyInitialInfo.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
041B52DA2B5FDF8E007EBCEB
/* YHFamilyInitialInfo.swift */
;
};
041B52DD2B60A889007EBCEB
/* YHTest.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
041B52DC2B60A889007EBCEB
/* YHTest.swift */
;
};
041B52DD2B60A889007EBCEB
/* YHTest.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
041B52DC2B60A889007EBCEB
/* YHTest.swift */
;
};
...
@@ -24,6 +24,7 @@
...
@@ -24,6 +24,7 @@
042FBBBD2B63519C00F9DE23
/* YHFormItemSelectSheetCell.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
042FBBBC2B63519C00F9DE23
/* YHFormItemSelectSheetCell.swift */
;
};
042FBBBD2B63519C00F9DE23
/* YHFormItemSelectSheetCell.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
042FBBBC2B63519C00F9DE23
/* YHFormItemSelectSheetCell.swift */
;
};
042FBBBF2B639F0300F9DE23
/* YHSpouseBasicInfoVC.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
042FBBBE2B639F0300F9DE23
/* YHSpouseBasicInfoVC.swift */
;
};
042FBBBF2B639F0300F9DE23
/* YHSpouseBasicInfoVC.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
042FBBBE2B639F0300F9DE23
/* YHSpouseBasicInfoVC.swift */
;
};
042FBBC12B63B21700F9DE23
/* YHFormItemDegreeInfoCell.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
042FBBC02B63B21700F9DE23
/* YHFormItemDegreeInfoCell.swift */
;
};
042FBBC12B63B21700F9DE23
/* YHFormItemDegreeInfoCell.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
042FBBC02B63B21700F9DE23
/* YHFormItemDegreeInfoCell.swift */
;
};
042FBBC32B63DA4C00F9DE23
/* YHParentViewController.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
042FBBC22B63DA4C00F9DE23
/* YHParentViewController.swift */
;
};
0468D4202B49320900CFB916
/* YHVerificationCodeLoginController.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
0468D41F2B49320900CFB916
/* YHVerificationCodeLoginController.swift */
;
};
0468D4202B49320900CFB916
/* YHVerificationCodeLoginController.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
0468D41F2B49320900CFB916
/* YHVerificationCodeLoginController.swift */
;
};
0468D4222B493A5E00CFB916
/* YHPhoneMessageView.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
0468D4212B493A5E00CFB916
/* YHPhoneMessageView.swift */
;
};
0468D4222B493A5E00CFB916
/* YHPhoneMessageView.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
0468D4212B493A5E00CFB916
/* YHPhoneMessageView.swift */
;
};
0468D4242B494BEA00CFB916
/* YHCodeResultViewController.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
0468D4232B494BEA00CFB916
/* YHCodeResultViewController.swift */
;
};
0468D4242B494BEA00CFB916
/* YHCodeResultViewController.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
0468D4232B494BEA00CFB916
/* YHCodeResultViewController.swift */
;
};
...
@@ -174,7 +175,7 @@
...
@@ -174,7 +175,7 @@
041B52922B5E6CBA007EBCEB
/* YHFormItemTitleCell.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHFormItemTitleCell.swift
;
sourceTree
=
"<group>"
;
};
041B52922B5E6CBA007EBCEB
/* YHFormItemTitleCell.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHFormItemTitleCell.swift
;
sourceTree
=
"<group>"
;
};
041B52942B5E7037007EBCEB
/* YHFormItemAddCell.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHFormItemAddCell.swift
;
sourceTree
=
"<group>"
;
};
041B52942B5E7037007EBCEB
/* YHFormItemAddCell.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHFormItemAddCell.swift
;
sourceTree
=
"<group>"
;
};
041B52972B5E8EA0007EBCEB
/* YHFamilyMemberFormVC.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHFamilyMemberFormVC.swift
;
sourceTree
=
"<group>"
;
};
041B52972B5E8EA0007EBCEB
/* YHFamilyMemberFormVC.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHFamilyMemberFormVC.swift
;
sourceTree
=
"<group>"
;
};
041B52D52B5F899E007EBCEB
/* YHSpouse
FormVC.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHSpouseForm
VC.swift
;
sourceTree
=
"<group>"
;
};
041B52D52B5F899E007EBCEB
/* YHSpouse
InitialInfoVC.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHSpouseInitialInfo
VC.swift
;
sourceTree
=
"<group>"
;
};
041B52D82B5F8B07007EBCEB
/* YHConsortInfo.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHConsortInfo.swift
;
sourceTree
=
"<group>"
;
};
041B52D82B5F8B07007EBCEB
/* YHConsortInfo.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHConsortInfo.swift
;
sourceTree
=
"<group>"
;
};
041B52DA2B5FDF8E007EBCEB
/* YHFamilyInitialInfo.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHFamilyInitialInfo.swift
;
sourceTree
=
"<group>"
;
};
041B52DA2B5FDF8E007EBCEB
/* YHFamilyInitialInfo.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHFamilyInitialInfo.swift
;
sourceTree
=
"<group>"
;
};
041B52DC2B60A889007EBCEB
/* YHTest.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHTest.swift
;
sourceTree
=
"<group>"
;
};
041B52DC2B60A889007EBCEB
/* YHTest.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHTest.swift
;
sourceTree
=
"<group>"
;
};
...
@@ -183,6 +184,7 @@
...
@@ -183,6 +184,7 @@
042FBBBC2B63519C00F9DE23
/* YHFormItemSelectSheetCell.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHFormItemSelectSheetCell.swift
;
sourceTree
=
"<group>"
;
};
042FBBBC2B63519C00F9DE23
/* YHFormItemSelectSheetCell.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHFormItemSelectSheetCell.swift
;
sourceTree
=
"<group>"
;
};
042FBBBE2B639F0300F9DE23
/* YHSpouseBasicInfoVC.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHSpouseBasicInfoVC.swift
;
sourceTree
=
"<group>"
;
};
042FBBBE2B639F0300F9DE23
/* YHSpouseBasicInfoVC.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHSpouseBasicInfoVC.swift
;
sourceTree
=
"<group>"
;
};
042FBBC02B63B21700F9DE23
/* YHFormItemDegreeInfoCell.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHFormItemDegreeInfoCell.swift
;
sourceTree
=
"<group>"
;
};
042FBBC02B63B21700F9DE23
/* YHFormItemDegreeInfoCell.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHFormItemDegreeInfoCell.swift
;
sourceTree
=
"<group>"
;
};
042FBBC22B63DA4C00F9DE23
/* YHParentViewController.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHParentViewController.swift
;
sourceTree
=
"<group>"
;
};
0468D41F2B49320900CFB916
/* YHVerificationCodeLoginController.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHVerificationCodeLoginController.swift
;
sourceTree
=
"<group>"
;
};
0468D41F2B49320900CFB916
/* YHVerificationCodeLoginController.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHVerificationCodeLoginController.swift
;
sourceTree
=
"<group>"
;
};
0468D4212B493A5E00CFB916
/* YHPhoneMessageView.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHPhoneMessageView.swift
;
sourceTree
=
"<group>"
;
};
0468D4212B493A5E00CFB916
/* YHPhoneMessageView.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHPhoneMessageView.swift
;
sourceTree
=
"<group>"
;
};
0468D4232B494BEA00CFB916
/* YHCodeResultViewController.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHCodeResultViewController.swift
;
sourceTree
=
"<group>"
;
};
0468D4232B494BEA00CFB916
/* YHCodeResultViewController.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHCodeResultViewController.swift
;
sourceTree
=
"<group>"
;
};
...
@@ -366,9 +368,10 @@
...
@@ -366,9 +368,10 @@
isa
=
PBXGroup
;
isa
=
PBXGroup
;
children
=
(
children
=
(
041B52972B5E8EA0007EBCEB
/* YHFamilyMemberFormVC.swift */
,
041B52972B5E8EA0007EBCEB
/* YHFamilyMemberFormVC.swift */
,
041B52D52B5F899E007EBCEB
/* YHSpouse
Form
VC.swift */
,
041B52D52B5F899E007EBCEB
/* YHSpouse
InitialInfo
VC.swift */
,
042FBBBA2B62806D00F9DE23
/* YHCertificateViewController.swift */
,
042FBBBA2B62806D00F9DE23
/* YHCertificateViewController.swift */
,
042FBBBE2B639F0300F9DE23
/* YHSpouseBasicInfoVC.swift */
,
042FBBBE2B639F0300F9DE23
/* YHSpouseBasicInfoVC.swift */
,
042FBBC22B63DA4C00F9DE23
/* YHParentViewController.swift */
,
);
);
path
=
C
;
path
=
C
;
sourceTree
=
"<group>"
;
sourceTree
=
"<group>"
;
...
@@ -1128,6 +1131,7 @@
...
@@ -1128,6 +1131,7 @@
A5C5B3102B57677300A7C5D1
/* YHGestureTableView.swift in Sources */
,
A5C5B3102B57677300A7C5D1
/* YHGestureTableView.swift in Sources */
,
A5ACE9312B4564F7002C94D2
/* YHPersonalCenterCell.swift in Sources */
,
A5ACE9312B4564F7002C94D2
/* YHPersonalCenterCell.swift in Sources */
,
A5ACE9532B4564F7002C94D2
/* YHBaseViewController.swift in Sources */
,
A5ACE9532B4564F7002C94D2
/* YHBaseViewController.swift in Sources */
,
042FBBC32B63DA4C00F9DE23
/* YHParentViewController.swift in Sources */
,
A5ACE9392B4564F7002C94D2
/* UIDevice+Extension.swift in Sources */
,
A5ACE9392B4564F7002C94D2
/* UIDevice+Extension.swift in Sources */
,
041B52912B5E67F3007EBCEB
/* YHFormItemEnterDetailCell.swift in Sources */
,
041B52912B5E67F3007EBCEB
/* YHFormItemEnterDetailCell.swift in Sources */
,
A5ACE9422B4564F7002C94D2
/* AppDelegate+Extension.swift in Sources */
,
A5ACE9422B4564F7002C94D2
/* AppDelegate+Extension.swift in Sources */
,
...
@@ -1135,7 +1139,7 @@
...
@@ -1135,7 +1139,7 @@
A510441A2B495DD0006B60BB
/* UIView+Extension.swift in Sources */
,
A510441A2B495DD0006B60BB
/* UIView+Extension.swift in Sources */
,
A5ACE93E2B4564F7002C94D2
/* UIImage+Extension.swift in Sources */
,
A5ACE93E2B4564F7002C94D2
/* UIImage+Extension.swift in Sources */
,
A5ACE94C2B4564F7002C94D2
/* BsHUDErrorView.swift in Sources */
,
A5ACE94C2B4564F7002C94D2
/* BsHUDErrorView.swift in Sources */
,
041B52D62B5F899E007EBCEB
/* YHSpouse
Form
VC.swift in Sources */
,
041B52D62B5F899E007EBCEB
/* YHSpouse
InitialInfo
VC.swift in Sources */
,
A5D6AB1B2B46A1CC001C10A5
/* YHHomeModel.swift in Sources */
,
A5D6AB1B2B46A1CC001C10A5
/* YHHomeModel.swift in Sources */
,
A5D6AB1D2B46AAFB001C10A5
/* YHHomePageViewModel.swift in Sources */
,
A5D6AB1D2B46AAFB001C10A5
/* YHHomePageViewModel.swift in Sources */
,
A5ACE9552B4564F7002C94D2
/* YHTabBarViewController.swift in Sources */
,
A5ACE9552B4564F7002C94D2
/* YHTabBarViewController.swift in Sources */
,
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/ServiceProcess(流程)/FamilyMember/C/YHFamilyMemberFormVC.swift
View file @
3d761fcc
...
@@ -629,7 +629,7 @@ extension YHFamilyMemberFormVC : UITableViewDelegate, UITableViewDataSource {
...
@@ -629,7 +629,7 @@ extension YHFamilyMemberFormVC : UITableViewDelegate, UITableViewDataSource {
func
tableView
(
_
tableView
:
UITableView
,
didSelectRowAt
indexPath
:
IndexPath
)
{
func
tableView
(
_
tableView
:
UITableView
,
didSelectRowAt
indexPath
:
IndexPath
)
{
if
let
spouse
=
familyMemberInfo
?
.
spouse
{
if
let
spouse
=
familyMemberInfo
?
.
spouse
{
let
vc
=
YHSpouse
Form
VC
()
let
vc
=
YHSpouse
InitialInfo
VC
()
vc
.
spouse
=
spouse
vc
.
spouse
=
spouse
self
.
navigationController
?
.
pushViewController
(
vc
)
self
.
navigationController
?
.
pushViewController
(
vc
)
}
}
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/ServiceProcess(流程)/FamilyMember/C/YHParentViewController.swift
0 → 100644
View file @
3d761fcc
//
// YHParentViewController.swift
// galaxy
//
// Created by edy on 2024/1/26.
// Copyright © 2024 https://www.galaxy-immi.com. All rights reserved.
//
import
UIKit
class
YHParentViewController
:
YHBaseViewController
{
var
parentInfo
:
YHParent
?
var
items
:[[
YHFormItemProtocol
]]
=
[[
YHFormItemProtocol
]]()
lazy
var
tableView
:
UITableView
=
{
let
tableView
=
UITableView
(
frame
:
.
zero
,
style
:
.
plain
)
if
#available(iOS 11.0, *)
{
tableView
.
contentInsetAdjustmentBehavior
=
.
never
}
tableView
.
showsVerticalScrollIndicator
=
false
tableView
.
backgroundColor
=
.
clear
tableView
.
separatorStyle
=
.
none
tableView
.
delegate
=
self
tableView
.
dataSource
=
self
tableView
.
register
(
UITableViewCell
.
self
,
forCellReuseIdentifier
:
"UITableViewCell"
)
tableView
.
register
(
YHFormItemDoubleChoiceCell
.
self
,
forCellReuseIdentifier
:
YHFormItemDoubleChoiceCell
.
cellReuseIdentifier
)
tableView
.
register
(
YHFormItemInputTextCell
.
self
,
forCellReuseIdentifier
:
YHFormItemInputTextCell
.
cellReuseIdentifier
)
tableView
.
register
(
YHFormItemEnterDetailCell
.
self
,
forCellReuseIdentifier
:
YHFormItemEnterDetailCell
.
cellReuseIdentifier
)
tableView
.
register
(
YHFormItemTitleCell
.
self
,
forCellReuseIdentifier
:
YHFormItemTitleCell
.
cellReuseIdentifier
)
tableView
.
register
(
YHFormItemAddCell
.
self
,
forCellReuseIdentifier
:
YHFormItemAddCell
.
cellReuseIdentifier
)
tableView
.
register
(
YHFormItemSelectSheetCell
.
self
,
forCellReuseIdentifier
:
YHFormItemSelectSheetCell
.
cellReuseIdentifier
)
tableView
.
register
(
YHFormItemDegreeInfoCell
.
self
,
forCellReuseIdentifier
:
YHFormItemDegreeInfoCell
.
cellReuseIdentifier
)
return
tableView
}()
override
func
viewDidLoad
()
{
super
.
viewDidLoad
()
gk_navTitle
=
"父母信息填写"
.
local
createUI
()
loadBasicInfo
()
}
func
createUI
()
{
view
.
addSubview
(
tableView
);
tableView
.
snp
.
makeConstraints
{
make
in
make
.
top
.
equalToSuperview
()
.
offset
(
k_Height_NavigationtBarAndStatuBar
)
make
.
bottom
.
equalToSuperview
()
.
offset
(
-
100
)
make
.
left
.
equalToSuperview
()
.
offset
(
16
)
make
.
right
.
equalToSuperview
()
.
offset
(
-
16
)
}
}
func
loadBasicInfo
()
{
let
title0
=
YHFormTitleItem
(
type
:
.
spouseInfo
)
let
item01
=
YHFormDetailItem
(
type
:
.
everName
)
let
item02
=
YHFormDetailItem
(
type
:
.
befourMarryFirstName
)
let
item03
=
YHFormDetailItem
(
type
:
.
birthday
)
let
item04
=
YHFormDetailItem
(
type
:
.
birthNation
)
let
item05
=
YHFormDetailItem
(
type
:
.
birthCity
)
let
arr0
:[
YHFormItemProtocol
]
=
[
title0
,
item01
,
item02
,
item03
,
item04
,
item05
]
let
title1
=
YHFormTitleItem
(
type
:
.
occupationInfo
)
let
item10
=
YHFormDetailItem
(
type
:
.
occupation
)
let
item11
=
YHFormDetailItem
(
type
:
.
occupationName
)
let
arr1
:[
YHFormItemProtocol
]
=
[
title1
,
item10
,
item11
]
let
title2
=
YHFormTitleItem
(
type
:
.
degreeInfo
)
let
item20
=
YHFormDetailItem
(
type
:
.
ownDegree
)
let
item21
=
YHFormDetailItem
(
type
:
.
degreeDetailInfo
)
let
item22
=
YHFormDetailItem
(
type
:
.
degreeDetailInfo
)
let
item23
=
YHFormAddItem
(
type
:
.
addDegree
)
let
arr2
:[
YHFormItemProtocol
]
=
[
title2
,
item20
,
item21
,
item22
,
item23
]
let
title3
=
YHFormTitleItem
(
type
:
.
hkIdentityCardInfo
)
let
item30
=
YHFormDetailItem
(
type
:
.
isHaveHkIdentityCard
)
let
item31
=
YHFormDetailItem
(
type
:
.
hkIdentityCardNumber
)
let
arr3
:[
YHFormItemProtocol
]
=
[
title3
,
item30
,
item31
]
items
.
append
(
contentsOf
:
[
arr0
,
arr1
,
arr2
,
arr3
])
tableView
.
reloadData
()
}
func
getCellType
(
_
item
:
Any
)
->
HKFormItemCellType
{
if
item
is
YHFormTitleItem
{
return
.
title
}
if
item
is
YHFormAddItem
{
return
.
addItem
}
if
item
is
YHFormDetailItem
{
let
detailItem
=
item
as!
YHFormDetailItem
if
detailItem
.
type
==
.
spouseName
||
detailItem
.
type
==
.
everName
||
detailItem
.
type
==
.
befourMarryFirstName
||
detailItem
.
type
==
.
occupationName
||
detailItem
.
type
==
.
hkIdentityCardNumber
{
return
.
inputText
}
if
detailItem
.
type
==
.
birthday
||
detailItem
.
type
==
.
birthCity
||
detailItem
.
type
==
.
occupation
||
detailItem
.
type
==
.
stayHKDate
||
detailItem
.
type
==
.
roleInHK
||
detailItem
.
type
==
.
ownDegree
{
return
.
selectSheet
}
if
detailItem
.
type
==
.
birthNation
||
detailItem
.
type
==
.
isNowInHK
||
detailItem
.
type
==
.
isHaveHkIdentityCard
{
return
.
twoChoice
}
if
detailItem
.
type
==
.
degreeDetailInfo
{
return
.
degreeDetailInfo
}
}
return
.
defaultType
}
}
extension
YHParentViewController
:
UITableViewDelegate
,
UITableViewDataSource
{
func
numberOfSections
(
in
tableView
:
UITableView
)
->
Int
{
return
items
.
count
}
func
tableView
(
_
tableView
:
UITableView
,
numberOfRowsInSection
section
:
Int
)
->
Int
{
if
section
>=
items
.
count
{
return
0
}
let
arr
=
items
[
section
]
return
arr
.
count
}
func
tableView
(
_
tableView
:
UITableView
,
cellForRowAt
indexPath
:
IndexPath
)
->
UITableViewCell
{
if
indexPath
.
section
>=
items
.
count
{
return
createDefaultCell
(
indexPath
)
}
let
arr
:[
YHFormItemProtocol
]
=
items
[
indexPath
.
section
]
if
indexPath
.
row
>=
arr
.
count
{
return
createDefaultCell
(
indexPath
)
}
let
item
:
YHFormItemProtocol
=
arr
[
indexPath
.
row
]
let
cellType
=
getCellType
(
item
)
if
cellType
==
.
title
{
// 标题
let
cell
=
tableView
.
dequeueReusableCell
(
withIdentifier
:
YHFormItemTitleCell
.
cellReuseIdentifier
,
for
:
indexPath
)
as!
YHFormItemTitleCell
cell
.
titleLabel
.
text
=
item
.
getTitle
()
return
cell
}
if
cellType
==
.
inputText
{
// 输入文字cell
let
cell
=
tableView
.
dequeueReusableCell
(
withIdentifier
:
YHFormItemInputTextCell
.
cellReuseIdentifier
,
for
:
indexPath
)
as!
YHFormItemInputTextCell
cell
.
titleLabel
.
text
=
item
.
getTitle
()
return
cell
}
if
cellType
==
.
selectSheet
{
// 点击选择列表cell
let
cell
=
tableView
.
dequeueReusableCell
(
withIdentifier
:
YHFormItemSelectSheetCell
.
cellReuseIdentifier
,
for
:
indexPath
)
as!
YHFormItemSelectSheetCell
cell
.
title
=
item
.
getTitle
()
return
cell
}
if
cellType
==
.
twoChoice
{
// 双项选择cell
let
cell
=
tableView
.
dequeueReusableCell
(
withIdentifier
:
YHFormItemDoubleChoiceCell
.
cellReuseIdentifier
,
for
:
indexPath
)
as!
YHFormItemDoubleChoiceCell
cell
.
title
=
item
.
getTitle
()
let
answers
=
[
YHFormChoiceItem
(
title
:
"是"
.
local
,
isSelect
:
true
),
YHFormChoiceItem
(
title
:
"否"
.
local
,
isSelect
:
false
)]
cell
.
answerArr
=
answers
return
cell
}
if
cellType
==
.
addItem
{
// 新增item cell
let
cell
=
tableView
.
dequeueReusableCell
(
withIdentifier
:
YHFormItemAddCell
.
cellReuseIdentifier
,
for
:
indexPath
)
as!
YHFormItemAddCell
cell
.
title
=
item
.
getTitle
()
return
cell
}
if
cellType
==
.
degreeDetailInfo
{
// 学位cell
let
cell
=
tableView
.
dequeueReusableCell
(
withIdentifier
:
YHFormItemDegreeInfoCell
.
cellReuseIdentifier
,
for
:
indexPath
)
as!
YHFormItemDegreeInfoCell
cell
.
title
=
item
.
getTitle
()
return
cell
}
return
createDefaultCell
(
indexPath
)
}
func
tableView
(
_
tableView
:
UITableView
,
willDisplay
cell
:
UITableViewCell
,
forRowAt
indexPath
:
IndexPath
)
{
if
indexPath
.
section
>=
items
.
count
{
return
}
let
arr
:[
YHFormItemProtocol
]
=
items
[
indexPath
.
section
]
if
indexPath
.
row
>=
arr
.
count
{
return
}
createCorner
(
cell
:
cell
,
arr
:
arr
,
indexPath
:
indexPath
)
}
func
createDefaultCell
(
_
indexPath
:
IndexPath
)
->
UITableViewCell
{
let
cell
=
tableView
.
dequeueReusableCell
(
withIdentifier
:
"UITableViewCell"
,
for
:
indexPath
)
return
cell
}
func
tableView
(
_
tableView
:
UITableView
,
heightForRowAt
indexPath
:
IndexPath
)
->
CGFloat
{
if
indexPath
.
section
>=
items
.
count
{
return
0.0
}
let
arr
:[
YHFormItemProtocol
]
=
items
[
indexPath
.
section
]
if
indexPath
.
row
>=
arr
.
count
{
return
0.0
}
let
item
=
arr
[
indexPath
.
row
]
if
item
is
YHFormTitleItem
{
// 标题
return
52.0
}
if
item
is
YHFormAddItem
{
return
70.0
}
if
item
is
YHFormDetailItem
{
return
UITableView
.
automaticDimension
}
return
52.0
}
func
tableView
(
_
tableView
:
UITableView
,
viewForFooterInSection
section
:
Int
)
->
UIView
?
{
return
UIView
()
}
private
func
tableView
(
_
tableView
:
UITableView
,
viewForFooterInSection
section
:
Int
)
->
CGFloat
{
return
14.0
}
func
tableView
(
_
tableView
:
UITableView
,
didSelectRowAt
indexPath
:
IndexPath
)
{
}
func
createCorner
(
cell
:
UITableViewCell
,
arr
:
Array
<
Any
>
,
indexPath
:
IndexPath
)
{
// 复用时需清理
cell
.
layer
.
mask
=
nil
// 设置每块section圆角
if
(
indexPath
.
row
==
0
)
{
let
corner
=
UIRectCorner
(
rawValue
:
UIRectCorner
.
topLeft
.
rawValue
|
UIRectCorner
.
topRight
.
rawValue
)
cell
.
createCorner
(
CGSizeMake
(
12.0
,
12.0
),
corner
)
}
else
if
(
indexPath
.
row
==
arr
.
count
-
1
)
{
let
corner
=
UIRectCorner
(
rawValue
:
UIRectCorner
.
bottomLeft
.
rawValue
|
UIRectCorner
.
bottomRight
.
rawValue
)
cell
.
createCorner
(
CGSizeMake
(
12.0
,
12.0
),
corner
)
}
else
{
cell
.
layer
.
mask
=
nil
}
}
}
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/ServiceProcess(流程)/FamilyMember/C/YHSpouse
Form
VC.swift
→
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/ServiceProcess(流程)/FamilyMember/C/YHSpouse
InitialInfo
VC.swift
View file @
3d761fcc
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
import
UIKit
import
UIKit
class
YHSpouse
Form
VC
:
YHBaseViewController
{
class
YHSpouse
InitialInfo
VC
:
YHBaseViewController
{
var
spouse
:
YHSpouse
?
var
spouse
:
YHSpouse
?
...
@@ -157,7 +157,7 @@ class YHSpouseFormVC: YHBaseViewController {
...
@@ -157,7 +157,7 @@ class YHSpouseFormVC: YHBaseViewController {
}
}
extension
YHSpouse
Form
VC
:
UITableViewDelegate
,
UITableViewDataSource
{
extension
YHSpouse
InitialInfo
VC
:
UITableViewDelegate
,
UITableViewDataSource
{
func
numberOfSections
(
in
tableView
:
UITableView
)
->
Int
{
func
numberOfSections
(
in
tableView
:
UITableView
)
->
Int
{
return
items
.
count
return
items
.
count
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/ServiceProcess(流程)/FamilyMember/M/YHFamilyInitialInfo.swift
View file @
3d761fcc
...
@@ -44,6 +44,11 @@ enum YHFormTitleItemType:Int {
...
@@ -44,6 +44,11 @@ enum YHFormTitleItemType:Int {
// 香港身份证
// 香港身份证
case
hkIdentityCardInfo
=
15
case
hkIdentityCardInfo
=
15
// 父亲信息
case
fatherInfo
=
16
// 父亲信息
case
motherInfo
=
17
}
}
// 表单添加条目类型
// 表单添加条目类型
...
@@ -107,6 +112,15 @@ enum YHFormDetailItemType:Int {
...
@@ -107,6 +112,15 @@ enum YHFormDetailItemType:Int {
// 学位信息X
// 学位信息X
case
degreeDetailInfo
=
27
case
degreeDetailInfo
=
27
// 父亲姓名
case
fatherName
=
28
// 母亲姓名
case
motherName
=
29
// 婚姻状况
case
marriageState
=
30
// 现居住国家/地区
case
liveNation
=
31
}
}
//添加item
//添加item
...
@@ -176,6 +190,10 @@ class YHFormTitleItem : YHFormItemProtocol {
...
@@ -176,6 +190,10 @@ class YHFormTitleItem : YHFormItemProtocol {
return
"在港信息"
.
local
return
"在港信息"
.
local
case
.
hkIdentityCardInfo
:
case
.
hkIdentityCardInfo
:
return
"香港身份证"
.
local
return
"香港身份证"
.
local
case
.
fatherInfo
:
return
"父亲信息"
.
local
case
.
motherInfo
:
return
"母亲信息"
.
local
}
}
}
}
...
@@ -212,6 +230,10 @@ class YHFormTitleItem : YHFormItemProtocol {
...
@@ -212,6 +230,10 @@ class YHFormTitleItem : YHFormItemProtocol {
return
""
.
local
return
""
.
local
case
.
hkIdentityCardInfo
:
case
.
hkIdentityCardInfo
:
return
""
.
local
return
""
.
local
case
.
fatherInfo
:
return
""
.
local
case
.
motherInfo
:
return
""
.
local
}
}
...
@@ -323,6 +345,14 @@ class YHFormDetailItem : YHFormItemProtocol {
...
@@ -323,6 +345,14 @@ class YHFormDetailItem : YHFormItemProtocol {
return
"香港身份证号码"
.
local
return
"香港身份证号码"
.
local
case
.
degreeDetailInfo
:
case
.
degreeDetailInfo
:
return
"学位信息X"
.
local
return
"学位信息X"
.
local
case
.
fatherName
:
return
"父亲姓名"
.
local
case
.
motherName
:
return
"母亲姓名"
.
local
case
.
marriageState
:
return
"婚姻状况"
.
local
case
.
liveNation
:
return
"现居住国家/地区"
.
local
}
}
}
}
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/ServiceProcess(流程)/FamilyMember/View/YHFormItemDegreeInfoCell.swift
View file @
3d761fcc
...
@@ -47,7 +47,7 @@ class YHFormItemDegreeInfoCell: UITableViewCell {
...
@@ -47,7 +47,7 @@ class YHFormItemDegreeInfoCell: UITableViewCell {
btn
.
titleLabel
?
.
font
=
UIFont
.
PFSCR
(
ofSize
:
14
)
btn
.
titleLabel
?
.
font
=
UIFont
.
PFSCR
(
ofSize
:
14
)
btn
.
setTitleColor
(
UIColor
(
hex
:
0xF81D22
),
for
:
.
normal
)
btn
.
setTitleColor
(
UIColor
(
hex
:
0xF81D22
),
for
:
.
normal
)
btn
.
addTarget
(
self
,
action
:
#selector(
didClickDeleteBtn(btn:)
)
,
for
:
.
touchUpInside
)
btn
.
addTarget
(
self
,
action
:
#selector(
didClickDeleteBtn(btn:)
)
,
for
:
.
touchUpInside
)
btn
.
isHidden
=
true
//
btn.isHidden = true
return
btn
return
btn
}()
}()
...
@@ -72,6 +72,8 @@ class YHFormItemDegreeInfoCell: UITableViewCell {
...
@@ -72,6 +72,8 @@ class YHFormItemDegreeInfoCell: UITableViewCell {
func
setupUI
()
{
func
setupUI
()
{
self
.
selectionStyle
=
.
none
contentView
.
addSubview
(
titleLabel
)
contentView
.
addSubview
(
titleLabel
)
contentView
.
addSubview
(
deleteButton
)
contentView
.
addSubview
(
deleteButton
)
contentView
.
addSubview
(
degreeView
)
contentView
.
addSubview
(
degreeView
)
...
...
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