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
c0e09ee9
Commit
c0e09ee9
authored
Oct 18, 2024
by
Steven杜宇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
// 续签
parent
5175d0ca
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
6 deletions
+12
-6
YHResignInfoConfirmModifyViewController.swift
...m(续签信息确认)/C/YHResignInfoConfirmModifyViewController.swift
+2
-2
YHResignInfoConfirmInfoListModel.swift
...oConfirm(续签信息确认)/M/YHResignInfoConfirmInfoListModel.swift
+1
-1
YHResignInfoItemView.swift
...签)/ResignInfoConfirm(续签信息确认)/V/YHResignInfoItemView.swift
+9
-3
No files found.
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/Resign(续签)/ResignInfoConfirm(续签信息确认)/C/YHResignInfoConfirmModifyViewController.swift
View file @
c0e09ee9
...
@@ -151,7 +151,7 @@ class YHResignInfoConfirmModifyViewController: YHBaseViewController {
...
@@ -151,7 +151,7 @@ class YHResignInfoConfirmModifyViewController: YHBaseViewController {
}
}
@objc
func
didConfirmBtnClicked
()
{
@objc
func
didConfirmBtnClicked
()
{
self
.
detailMember
.
isCheck
=
true
self
.
detailMember
.
is
Need
Check
=
true
self
.
updateData
()
self
.
updateData
()
if
!
checkInfo
()
{
if
!
checkInfo
()
{
...
@@ -211,7 +211,7 @@ extension YHResignInfoConfirmModifyViewController: UITableViewDelegate, UITableV
...
@@ -211,7 +211,7 @@ extension YHResignInfoConfirmModifyViewController: UITableViewDelegate, UITableV
if
!
checkInfo
()
{
if
!
checkInfo
()
{
// 检查信息错误
// 检查信息错误
self
.
isInfoEditing
=
true
self
.
isInfoEditing
=
true
self
.
detailMember
.
isCheck
=
true
self
.
detailMember
.
is
Need
Check
=
true
self
.
updateData
()
self
.
updateData
()
return
return
}
}
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/Resign(续签)/ResignInfoConfirm(续签信息确认)/M/YHResignInfoConfirmInfoListModel.swift
View file @
c0e09ee9
...
@@ -140,7 +140,7 @@ class YHResignInfoConfirmFamilyModel: SmartCodable {
...
@@ -140,7 +140,7 @@ class YHResignInfoConfirmFamilyModel: SmartCodable {
// 自定义属性
// 自定义属性
var
relation
:
Int
=
YHFamilyMemberRelationType
.
none
.
rawValue
var
relation
:
Int
=
YHFamilyMemberRelationType
.
none
.
rawValue
// 是否检测编辑字段
// 是否检测编辑字段
var
isCheck
:
Bool
=
false
var
is
Need
Check
:
Bool
=
false
required
init
()
{
required
init
()
{
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/Resign(续签)/ResignInfoConfirm(续签信息确认)/V/YHResignInfoItemView.swift
View file @
c0e09ee9
...
@@ -282,7 +282,7 @@ class YHResignInfoItemView: UIView {
...
@@ -282,7 +282,7 @@ class YHResignInfoItemView: UIView {
}
}
}
}
let
isShowTips
=
(
familyInfo
.
isCheck
&&
!
item
.
tips
.
isEmpty
)
let
isShowTips
=
(
familyInfo
.
is
Need
Check
&&
!
item
.
tips
.
isEmpty
)
errorTipsLabel
.
text
=
item
.
tips
errorTipsLabel
.
text
=
item
.
tips
errorTipsLabel
.
isHidden
=
!
isShowTips
errorTipsLabel
.
isHidden
=
!
isShowTips
errorTipsLabel
.
snp
.
remakeConstraints
{
make
in
errorTipsLabel
.
snp
.
remakeConstraints
{
make
in
...
@@ -307,6 +307,7 @@ extension YHResignInfoItemView: UITextFieldDelegate {
...
@@ -307,6 +307,7 @@ extension YHResignInfoItemView: UITextFieldDelegate {
var
newText
=
(
textField
.
text
!
as
NSString
)
.
replacingCharacters
(
in
:
range
,
with
:
string
)
var
newText
=
(
textField
.
text
!
as
NSString
)
.
replacingCharacters
(
in
:
range
,
with
:
string
)
printLog
(
"
\(
newText
)
"
)
printLog
(
"
\(
newText
)
"
)
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
{
if
newText
.
count
>
30
{
// 上限30个字符
if
newText
.
count
>
30
{
// 上限30个字符
newText
=
String
(
newText
.
prefix
(
30
))
newText
=
String
(
newText
.
prefix
(
30
))
...
@@ -319,6 +320,12 @@ extension YHResignInfoItemView: UITextFieldDelegate {
...
@@ -319,6 +320,12 @@ extension YHResignInfoItemView: UITextFieldDelegate {
debounceTimer
=
Timer
.
scheduledTimer
(
withTimeInterval
:
1.0
,
repeats
:
false
)
{
[
weak
self
]
_
in
debounceTimer
=
Timer
.
scheduledTimer
(
withTimeInterval
:
1.0
,
repeats
:
false
)
{
[
weak
self
]
_
in
self
?
.
updateNamePinYin
()
self
?
.
updateNamePinYin
()
}
}
}
else
{
// 刷新文字输入后的布局
debounceTimer
?
.
invalidate
()
debounceTimer
=
Timer
.
scheduledTimer
(
withTimeInterval
:
1.25
,
repeats
:
false
)
{
[
weak
self
]
_
in
self
?
.
updateList
?()
}
}
}
if
self
.
item
.
id
==
.
occupation
{
// 职业
if
self
.
item
.
id
==
.
occupation
{
// 职业
...
@@ -343,12 +350,12 @@ extension YHResignInfoItemView: UITextFieldDelegate {
...
@@ -343,12 +350,12 @@ extension YHResignInfoItemView: UITextFieldDelegate {
@objc
func
textFieldChanged
(
textField
:
UITextField
)
{
@objc
func
textFieldChanged
(
textField
:
UITextField
)
{
if
let
text
=
textField
.
text
{
if
let
text
=
textField
.
text
{
self
.
faimilyInfo
.
isCheck
=
false
self
.
updateText
(
text
)
self
.
updateText
(
text
)
}
else
{
}
else
{
self
.
updateText
(
""
)
self
.
updateText
(
""
)
}
}
self
.
updateItem
(
self
.
item
,
familyInfo
:
self
.
faimilyInfo
)
}
}
func
textFieldDidEndEditing
(
_
textField
:
UITextField
)
{
func
textFieldDidEndEditing
(
_
textField
:
UITextField
)
{
...
@@ -389,7 +396,6 @@ extension YHResignInfoItemView: UITextFieldDelegate {
...
@@ -389,7 +396,6 @@ extension YHResignInfoItemView: UITextFieldDelegate {
if
newText
.
isEmpty
{
if
newText
.
isEmpty
{
self
.
faimilyInfo
.
familyName
=
""
self
.
faimilyInfo
.
familyName
=
""
self
.
faimilyInfo
.
givenName
=
""
self
.
faimilyInfo
.
givenName
=
""
self
.
faimilyInfo
.
isCheck
=
false
self
.
updateList
?()
self
.
updateList
?()
}
}
return
return
...
...
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