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
a9d199f3
Commit
a9d199f3
authored
Sep 27, 2024
by
David黄金龙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
跳转 生活-教育
parent
45346fc1
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
29 additions
and
1 deletion
+29
-1
YHLifeViewController.swift
...es/Modules/Home(首页)/Life(生活)/C/YHLifeViewController.swift
+16
-0
YHLifeSectionView.swift
...asses/Modules/Home(首页)/Life(生活)/V/YHLifeSectionView.swift
+6
-1
YHJsApi.swift
...galaxy/Classes/Modules/InteractionH5(与H5交互)/YHJsApi.swift
+4
-0
YhConstant.swift
galaxy/galaxy/Classes/Tools/Helper/YhConstant.swift
+3
-0
No files found.
galaxy/galaxy/Classes/Modules/Home(首页)/Life(生活)/C/YHLifeViewController.swift
View file @
a9d199f3
...
...
@@ -20,6 +20,7 @@ class YHLifeViewController: YHBaseViewController {
override
func
viewDidLoad
()
{
super
.
viewDidLoad
()
setupUI
()
loadData
()
}
...
...
@@ -80,7 +81,22 @@ extension YHLifeViewController {
}
}
@objc
func
didJumpToEduTab
()
{
let
index
:
Int
=
1
if
index
<
self
.
viewModel
.
categoryArr
.
count
{
selectSubIndex
=
index
self
.
selectSubTab
=
self
.
viewModel
.
categoryArr
[
index
]
self
.
getDetailImages
()
self
.
sectionView
.
selectIndex
=
index
}
}
func
setupUI
()
{
NotificationCenter
.
default
.
addObserver
(
self
,
selector
:
#selector(
didJumpToEduTab
)
,
name
:
YhConstant
.
YhNotification
.
didJumpToHomePageLifeEduTabNotification
,
object
:
nil
)
gk_navBarAlpha
=
0
gk_navigationBar
.
isHidden
=
true
view
.
backgroundColor
=
.
white
...
...
galaxy/galaxy/Classes/Modules/Home(首页)/Life(生活)/V/YHLifeSectionView.swift
View file @
a9d199f3
...
...
@@ -23,7 +23,12 @@ class YHLifeSectionView: UIView {
var
type
:
Int
=
0
var
selectIndex
=
0
var
selectIndex
=
0
{
didSet
{
self
.
myCollectView
.
reloadData
()
}
}
lazy
var
myCollectView
=
{
// 设置布局方向
let
flowLayout
=
UICollectionViewFlowLayout
()
...
...
galaxy/galaxy/Classes/Modules/InteractionH5(与H5交互)/YHJsApi.swift
View file @
a9d199f3
...
...
@@ -110,6 +110,10 @@ extension YHJsApi {
UIViewController
.
current
?
.
navigationController
?
.
popToRootViewController
(
animated
:
false
)
goTabBarBy
(
tabType
:
.
home
)
NotificationCenter
.
default
.
post
(
name
:
YhConstant
.
YhNotification
.
didJumpToHomePageLifeTabNotification
,
object
:
nil
)
DispatchQueue
.
main
.
asyncAfter
(
deadline
:
.
now
()
+
0.35
)
{
NotificationCenter
.
default
.
post
(
name
:
YhConstant
.
YhNotification
.
didJumpToHomePageLifeEduTabNotification
,
object
:
nil
)
}
}
}
...
...
galaxy/galaxy/Classes/Tools/Helper/YhConstant.swift
View file @
a9d199f3
...
...
@@ -302,6 +302,9 @@ extension YhConstant {
// 跳转到首页生活tab
public
static
let
didJumpToHomePageLifeTabNotification
=
Notification
.
Name
(
rawValue
:
"com.yinhe.homePage.life"
)
// 跳转到首页生活tab - 教育
public
static
let
didJumpToHomePageLifeEduTabNotification
=
Notification
.
Name
(
rawValue
:
"com.yinhe.homePage.life.edu"
)
}
}
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