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
20b894c4
Commit
20b894c4
authored
Jun 27, 2024
by
David黄金龙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改 首页跳转的bug
parent
ca303a56
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
16 additions
and
7 deletions
+16
-7
YHCommunityViewController.swift
...s/Modules/Community(社区)/C/YHCommunityViewController.swift
+9
-0
YHAiRadarAreaView.swift
...galaxy/Classes/Modules/Home(首页)/V/YHAiRadarAreaView.swift
+1
-7
YHHomeSalonAreaView.swift
...laxy/Classes/Modules/Home(首页)/V/YHHomeSalonAreaView.swift
+3
-0
YhConstant.swift
galaxy/galaxy/Classes/Tools/Helper/YhConstant.swift
+3
-0
No files found.
galaxy/galaxy/Classes/Modules/Community(社区)/C/YHCommunityViewController.swift
View file @
20b894c4
...
@@ -129,6 +129,9 @@ class YHCommunityViewController: YHBaseViewController {
...
@@ -129,6 +129,9 @@ class YHCommunityViewController: YHBaseViewController {
NotificationCenter
.
default
.
addObserver
(
self
,
selector
:
#selector(
goActivityVC
)
,
name
:
YhConstant
.
YhNotification
.
goActivityVCNotifiction
,
object
:
nil
)
NotificationCenter
.
default
.
addObserver
(
self
,
selector
:
#selector(
goActivityVC
)
,
name
:
YhConstant
.
YhNotification
.
goActivityVCNotifiction
,
object
:
nil
)
NotificationCenter
.
default
.
addObserver
(
self
,
selector
:
#selector(
goConnectionVC
)
,
name
:
YhConstant
.
YhNotification
.
goConnectionVCNotifiction
,
object
:
nil
)
for
i
in
0
..<
arrItemTitles
.
count
{
for
i
in
0
..<
arrItemTitles
.
count
{
if
i
!=
0
{
if
i
!=
0
{
let
vc
=
YHActivityListViewController
()
let
vc
=
YHActivityListViewController
()
...
@@ -210,6 +213,12 @@ class YHCommunityViewController: YHBaseViewController {
...
@@ -210,6 +213,12 @@ class YHCommunityViewController: YHBaseViewController {
@objc
func
goActivityVC
()
{
@objc
func
goActivityVC
()
{
segmentedView
.
selectItemAt
(
index
:
1
)
segmentedView
.
selectItemAt
(
index
:
1
)
}
}
@objc
func
goConnectionVC
()
{
segmentedView
.
selectItemAt
(
index
:
0
)
}
}
}
extension
YHCommunityViewController
:
JXSegmentedViewDelegate
{
extension
YHCommunityViewController
:
JXSegmentedViewDelegate
{
...
...
galaxy/galaxy/Classes/Modules/Home(首页)/V/YHAiRadarAreaView.swift
View file @
20b894c4
...
@@ -73,15 +73,9 @@ extension YHAiRadarAreaView {
...
@@ -73,15 +73,9 @@ extension YHAiRadarAreaView {
@objc
func
tapButton
(
gestureRecognizer
:
UITapGestureRecognizer
)
{
@objc
func
tapButton
(
gestureRecognizer
:
UITapGestureRecognizer
)
{
goTabBarBy
(
tabType
:
.
community
)
goTabBarBy
(
tabType
:
.
community
)
// DispatchQueue.main.asyncAfter(deadline: .now() + 0.25, execute: {
// NotificationCenter.default.post(name: YhConstant.YhNotification.goActivityVCNotifiction, object: nil)
// })
DispatchQueue
.
main
.
async
{
DispatchQueue
.
main
.
async
{
NotificationCenter
.
default
.
post
(
name
:
YhConstant
.
YhNotification
.
go
Activity
VCNotifiction
,
object
:
nil
)
NotificationCenter
.
default
.
post
(
name
:
YhConstant
.
YhNotification
.
go
Connection
VCNotifiction
,
object
:
nil
)
}
}
}
}
func
setupUI
()
{
func
setupUI
()
{
...
...
galaxy/galaxy/Classes/Modules/Home(首页)/V/YHHomeSalonAreaView.swift
View file @
20b894c4
...
@@ -66,6 +66,9 @@ extension YHHomeSalonAreaView {
...
@@ -66,6 +66,9 @@ extension YHHomeSalonAreaView {
@objc
func
tapButton
(
gestureRecognizer
:
UITapGestureRecognizer
)
{
@objc
func
tapButton
(
gestureRecognizer
:
UITapGestureRecognizer
)
{
goTabBarBy
(
tabType
:
.
community
)
goTabBarBy
(
tabType
:
.
community
)
DispatchQueue
.
main
.
async
{
NotificationCenter
.
default
.
post
(
name
:
YhConstant
.
YhNotification
.
goActivityVCNotifiction
,
object
:
nil
)
}
}
}
func
setupUI
()
{
func
setupUI
()
{
...
...
galaxy/galaxy/Classes/Tools/Helper/YhConstant.swift
View file @
20b894c4
...
@@ -250,6 +250,9 @@ extension YhConstant {
...
@@ -250,6 +250,9 @@ extension YhConstant {
// 跳转 社区的活动页
// 跳转 社区的活动页
public
static
let
goActivityVCNotifiction
=
Notification
.
Name
(
rawValue
:
"com.yinhe.goActivityVCNotifiction"
)
public
static
let
goActivityVCNotifiction
=
Notification
.
Name
(
rawValue
:
"com.yinhe.goActivityVCNotifiction"
)
// 跳转 社区的人脉页
public
static
let
goConnectionVCNotifiction
=
Notification
.
Name
(
rawValue
:
"com.yinhe.goConnectionVCNotifiction"
)
}
}
}
}
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