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
f47888de
Commit
f47888de
authored
Jun 27, 2024
by
David黄金龙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改 首页 跳转
parent
1cd63921
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
0 deletions
+20
-0
YHCommunityViewController.swift
...s/Modules/Community(社区)/C/YHCommunityViewController.swift
+7
-0
YHAiRadarAreaView.swift
...galaxy/Classes/Modules/Home(首页)/V/YHAiRadarAreaView.swift
+9
-0
YhConstant.swift
galaxy/galaxy/Classes/Tools/Helper/YhConstant.swift
+4
-0
No files found.
galaxy/galaxy/Classes/Modules/Community(社区)/C/YHCommunityViewController.swift
View file @
f47888de
...
...
@@ -126,6 +126,9 @@ class YHCommunityViewController: YHBaseViewController {
make
.
edges
.
equalToSuperview
()
}
NotificationCenter
.
default
.
addObserver
(
self
,
selector
:
#selector(
goActivityVC
)
,
name
:
YhConstant
.
YhNotification
.
goActivityVCNotifiction
,
object
:
nil
)
for
i
in
0
..<
arrItemTitles
.
count
{
if
i
!=
0
{
let
vc
=
YHActivityListViewController
()
...
...
@@ -203,6 +206,10 @@ class YHCommunityViewController: YHBaseViewController {
self
.
unreadCount
=
0
}
}
@objc
func
goActivityVC
()
{
segmentedView
.
selectItemAt
(
index
:
1
)
}
}
extension
YHCommunityViewController
:
JXSegmentedViewDelegate
{
...
...
galaxy/galaxy/Classes/Modules/Home(首页)/V/YHAiRadarAreaView.swift
View file @
f47888de
...
...
@@ -73,6 +73,15 @@ extension YHAiRadarAreaView {
@objc
func
tapButton
(
gestureRecognizer
:
UITapGestureRecognizer
)
{
goTabBarBy
(
tabType
:
.
community
)
// DispatchQueue.main.asyncAfter(deadline: .now() + 0.25, execute: {
// NotificationCenter.default.post(name: YhConstant.YhNotification.goActivityVCNotifiction, object: nil)
// })
DispatchQueue
.
main
.
async
{
NotificationCenter
.
default
.
post
(
name
:
YhConstant
.
YhNotification
.
goActivityVCNotifiction
,
object
:
nil
)
}
}
func
setupUI
()
{
...
...
galaxy/galaxy/Classes/Tools/Helper/YhConstant.swift
View file @
f47888de
...
...
@@ -246,6 +246,10 @@ extension YhConstant {
// 点击文件清单空视图返回服务tab页
public
static
let
didClickFileListBackToServiceTabNotifiction
=
Notification
.
Name
(
rawValue
:
"com.yinhe.certificate.backToService"
)
// 跳转 社区的活动页
public
static
let
goActivityVCNotifiction
=
Notification
.
Name
(
rawValue
:
"com.yinhe.goActivityVCNotifiction"
)
}
}
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