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
c6f8e424
Commit
c6f8e424
authored
Mar 14, 2024
by
David黄金龙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
一处 UI 调整
parent
f72045e2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
36 additions
and
6 deletions
+36
-6
YHServiceCenterMainViewController.swift
...ntService(服务中心)/C/YHServiceCenterMainViewController.swift
+3
-5
YHLoginTipsView.swift
.../Modules/IntelligentService(服务中心)/V/YHLoginTipsView.swift
+33
-1
No files found.
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/C/YHServiceCenterMainViewController.swift
View file @
c6f8e424
...
...
@@ -97,17 +97,18 @@ extension YHServiceCenterMainViewController {
make
.
height
.
equalTo
(
216
)
}
view
.
addSubview
(
loginTipsView
)
loginTipsView
.
snp
.
makeConstraints
{
make
in
make
.
centerX
.
equalToSuperview
()
make
.
centerY
.
equalToSuperview
()
.
offset
(
-
64
)
make
.
centerY
.
equalToSuperview
()
make
.
width
.
equalTo
(
KScreenWidth
)
}
view
.
addSubview
(
noDataView
)
noDataView
.
snp
.
makeConstraints
{
make
in
make
.
centerX
.
equalToSuperview
()
make
.
centerY
.
equalToSuperview
()
.
offset
(
-
64
)
make
.
centerY
.
equalToSuperview
()
make
.
width
.
equalTo
(
KScreenWidth
)
}
...
...
@@ -124,12 +125,9 @@ extension YHServiceCenterMainViewController {
self
.
homeTableView
.
isHidden
=
true
self
.
noDataView
.
isHidden
=
false
NotificationCenter
.
default
.
addObserver
(
self
,
selector
:
#selector(
loginSuccess
)
,
name
:
YhConstant
.
YhNotification
.
didLoginSuccessNotifiction
,
object
:
nil
)
NotificationCenter
.
default
.
addObserver
(
self
,
selector
:
#selector(
logoutSuccess
)
,
name
:
YhConstant
.
YhNotification
.
didLogoutSuccessNotifiction
,
object
:
nil
)
}
}
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/V/YHLoginTipsView.swift
View file @
c6f8e424
...
...
@@ -61,6 +61,38 @@ class YHLoginTipsView: UIView {
initView
()
}
override
func
layoutSubviews
()
{
super
.
layoutSubviews
()
tipsLab
.
snp
.
removeConstraints
()
loginBtn
.
snp
.
removeConstraints
()
loginBtn
.
isHidden
=
true
if
viewType
==
0
{
loginBtn
.
isHidden
=
false
tipsLab
.
snp
.
remakeConstraints
{
make
in
make
.
top
.
equalTo
(
iconImgV
.
snp
.
bottom
)
.
offset
(
12
)
make
.
centerX
.
equalToSuperview
()
make
.
left
.
right
.
equalToSuperview
()
}
loginBtn
.
snp
.
remakeConstraints
{
make
in
make
.
top
.
equalTo
(
tipsLab
.
snp
.
bottom
)
.
offset
(
21
)
make
.
centerX
.
equalToSuperview
()
make
.
height
.
equalTo
(
36
)
make
.
width
.
equalTo
(
86
)
make
.
bottom
.
equalToSuperview
()
}
}
else
{
tipsLab
.
snp
.
remakeConstraints
{
make
in
make
.
top
.
equalTo
(
iconImgV
.
snp
.
bottom
)
.
offset
(
12
)
make
.
centerX
.
equalToSuperview
()
make
.
left
.
right
.
equalToSuperview
()
make
.
bottom
.
equalToSuperview
()
}
}
}
private
func
initView
()
{
addSubview
(
iconImgV
)
iconImgV
.
snp
.
makeConstraints
{
make
in
...
...
@@ -88,7 +120,7 @@ class YHLoginTipsView: UIView {
loginBtn
.
addTarget
(
self
,
action
:
#selector(
clickLoginBtn
)
,
for
:
.
touchUpInside
)
layoutIfNeeded
()
loginBtn
.
backgroundColor
=
.
brandMainColor
//for test hjl
loginBtn
.
backgroundColor
=
.
brandMainColor
loginBtn
.
addYinHeGradualLayer
()
}
...
...
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