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
491570a4
Commit
491570a4
authored
Feb 28, 2024
by
David黄金龙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
处理 基本资料 UI 展示不对的问题
parent
39f0dcb5
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
48 additions
and
38 deletions
+48
-38
YHBasicInfoFillView.swift
...ess(流程)/BaseInformation(基本资料)/V/YHBasicInfoFillView.swift
+34
-33
YHOtherInfoFillViewController.swift
...erInformation(其他信息)/C/YHOtherInfoFillViewController.swift
+2
-2
YHOtherPickerView.swift
...cess(流程)/OtherInformation(其他信息)/V/YHOtherPickerView.swift
+4
-0
Launch Screen.storyboard
galaxy/galaxy/Res/Launch Screen.storyboard
+8
-3
No files found.
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/ServiceProcess(流程)/BaseInformation(基本资料)/V/YHBasicInfoFillView.swift
View file @
491570a4
...
@@ -241,6 +241,7 @@ private extension YHBasicInfoFillView {
...
@@ -241,6 +241,7 @@ private extension YHBasicInfoFillView {
bottomLine
.
snp
.
removeConstraints
()
bottomLine
.
snp
.
removeConstraints
()
if
model
?
.
type
==
0
{
if
model
?
.
type
==
0
{
additionHoldView
.
snp
.
removeConstraints
()
additionHoldView
.
snp
.
remakeConstraints
{
make
in
additionHoldView
.
snp
.
remakeConstraints
{
make
in
make
.
top
.
equalTo
(
answer1Btn
.
snp
.
bottom
)
.
offset
(
12
)
make
.
top
.
equalTo
(
answer1Btn
.
snp
.
bottom
)
.
offset
(
12
)
make
.
left
.
right
.
equalToSuperview
()
make
.
left
.
right
.
equalToSuperview
()
...
@@ -258,10 +259,10 @@ private extension YHBasicInfoFillView {
...
@@ -258,10 +259,10 @@ private extension YHBasicInfoFillView {
}
else
{
}
else
{
mutilChoiceHoldView
.
snp
.
removeConstraints
()
mutilChoiceHoldView
.
snp
.
remakeConstraints
{
make
in
mutilChoiceHoldView
.
snp
.
remakeConstraints
{
make
in
make
.
top
.
equalTo
(
answer1Btn
.
snp
.
bottom
)
.
offset
(
12
)
make
.
top
.
equalTo
(
answer1Btn
.
snp
.
bottom
)
.
offset
(
12
)
make
.
left
.
right
.
equalToSuperview
()
make
.
left
.
right
.
equalToSuperview
()
// make.height.equalTo(78)
make
.
bottom
.
equalToSuperview
()
.
offset
(
-
18
)
make
.
bottom
.
equalToSuperview
()
.
offset
(
-
18
)
}
}
...
@@ -300,26 +301,6 @@ private extension YHBasicInfoFillView {
...
@@ -300,26 +301,6 @@ private extension YHBasicInfoFillView {
additionHoldView
.
isHidden
=
true
additionHoldView
.
isHidden
=
true
mutilChoiceHoldView
.
isHidden
=
false
mutilChoiceHoldView
.
isHidden
=
false
// title = model.question
// if model.answer == "Y" {
// didClickResponseBtn(btn: answer2Btn)
// myTextView.text = model.info.count > 0 ? model.info : kTipsString
// } else {
// if model.answer == "N" {
// didClickResponseBtn(btn: answer1Btn)
// }
// }
//
// mutilChoiceHoldView.snp.removeConstraints()
// mutilChoiceHoldView.snp.remakeConstraints { make in
// make.top.equalTo(answer1Btn.snp.bottom).offset(12)
// make.left.right.equalToSuperview()
//// make.height.equalTo(78)
// make.bottom.equalToSuperview().offset(-18)
// }
let
lable
=
UILabel
()
let
lable
=
UILabel
()
let
str
=
"* 选择成员:"
let
str
=
"* 选择成员:"
let
attributes
:
[
NSAttributedString
.
Key
:
Any
]
=
[
let
attributes
:
[
NSAttributedString
.
Key
:
Any
]
=
[
...
@@ -339,7 +320,10 @@ private extension YHBasicInfoFillView {
...
@@ -339,7 +320,10 @@ private extension YHBasicInfoFillView {
}
}
guard
let
subModel
=
model
.
model
else
{
return
}
guard
let
subModel
=
model
.
model
else
{
printLog
(
"errorr: 数据有问题"
)
return
}
var
targetView
:
UIView
=
lable
var
targetView
:
UIView
=
lable
...
@@ -386,21 +370,38 @@ private extension YHBasicInfoFillView {
...
@@ -386,21 +370,38 @@ private extension YHBasicInfoFillView {
}
}
}
}
targetView
=
btn
arrCheckBtns
.
append
(
btn
)
}
title
=
model
.
question
if
model
.
answer
==
"Y"
{
didClickResponseBtn
(
btn
:
answer2Btn
)
mutilChoiceHoldView
.
isHidden
=
false
}
else
{
if
model
.
answer
==
"N"
{
title
=
model
.
question
didClickResponseBtn
(
btn
:
answer1Btn
)
if
model
.
answer
==
"Y"
{
didClickResponseBtn
(
btn
:
answer2Btn
)
myTextView
.
text
=
model
.
info
.
count
>
0
?
model
.
info
:
kTipsString
}
else
{
}
else
{
if
model
.
answer
==
"N"
{
answer2Btn
.
isSelected
=
false
didClickResponseBtn
(
btn
:
answer1Btn
)
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
// model?.answer = "N"
}
}
targetView
=
btn
arrCheckBtns
.
append
(
btn
)
}
}
}
else
{
}
else
{
additionHoldView
.
isHidden
=
false
additionHoldView
.
isHidden
=
false
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/ServiceProcess(流程)/OtherInformation(其他信息)/C/YHOtherInfoFillViewController.swift
View file @
491570a4
...
@@ -108,9 +108,9 @@ extension YHOtherInfoFillViewController {
...
@@ -108,9 +108,9 @@ extension YHOtherInfoFillViewController {
otherInfoVM
.
saveOtherInfo
(
params
:
param
)
{
success
,
error
in
otherInfoVM
.
saveOtherInfo
(
params
:
param
)
{
success
,
error
in
if
success
==
true
{
if
success
==
true
{
YHHUD
.
flash
(
message
:
"
保存
成功"
)
YHHUD
.
flash
(
message
:
"
操作
成功"
)
}
else
{
}
else
{
let
msg
=
error
?
.
errorMsg
??
"
保存
失败"
let
msg
=
error
?
.
errorMsg
??
"
操作
失败"
YHHUD
.
flash
(
message
:
msg
)
YHHUD
.
flash
(
message
:
msg
)
}
}
}
}
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/ServiceProcess(流程)/OtherInformation(其他信息)/V/YHOtherPickerView.swift
View file @
491570a4
...
@@ -128,6 +128,10 @@ class YHOtherPickerView: UIView {
...
@@ -128,6 +128,10 @@ class YHOtherPickerView: UIView {
self
.
createUI
()
self
.
createUI
()
self
.
type
=
type
self
.
type
=
type
initDataSource
()
initDataSource
()
if
arrData
.
count
>
0
{
userSelectedItem
=
arrData
[
0
]
}
}
}
required
init
?(
coder
:
NSCoder
)
{
required
init
?(
coder
:
NSCoder
)
{
...
...
galaxy/galaxy/Res/Launch Screen.storyboard
View file @
491570a4
...
@@ -16,13 +16,18 @@
...
@@ -16,13 +16,18 @@
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"393"
height=
"852"
/>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"393"
height=
"852"
/>
<autoresizingMask
key=
"autoresizingMask"
widthSizable=
"YES"
heightSizable=
"YES"
/>
<autoresizingMask
key=
"autoresizingMask"
widthSizable=
"YES"
heightSizable=
"YES"
/>
<subviews>
<subviews>
<imageView
clipsSubviews=
"YES"
userInteractionEnabled=
"NO"
contentMode=
"scaleToFill"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
fixedFrame=
"YES"
image=
"launch_screen_image"
highlightedImage=
"launch_screen_image"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"sFt-Ce-yYm"
>
<imageView
clipsSubviews=
"YES"
userInteractionEnabled=
"NO"
contentMode=
"scaleToFill"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
insetsLayoutMarginsFromSafeArea=
"NO"
image=
"launch_screen_image"
highlightedImage=
"launch_screen_image"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"sFt-Ce-yYm"
>
<rect
key=
"frame"
x=
"-18"
y=
"-37"
width=
"428"
height=
"926"
/>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"393"
height=
"852"
/>
<autoresizingMask
key=
"autoresizingMask"
flexibleMaxX=
"YES"
flexibleMaxY=
"YES"
/>
</imageView>
</imageView>
</subviews>
</subviews>
<viewLayoutGuide
key=
"safeArea"
id=
"586-1X-Ryv"
/>
<viewLayoutGuide
key=
"safeArea"
id=
"586-1X-Ryv"
/>
<color
key=
"backgroundColor"
red=
"1"
green=
"1"
blue=
"1"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
<color
key=
"backgroundColor"
red=
"1"
green=
"1"
blue=
"1"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
<constraints>
<constraint
firstAttribute=
"trailing"
secondItem=
"sFt-Ce-yYm"
secondAttribute=
"trailing"
id=
"0yN-WE-6Kj"
/>
<constraint
firstItem=
"sFt-Ce-yYm"
firstAttribute=
"leading"
secondItem=
"Ze5-6b-2t3"
secondAttribute=
"leading"
id=
"8xj-jA-15j"
/>
<constraint
firstItem=
"sFt-Ce-yYm"
firstAttribute=
"top"
secondItem=
"Ze5-6b-2t3"
secondAttribute=
"top"
id=
"aPd-Z9-bKu"
/>
<constraint
firstAttribute=
"bottom"
secondItem=
"sFt-Ce-yYm"
secondAttribute=
"bottom"
id=
"bFA-o7-CPz"
/>
</constraints>
</view>
</view>
</viewController>
</viewController>
<placeholder
placeholderIdentifier=
"IBFirstResponder"
id=
"iYj-Kq-Ea1"
userLabel=
"First Responder"
sceneMemberID=
"firstResponder"
/>
<placeholder
placeholderIdentifier=
"IBFirstResponder"
id=
"iYj-Kq-Ea1"
userLabel=
"First Responder"
sceneMemberID=
"firstResponder"
/>
...
...
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