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
e42f57a2
Commit
e42f57a2
authored
Sep 25, 2024
by
David黄金龙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
一处 代码优化
parent
727713e5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
10 deletions
+9
-10
YHHomeHoldViewPageViewController.swift
...Modules/Home(首页)/C/YHHomeHoldViewPageViewController.swift
+9
-10
No files found.
galaxy/galaxy/Classes/Modules/Home(首页)/C/YHHomeHoldViewPageViewController.swift
View file @
e42f57a2
...
@@ -460,33 +460,32 @@ private extension YHHomeHoldViewPageViewController {
...
@@ -460,33 +460,32 @@ private extension YHHomeHoldViewPageViewController {
//银河管家 引导弹窗
//银河管家 引导弹窗
func
showYHManagerTipsView
()
{
func
showYHManagerTipsView
()
{
print
(
"HJL1:
\(
self
.
homePageVC
.
homeHeaderView
.
orderTipsView
.
mgrItem
.
frame
.
origin
.
y
)
"
)
print
(
"HJL2:
\(
self
.
isViewVisibleOnScreen
(
view
:
self
.
homePageVC
.
homeHeaderView
.
orderTipsView
.
mgrItem
)
)
"
)
if
YHUatHelper
.
shared
.
getUatModuleStatusBy
(
module
:
.
QiYu_Service
)
!=
1
{
if
YHUatHelper
.
shared
.
getUatModuleStatusBy
(
module
:
.
QiYu_Service
)
!=
1
{
printLog
(
"非目标用户"
)
printLog
(
"非目标用户"
)
return
return
}
}
self
.
princleVM
.
postAlertStatus
(
20
)
{
success
,
error
in
}
DispatchQueue
.
main
.
asyncAfter
(
deadline
:
.
now
()
+
0.5
)
{
DispatchQueue
.
main
.
asyncAfter
(
deadline
:
.
now
()
+
0.5
)
{
if
let
vc
=
UIApplication
.
shared
.
keyWindow
?
.
rootViewController
as?
YHTabBarViewController
{
if
vc
.
selectedIndex
!=
0
{
return
}
}
self
.
princleVM
.
postAlertStatus
(
20
)
{
success
,
error
in
}
//不在屏幕内 就上移 200px
//不在屏幕内 就上移 200px
var
offSetY
:
CGFloat
=
0.0
var
offSetY
:
CGFloat
=
0.0
let
viewFrame
=
self
.
homePageVC
.
homeHeaderView
.
orderTipsView
.
mgrItem
.
convert
(
self
.
homePageVC
.
homeHeaderView
.
orderTipsView
.
mgrItem
.
bounds
,
to
:
UIScreen
.
main
.
coordinateSpace
)
let
viewFrame
=
self
.
homePageVC
.
homeHeaderView
.
orderTipsView
.
mgrItem
.
convert
(
self
.
homePageVC
.
homeHeaderView
.
orderTipsView
.
mgrItem
.
bounds
,
to
:
UIScreen
.
main
.
coordinateSpace
)
print
(
"HJL:
\(
viewFrame
.
origin
.
y
)
"
)
if
viewFrame
.
origin
.
y
<
250
.
fix
{
if
viewFrame
.
origin
.
y
<
250
.
fix
{
offSetY
=
-
abs
(
viewFrame
.
origin
.
y
)
-
(
KScreenHeight
/
2
)
offSetY
=
-
abs
(
viewFrame
.
origin
.
y
)
-
(
KScreenHeight
/
2
)
}
else
{
}
else
{
offSetY
=
self
.
isViewVisibleOnScreen
(
view
:
self
.
homePageVC
.
homeHeaderView
.
orderTipsView
.
mgrItem
)
?
0.0
:
200.0
offSetY
=
self
.
isViewVisibleOnScreen
(
view
:
self
.
homePageVC
.
homeHeaderView
.
orderTipsView
.
mgrItem
)
?
0.0
:
200.0
}
}
var
point
=
self
.
homePageVC
.
homeCollectView
.
contentOffset
var
point
=
self
.
homePageVC
.
homeCollectView
.
contentOffset
point
.
y
+=
offSetY
point
.
y
+=
offSetY
self
.
homePageVC
.
homeCollectView
.
setContentOffset
(
point
,
animated
:
false
)
self
.
homePageVC
.
homeCollectView
.
setContentOffset
(
point
,
animated
:
false
)
...
...
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