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
edaac167
Commit
edaac167
authored
Feb 28, 2024
by
David黄金龙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
完善 一处 UI展示 逻辑
parent
491570a4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
5 deletions
+29
-5
YHBasicInfoFillView.swift
...ess(流程)/BaseInformation(基本资料)/V/YHBasicInfoFillView.swift
+29
-5
No files found.
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/ServiceProcess(流程)/BaseInformation(基本资料)/V/YHBasicInfoFillView.swift
View file @
edaac167
...
@@ -322,6 +322,33 @@ private extension YHBasicInfoFillView {
...
@@ -322,6 +322,33 @@ private extension YHBasicInfoFillView {
guard
let
subModel
=
model
.
model
else
{
guard
let
subModel
=
model
.
model
else
{
printLog
(
"errorr: 数据有问题"
)
printLog
(
"errorr: 数据有问题"
)
title
=
model
.
question
if
model
.
answer
==
"Y"
{
didClickResponseBtn
(
btn
:
answer2Btn
)
mutilChoiceHoldView
.
isHidden
=
false
}
else
{
if
model
.
answer
==
"N"
{
didClickResponseBtn
(
btn
:
answer1Btn
)
}
else
{
answer2Btn
.
isSelected
=
false
updateAnswerButton
(
answer2Btn
,
false
)
additionHoldView
.
snp
.
removeConstraints
()
mutilChoiceHoldView
.
snp
.
removeConstraints
()
bottomLine
.
snp
.
remakeConstraints
{
make
in
make
.
top
.
equalTo
(
answer1Btn
.
snp
.
bottom
)
.
offset
(
12
)
make
.
left
.
right
.
equalToSuperview
()
make
.
height
.
equalTo
(
0.5
)
make
.
bottom
.
equalToSuperview
()
}
additionHoldView
.
isHidden
=
true
bottomLine
.
isHidden
=
false
mutilChoiceHoldView
.
isHidden
=
true
}
}
return
return
}
}
...
@@ -351,7 +378,7 @@ private extension YHBasicInfoFillView {
...
@@ -351,7 +378,7 @@ private extension YHBasicInfoFillView {
btn
.
isSelected
=
false
btn
.
isSelected
=
false
}
}
if
index
==
subModel
.
subset
.
count
-
1
{
if
index
==
subModel
.
subset
.
count
-
1
{
...
@@ -399,8 +426,6 @@ private extension YHBasicInfoFillView {
...
@@ -399,8 +426,6 @@ private extension YHBasicInfoFillView {
additionHoldView
.
isHidden
=
true
additionHoldView
.
isHidden
=
true
bottomLine
.
isHidden
=
false
bottomLine
.
isHidden
=
false
mutilChoiceHoldView
.
isHidden
=
true
mutilChoiceHoldView
.
isHidden
=
true
// model?.answer = "N"
}
}
}
}
}
else
{
}
else
{
...
@@ -429,7 +454,7 @@ private extension YHBasicInfoFillView {
...
@@ -429,7 +454,7 @@ private extension YHBasicInfoFillView {
extension
YHBasicInfoFillView
:
UITextFieldDelegate
{
extension
YHBasicInfoFillView
:
UITextFieldDelegate
{
func
textViewShouldBeginEditing
(
_
textView
:
UITextView
)
->
Bool
{
func
textViewShouldBeginEditing
(
_
textView
:
UITextView
)
->
Bool
{
if
textView
.
text
==
kTipsString
{
if
textView
.
text
==
kTipsString
{
...
@@ -473,7 +498,6 @@ extension YHBasicInfoFillView : UITextFieldDelegate {
...
@@ -473,7 +498,6 @@ extension YHBasicInfoFillView : UITextFieldDelegate {
sender
.
isSelected
=
true
sender
.
isSelected
=
true
model
?
.
info
=
String
(
sender
.
tag
)
model
?
.
info
=
String
(
sender
.
tag
)
}
}
}
}
}
}
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