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
185f860f
Commit
185f860f
authored
Sep 25, 2024
by
David黄金龙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改 首页弹窗 逻辑
parent
e42f57a2
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
2 deletions
+19
-2
YHHomeHoldViewPageViewController.swift
...Modules/Home(首页)/C/YHHomeHoldViewPageViewController.swift
+9
-0
YHHomePageViewController.swift
...Classes/Modules/Home(首页)/C/YHHomePageViewController.swift
+4
-0
YHManagerFuncGuildeCheckView.swift
...ses/Modules/Home(首页)/V/YHManagerFuncGuildeCheckView.swift
+6
-2
No files found.
galaxy/galaxy/Classes/Modules/Home(首页)/C/YHHomeHoldViewPageViewController.swift
View file @
185f860f
...
@@ -466,12 +466,18 @@ private extension YHHomeHoldViewPageViewController {
...
@@ -466,12 +466,18 @@ private extension YHHomeHoldViewPageViewController {
}
}
DispatchQueue
.
main
.
asyncAfter
(
deadline
:
.
now
()
+
0.5
)
{
DispatchQueue
.
main
.
asyncAfter
(
deadline
:
.
now
()
+
0.5
)
{
//判断是否在 首页tab
if
let
vc
=
UIApplication
.
shared
.
keyWindow
?
.
rootViewController
as?
YHTabBarViewController
{
if
let
vc
=
UIApplication
.
shared
.
keyWindow
?
.
rootViewController
as?
YHTabBarViewController
{
if
vc
.
selectedIndex
!=
0
{
if
vc
.
selectedIndex
!=
0
{
return
return
}
}
}
}
//判断是否在 首页-推荐tab
if
self
.
segmentedView
.
selectedIndex
!=
0
{
return
}
self
.
princleVM
.
postAlertStatus
(
20
)
{
success
,
error
in
self
.
princleVM
.
postAlertStatus
(
20
)
{
success
,
error
in
}
}
...
@@ -496,6 +502,9 @@ private extension YHHomeHoldViewPageViewController {
...
@@ -496,6 +502,9 @@ private extension YHHomeHoldViewPageViewController {
let
view
=
YHManagerFuncGuildeCheckView
.
sheetView
()
let
view
=
YHManagerFuncGuildeCheckView
.
sheetView
()
view
.
itemRect
=
viewFrame
view
.
itemRect
=
viewFrame
view
.
block
=
{
self
.
homePageVC
.
gotoYinHeMgrVC
()
}
view
.
show
()
view
.
show
()
self
.
homePageVC
.
homeCollectView
.
isScrollEnabled
=
true
self
.
homePageVC
.
homeCollectView
.
isScrollEnabled
=
true
...
...
galaxy/galaxy/Classes/Modules/Home(首页)/C/YHHomePageViewController.swift
View file @
185f860f
...
@@ -381,6 +381,10 @@ extension YHHomePageViewController {
...
@@ -381,6 +381,10 @@ extension YHHomePageViewController {
//MARK: - public方法
//MARK: - public方法
extension
YHHomePageViewController
{
extension
YHHomePageViewController
{
func
gotoYinHeMgrVC
()
{
self
.
gotoMgrVC
()
}
func
goTop
()
{
func
goTop
()
{
self
.
homeCollectView
.
setContentOffset
(
CGPoint
(
x
:
0
,
y
:
-
homeHeaderViewHeight
),
animated
:
true
)
self
.
homeCollectView
.
setContentOffset
(
CGPoint
(
x
:
0
,
y
:
-
homeHeaderViewHeight
),
animated
:
true
)
}
}
...
...
galaxy/galaxy/Classes/Modules/Home(首页)/V/YHManagerFuncGuildeCheckView.swift
View file @
185f860f
...
@@ -10,7 +10,7 @@ import UIKit
...
@@ -10,7 +10,7 @@ import UIKit
class
YHManagerFuncGuildeCheckView
:
UIView
{
class
YHManagerFuncGuildeCheckView
:
UIView
{
typealias
Block
=
(
Int
)
->
()
typealias
Block
=
()
->
()
var
block
:
Block
?
var
block
:
Block
?
lazy
var
blackMaskView
:
UIView
=
{
lazy
var
blackMaskView
:
UIView
=
{
...
@@ -66,6 +66,10 @@ class YHManagerFuncGuildeCheckView: UIView {
...
@@ -66,6 +66,10 @@ class YHManagerFuncGuildeCheckView: UIView {
updateUI
()
updateUI
()
}
}
}
}
}
}
extension
YHManagerFuncGuildeCheckView
{
extension
YHManagerFuncGuildeCheckView
{
...
@@ -84,7 +88,7 @@ extension YHManagerFuncGuildeCheckView {
...
@@ -84,7 +88,7 @@ extension YHManagerFuncGuildeCheckView {
}
}
@objc
func
clickCloseBtn
()
{
@objc
func
clickCloseBtn
()
{
self
.
block
?(
1
)
self
.
block
?()
dismiss
()
dismiss
()
}
}
}
}
...
...
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