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
76659233
Commit
76659233
authored
Oct 18, 2024
by
Steven杜宇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
// 信息确认
parent
86670517
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
69 additions
and
46 deletions
+69
-46
YHResignInfoConfirmModifyViewController.swift
...m(续签信息确认)/C/YHResignInfoConfirmModifyViewController.swift
+6
-0
YHResignInfoConfirmInfoListModel.swift
...oConfirm(续签信息确认)/M/YHResignInfoConfirmInfoListModel.swift
+1
-1
YHResignFamilyInfoListCell.swift
...ignInfoConfirm(续签信息确认)/V/YHResignFamilyInfoListCell.swift
+32
-17
YHResignInfoItemView.swift
...签)/ResignInfoConfirm(续签信息确认)/V/YHResignInfoItemView.swift
+30
-14
YHSheetPickerView.swift
...amilyMember(家庭成员信息表)/V/PickerView/YHSheetPickerView.swift
+0
-11
YHSheetPickerViewType.swift
...yMember(家庭成员信息表)/V/PickerView/YHSheetPickerViewType.swift
+0
-3
No files found.
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/Resign(续签)/ResignInfoConfirm(续签信息确认)/C/YHResignInfoConfirmModifyViewController.swift
View file @
76659233
...
@@ -198,6 +198,11 @@ extension YHResignInfoConfirmModifyViewController: UITableViewDelegate, UITableV
...
@@ -198,6 +198,11 @@ extension YHResignInfoConfirmModifyViewController: UITableViewDelegate, UITableV
cell
.
titleLabel
.
attributed
.
text
=
title
cell
.
titleLabel
.
attributed
.
text
=
title
cell
.
modifyBtn
.
isHidden
=
false
cell
.
modifyBtn
.
isHidden
=
false
cell
.
isEditState
=
self
.
isInfoEditing
cell
.
isEditState
=
self
.
isInfoEditing
cell
.
updateList
=
{
[
weak
self
]
in
guard
let
self
=
self
else
{
return
}
self
.
updateData
()
}
// 更改编辑状态
// 更改编辑状态
cell
.
editBlock
=
{
cell
.
editBlock
=
{
[
weak
self
]
isEdit
in
[
weak
self
]
isEdit
in
...
@@ -227,6 +232,7 @@ extension YHResignInfoConfirmModifyViewController: UITableViewDelegate, UITableV
...
@@ -227,6 +232,7 @@ extension YHResignInfoConfirmModifyViewController: UITableViewDelegate, UITableV
let
title
:
ASAttributedString
=
.
init
(
"递交证件信息"
,
.
font
(
UIFont
.
PFSC_M
(
ofSize
:
17
)),
.
foreground
(
UIColor
.
mainTextColor
))
let
title
:
ASAttributedString
=
.
init
(
"递交证件信息"
,
.
font
(
UIFont
.
PFSC_M
(
ofSize
:
17
)),
.
foreground
(
UIColor
.
mainTextColor
))
cell
.
titleLabel
.
attributed
.
text
=
title
cell
.
titleLabel
.
attributed
.
text
=
title
cell
.
modifyBtn
.
isHidden
=
true
cell
.
modifyBtn
.
isHidden
=
true
cell
.
updateList
=
nil
// 点击有效期不足去处理
// 点击有效期不足去处理
cell
.
clickUnvalidTime
=
{
cell
.
clickUnvalidTime
=
{
[
weak
self
]
in
[
weak
self
]
in
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/Resign(续签)/ResignInfoConfirm(续签信息确认)/M/YHResignInfoConfirmInfoListModel.swift
View file @
76659233
...
@@ -155,7 +155,7 @@ class YHResignInfoConfirmFamilyModel: SmartCodable {
...
@@ -155,7 +155,7 @@ class YHResignInfoConfirmFamilyModel: SmartCodable {
}
}
func
getMarriageStatus
(
_
marrage
:
String
)
->
String
{
func
getMarriageStatus
(
_
marrage
:
String
)
->
String
{
let
arr
=
YHSheetPickerView
.
dataSource
[
.
marriage
2
]
!
let
arr
=
YHSheetPickerView
.
dataSource
[
.
marriage
1
]
!
for
item
in
arr
{
for
item
in
arr
{
if
item
.
index
==
Int
(
marrage
)
{
if
item
.
index
==
Int
(
marrage
)
{
return
item
.
title
return
item
.
title
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/Resign(续签)/ResignInfoConfirm(续签信息确认)/V/YHResignFamilyInfoListCell.swift
View file @
76659233
...
@@ -147,7 +147,8 @@ class YHResignFamilyInfoListCell: UITableViewCell {
...
@@ -147,7 +147,8 @@ class YHResignFamilyInfoListCell: UITableViewCell {
var
selectBirthNation
:((
Bool
)
->
())?
var
selectBirthNation
:((
Bool
)
->
())?
// 姓名更改
// 姓名更改
var
updateName
:((
String
)
->
())?
var
updateName
:((
String
)
->
())?
var
updateList
:(()
->
())?
var
items
:
[
YHResignFamilyInfoItem
]
=
[]
var
items
:
[
YHResignFamilyInfoItem
]
=
[]
lazy
var
whiteView
:
UIView
=
{
lazy
var
whiteView
:
UIView
=
{
...
@@ -212,6 +213,7 @@ class YHResignFamilyInfoListCell: UITableViewCell {
...
@@ -212,6 +213,7 @@ class YHResignFamilyInfoListCell: UITableViewCell {
make
.
top
.
equalTo
(
18
)
make
.
top
.
equalTo
(
18
)
make
.
left
.
equalTo
(
18
)
make
.
left
.
equalTo
(
18
)
make
.
right
.
equalTo
(
-
18
)
make
.
right
.
equalTo
(
-
18
)
make
.
height
.
equalTo
(
24.0
)
}
}
modifyBtn
.
snp
.
makeConstraints
{
make
in
modifyBtn
.
snp
.
makeConstraints
{
make
in
...
@@ -242,24 +244,37 @@ class YHResignFamilyInfoListCell: UITableViewCell {
...
@@ -242,24 +244,37 @@ class YHResignFamilyInfoListCell: UITableViewCell {
if
let
itemView
=
itemView
as?
YHResignInfoItemView
{
if
let
itemView
=
itemView
as?
YHResignInfoItemView
{
itemsContentView
.
addSubview
(
itemView
)
itemsContentView
.
addSubview
(
itemView
)
itemView
.
updateItem
(
item
,
familyInfo
:
familyInfo
)
itemView
.
updateItem
(
item
,
familyInfo
:
familyInfo
)
itemView
.
update
Name
=
{
itemView
.
update
List
=
{
[
weak
self
]
text
in
[
weak
self
]
in
guard
let
self
=
self
else
{
return
}
guard
let
self
=
self
else
{
return
}
self
.
updateList
?()
for
subView
in
self
.
itemsContentView
.
subviews
{
if
subView
is
YHResignInfoItemView
{
let
targetView
=
subView
as!
YHResignInfoItemView
if
targetView
.
item
.
id
==
.
firstName
{
targetView
.
item
.
value
=
self
.
familyInfo
.
familyName
targetView
.
updateItem
(
targetView
.
item
,
familyInfo
:
self
.
familyInfo
)
}
if
targetView
.
item
.
id
==
.
lastName
{
targetView
.
item
.
value
=
self
.
familyInfo
.
givenName
targetView
.
updateItem
(
targetView
.
item
,
familyInfo
:
self
.
familyInfo
)
}
}
}
}
}
// itemView.updateName = {
// [weak self] text in
// guard let self = self else { return }
// for subView in self.itemsContentView.subviews {
// if subView is YHResignInfoItemView {
// let targetView = subView as! YHResignInfoItemView
// if targetView.item.id == .firstName {
// targetView.item.value = self.familyInfo.familyName
// }
// if targetView.item.id == .lastName {
// targetView.item.value = self.familyInfo.givenName
// targetView.updateItem(targetView.item, familyInfo: self.familyInfo)
// }
// targetView.updateItem(targetView.item, familyInfo: self.familyInfo)
// }
// }
// self.itemsContentView.snp.updateConstraints { make in
// make.top.equalTo(self.titleLabel.snp.bottom).offset(12)
// make.left.equalTo(18)
// make.right.equalTo(-18)
// make.bottom.equalTo(0)
// }
// self.setNeedsLayout()
// self.layoutIfNeeded()
//
// }
}
else
if
let
itemView
=
itemView
as?
YHResignInfoValidTimeItemView
{
}
else
if
let
itemView
=
itemView
as?
YHResignInfoValidTimeItemView
{
itemsContentView
.
addSubview
(
itemView
)
itemsContentView
.
addSubview
(
itemView
)
itemView
.
updateItem
(
item
,
familyInfo
:
familyInfo
)
itemView
.
updateItem
(
item
,
familyInfo
:
familyInfo
)
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/Resign(续签)/ResignInfoConfirm(续签信息确认)/V/YHResignInfoItemView.swift
View file @
76659233
...
@@ -19,6 +19,7 @@ class YHResignInfoItemView: UIView {
...
@@ -19,6 +19,7 @@ class YHResignInfoItemView: UIView {
var
faimilyInfo
=
YHResignInfoConfirmFamilyModel
()
var
faimilyInfo
=
YHResignInfoConfirmFamilyModel
()
// 姓名更改
// 姓名更改
var
updateName
:((
String
)
->
())?
var
updateName
:((
String
)
->
())?
var
updateList
:(()
->
())?
let
rightBtnWidth
=
22.0
let
rightBtnWidth
=
22.0
let
viewModel
=
YHResignInfoConfirmViewModel
()
let
viewModel
=
YHResignInfoConfirmViewModel
()
...
@@ -173,7 +174,7 @@ class YHResignInfoItemView: UIView {
...
@@ -173,7 +174,7 @@ class YHResignInfoItemView: UIView {
make
.
top
.
equalTo
(
12
)
make
.
top
.
equalTo
(
12
)
make
.
right
.
equalTo
(
-
18
)
make
.
right
.
equalTo
(
-
18
)
make
.
bottom
.
equalTo
(
-
12
)
make
.
bottom
.
equalTo
(
-
12
)
make
.
height
.
greaterThanOrEqualTo
(
20
)
make
.
height
.
greaterThanOrEqualTo
(
17
)
}
}
errorTipsLabel
.
snp
.
makeConstraints
{
make
in
errorTipsLabel
.
snp
.
makeConstraints
{
make
in
...
@@ -199,13 +200,13 @@ class YHResignInfoItemView: UIView {
...
@@ -199,13 +200,13 @@ class YHResignInfoItemView: UIView {
UIApplication
.
shared
.
yhKeyWindow
()?
.
endEditing
(
true
)
UIApplication
.
shared
.
yhKeyWindow
()?
.
endEditing
(
true
)
if
item
.
id
==
.
marriage
{
// 婚姻状况
if
item
.
id
==
.
marriage
{
// 婚姻状况
YHSheetPickerView
.
show
(
type
:
.
marriage
2
,
selectTitle
:
self
.
faimilyInfo
.
getMarriageState
())
{
YHSheetPickerView
.
show
(
type
:
.
marriage
1
,
selectTitle
:
self
.
faimilyInfo
.
getMarriageState
())
{
[
weak
self
]
item
in
[
weak
self
]
item
in
guard
let
self
=
self
else
{
return
}
guard
let
self
=
self
else
{
return
}
self
.
item
.
value
=
item
.
title
self
.
item
.
value
=
item
.
title
self
.
detailLabel
.
text
=
item
.
title
self
.
detailLabel
.
text
=
item
.
title
self
.
faimilyInfo
.
married
=
"
\(
item
.
index
)
"
self
.
faimilyInfo
.
married
=
"
\(
item
.
index
)
"
self
.
update
Item
(
self
.
item
,
familyInfo
:
self
.
faimilyInfo
)
self
.
update
List
?(
)
}
}
}
else
if
item
.
id
==
.
declareNation
{
// 申报国籍
}
else
if
item
.
id
==
.
declareNation
{
// 申报国籍
...
@@ -214,7 +215,8 @@ class YHResignInfoItemView: UIView {
...
@@ -214,7 +215,8 @@ class YHResignInfoItemView: UIView {
self
.
item
.
value
=
country
self
.
item
.
value
=
country
self
.
detailLabel
.
text
=
country
self
.
detailLabel
.
text
=
country
self
.
faimilyInfo
.
nationality
=
country
self
.
faimilyInfo
.
nationality
=
country
self
.
updateItem
(
self
.
item
,
familyInfo
:
self
.
faimilyInfo
)
self
.
updateList
?()
}
}
UIViewController
.
current
?
.
navigationController
?
.
pushViewController
(
vc
)
UIViewController
.
current
?
.
navigationController
?
.
pushViewController
(
vc
)
}
}
...
@@ -245,8 +247,8 @@ class YHResignInfoItemView: UIView {
...
@@ -245,8 +247,8 @@ class YHResignInfoItemView: UIView {
textField
.
keyboardType
=
.
asciiCapable
// 英文键盘
textField
.
keyboardType
=
.
asciiCapable
// 英文键盘
}
}
let
isS
electShee
t
=
item
.
isEditMode
&&
item
.
action
==
.
select
let
isS
heetEdi
t
=
item
.
isEditMode
&&
item
.
action
==
.
select
clickRowBtn
.
isHidden
=
!
isS
electShee
t
clickRowBtn
.
isHidden
=
!
isS
heetEdi
t
textField
.
text
=
item
.
value
textField
.
text
=
item
.
value
rightBtn
.
isHidden
=
!
item
.
isEditMode
rightBtn
.
isHidden
=
!
item
.
isEditMode
...
@@ -264,7 +266,7 @@ class YHResignInfoItemView: UIView {
...
@@ -264,7 +266,7 @@ class YHResignInfoItemView: UIView {
make
.
top
.
equalTo
(
16
)
make
.
top
.
equalTo
(
16
)
make
.
left
.
equalTo
(
titleLabel
.
snp
.
right
)
make
.
left
.
equalTo
(
titleLabel
.
snp
.
right
)
make
.
right
.
equalTo
(
item
.
isEditMode
?
-
18.0
-
rightBtnWidth
:
0
)
make
.
right
.
equalTo
(
item
.
isEditMode
?
-
18.0
-
rightBtnWidth
:
0
)
if
isTextEdit
{
if
isTextEdit
||
isSheetEdit
{
make
.
height
.
equalTo
(
20
)
make
.
height
.
equalTo
(
20
)
}
else
{
}
else
{
make
.
height
.
greaterThanOrEqualTo
(
20
)
make
.
height
.
greaterThanOrEqualTo
(
20
)
...
@@ -292,6 +294,9 @@ class YHResignInfoItemView: UIView {
...
@@ -292,6 +294,9 @@ class YHResignInfoItemView: UIView {
make
.
top
.
equalTo
(
previousContentView
.
snp
.
bottom
)
.
offset
(
isShowTips
?
6
:
0
)
make
.
top
.
equalTo
(
previousContentView
.
snp
.
bottom
)
.
offset
(
isShowTips
?
6
:
0
)
make
.
bottom
.
equalTo
(
-
16
)
make
.
bottom
.
equalTo
(
-
16
)
}
}
self
.
setNeedsLayout
()
self
.
layoutIfNeeded
()
}
}
}
}
...
@@ -338,16 +343,18 @@ extension YHResignInfoItemView: UITextFieldDelegate {
...
@@ -338,16 +343,18 @@ extension YHResignInfoItemView: UITextFieldDelegate {
@objc
func
textFieldChanged
(
textField
:
UITextField
)
{
@objc
func
textFieldChanged
(
textField
:
UITextField
)
{
if
let
text
=
textField
.
text
{
if
let
text
=
textField
.
text
{
self
.
updateText
(
text
)
self
.
faimilyInfo
.
isCheck
=
false
self
.
faimilyInfo
.
isCheck
=
false
self
.
updateText
(
text
)
}
else
{
}
else
{
self
.
updateText
(
""
)
self
.
updateText
(
""
)
}
}
self
.
updateItem
(
self
.
item
,
familyInfo
:
self
.
faimilyInfo
)
}
}
func
textFieldDidEndEditing
(
_
textField
:
UITextField
)
{
self
.
updateList
?()
}
func
updateNamePinYin
()
{
func
updateNamePinYin
()
{
// 编辑姓名
// 编辑姓名
if
self
.
item
.
id
==
.
mainApplicantName
||
self
.
item
.
id
==
.
spouseName
||
self
.
item
.
id
==
.
childName
{
if
self
.
item
.
id
==
.
mainApplicantName
||
self
.
item
.
id
==
.
spouseName
||
self
.
item
.
id
==
.
childName
{
...
@@ -356,7 +363,7 @@ extension YHResignInfoItemView: UITextFieldDelegate {
...
@@ -356,7 +363,7 @@ extension YHResignInfoItemView: UITextFieldDelegate {
if
text
.
isEmpty
{
if
text
.
isEmpty
{
self
.
faimilyInfo
.
familyName
=
""
self
.
faimilyInfo
.
familyName
=
""
self
.
faimilyInfo
.
givenName
=
""
self
.
faimilyInfo
.
givenName
=
""
updateName
?(
""
)
self
.
updateList
?(
)
return
return
}
}
...
@@ -367,7 +374,8 @@ extension YHResignInfoItemView: UITextFieldDelegate {
...
@@ -367,7 +374,8 @@ extension YHResignInfoItemView: UITextFieldDelegate {
guard
let
self
=
self
else
{
return
}
guard
let
self
=
self
else
{
return
}
self
.
faimilyInfo
.
familyName
=
firstNamePinYin
self
.
faimilyInfo
.
familyName
=
firstNamePinYin
self
.
faimilyInfo
.
givenName
=
lastNamePinYin
self
.
faimilyInfo
.
givenName
=
lastNamePinYin
updateName
?(
text
)
self
.
updateList
?()
}
}
}
}
}
}
...
@@ -378,8 +386,16 @@ extension YHResignInfoItemView: UITextFieldDelegate {
...
@@ -378,8 +386,16 @@ extension YHResignInfoItemView: UITextFieldDelegate {
if
self
.
item
.
id
==
.
mainApplicantName
||
self
.
item
.
id
==
.
spouseName
||
self
.
item
.
id
==
.
childName
{
if
self
.
item
.
id
==
.
mainApplicantName
||
self
.
item
.
id
==
.
spouseName
||
self
.
item
.
id
==
.
childName
{
self
.
faimilyInfo
.
name
=
newText
self
.
faimilyInfo
.
name
=
newText
if
newText
.
isEmpty
{
}
else
if
self
.
item
.
id
==
.
firstName
{
self
.
faimilyInfo
.
familyName
=
""
self
.
faimilyInfo
.
givenName
=
""
self
.
faimilyInfo
.
isCheck
=
false
self
.
updateList
?()
}
return
}
if
self
.
item
.
id
==
.
firstName
{
self
.
faimilyInfo
.
familyName
=
newText
.
uppercased
()
self
.
faimilyInfo
.
familyName
=
newText
.
uppercased
()
self
.
item
.
value
=
newText
.
uppercased
()
self
.
item
.
value
=
newText
.
uppercased
()
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/ServiceProcess(我的信息流程)/FamilyMember(家庭成员信息表)/V/PickerView/YHSheetPickerView.swift
View file @
76659233
...
@@ -211,15 +211,6 @@ class YHSheetPickerView: UIView {
...
@@ -211,15 +211,6 @@ class YHSheetPickerView: UIView {
YHSheetPickerViewItem
(
title
:
"已婚(再婚)"
.
local
,
index
:
6
),
YHSheetPickerViewItem
(
title
:
"已婚(再婚)"
.
local
,
index
:
6
),
],
],
// 婚姻
.
marriage2
:
[
YHSheetPickerViewItem
(
title
:
"已婚"
.
local
,
index
:
1
),
YHSheetPickerViewItem
(
title
:
"未婚"
.
local
,
index
:
2
),
YHSheetPickerViewItem
(
title
:
"离婚"
.
local
,
index
:
3
),
YHSheetPickerViewItem
(
title
:
"分居"
.
local
,
index
:
4
),
YHSheetPickerViewItem
(
title
:
"丧偶"
.
local
,
index
:
5
),
],
// 教育
// 教育
...
@@ -414,8 +405,6 @@ extension YHSheetPickerView {
...
@@ -414,8 +405,6 @@ extension YHSheetPickerView {
return
"选择婚姻状况"
return
"选择婚姻状况"
case
.
marriage1
:
case
.
marriage1
:
return
"选择婚姻状况"
return
"选择婚姻状况"
case
.
marriage2
:
return
"选择婚姻状况"
case
.
educationStyle
:
case
.
educationStyle
:
return
"选择授课形式"
return
"选择授课形式"
case
.
occupation
:
case
.
occupation
:
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/ServiceProcess(我的信息流程)/FamilyMember(家庭成员信息表)/V/PickerView/YHSheetPickerViewType.swift
View file @
76659233
...
@@ -22,9 +22,6 @@ enum YHSheetPickerViewType: Int {
...
@@ -22,9 +22,6 @@ enum YHSheetPickerViewType: Int {
case
marriageText
case
marriageText
// 婚姻(index有效) 有再婚选项
// 婚姻(index有效) 有再婚选项
case
marriage1
case
marriage1
// 婚姻(index有效) 无再婚选项
case
marriage2
// 授课形式
// 授课形式
case
educationStyle
case
educationStyle
// 职业
// 职业
...
...
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