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
bda886c0
Commit
bda886c0
authored
Jul 02, 2024
by
David黄金龙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
处理 首页推送刷新的问题
parent
39fa65c2
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
21 additions
and
6 deletions
+21
-6
project.pbxproj
galaxy/galaxy.xcodeproj/project.pbxproj
+3
-3
Applegate(JPush).swift
galaxy/galaxy/Applegate(JPush).swift
+3
-0
YHHomePageViewController.swift
...Classes/Modules/Home(首页)/C/YHHomePageViewController.swift
+12
-2
YhConstant.swift
galaxy/galaxy/Classes/Tools/Helper/YhConstant.swift
+3
-1
No files found.
galaxy/galaxy.xcodeproj/project.pbxproj
View file @
bda886c0
...
...
@@ -3744,7 +3744,7 @@
CODE_SIGN_ENTITLEMENTS
=
galaxy/galaxyTestEnv.entitlements
;
CODE_SIGN_IDENTITY
=
"Apple Development"
;
CODE_SIGN_STYLE
=
Automatic
;
CURRENT_PROJECT_VERSION
=
6
;
CURRENT_PROJECT_VERSION
=
7
;
DEVELOPMENT_TEAM
=
RXHYW88XR7
;
ENABLE_USER_SCRIPT_SANDBOXING
=
NO
;
FRAMEWORK_SEARCH_PATHS
=
(
...
...
@@ -3948,7 +3948,7 @@
CODE_SIGN_ENTITLEMENTS
=
galaxy/galaxyDebug.entitlements
;
CODE_SIGN_IDENTITY
=
"Apple Development"
;
CODE_SIGN_STYLE
=
Automatic
;
CURRENT_PROJECT_VERSION
=
6
;
CURRENT_PROJECT_VERSION
=
7
;
DEVELOPMENT_TEAM
=
RXHYW88XR7
;
ENABLE_USER_SCRIPT_SANDBOXING
=
NO
;
FRAMEWORK_SEARCH_PATHS
=
(
...
...
@@ -3994,7 +3994,7 @@
CODE_SIGN_ENTITLEMENTS
=
galaxy/galaxy.entitlements
;
CODE_SIGN_IDENTITY
=
"Apple Development"
;
CODE_SIGN_STYLE
=
Automatic
;
CURRENT_PROJECT_VERSION
=
6
;
CURRENT_PROJECT_VERSION
=
7
;
DEVELOPMENT_TEAM
=
RXHYW88XR7
;
ENABLE_USER_SCRIPT_SANDBOXING
=
NO
;
FRAMEWORK_SEARCH_PATHS
=
(
...
...
galaxy/galaxy/Applegate(JPush).swift
View file @
bda886c0
...
...
@@ -121,6 +121,9 @@ extension AppDelegate: JPUSHRegisterDelegate {
// 转换到消息tab
YHLoginManager
.
shared
.
needJumpToMsgTabFlag
=
true
DispatchQueue
.
main
.
asyncAfter
(
deadline
:
.
now
()
+
0.25
,
execute
:
{
NotificationCenter
.
default
.
post
(
name
:
YhConstant
.
YhNotification
.
didRevMsgNotifiction
,
object
:
nil
)
goToMessagePage
()
})
}
...
...
galaxy/galaxy/Classes/Modules/Home(首页)/C/YHHomePageViewController.swift
View file @
bda886c0
...
...
@@ -322,8 +322,14 @@ private extension YHHomePageViewController {
view
.
backgroundColor
=
.
white
NotificationCenter
.
default
.
addObserver
(
self
,
selector
:
#selector(
loginSuccess
)
,
name
:
YhConstant
.
YhNotification
.
didLoginSuccessNotifiction
,
object
:
nil
)
NotificationCenter
.
default
.
addObserver
(
self
,
selector
:
#selector(
logoutSuccess
)
,
name
:
YhConstant
.
YhNotification
.
didLogoutSuccessNotifiction
,
object
:
nil
)
NotificationCenter
.
default
.
addObserver
(
self
,
selector
:
#selector(
getTotalUnreadMsgCount
)
,
name
:
YhConstant
.
YhNotification
.
didRequestUnreadMsgTotalCountNotification
,
object
:
nil
)
NotificationCenter
.
default
.
addObserver
(
self
,
selector
:
#selector(
revMsg
)
,
name
:
YhConstant
.
YhNotification
.
didRevMsgNotifiction
,
object
:
nil
)
NotificationCenter
.
default
.
addObserver
(
self
,
selector
:
#selector(
clearUnreadBadge
)
,
name
:
YhConstant
.
YhNotification
.
didMarkAllMessagesReadedNotifiction
,
object
:
nil
)
NotificationCenter
.
default
.
addObserver
(
self
,
selector
:
#selector(
clearUnreadBadge
)
,
name
:
YhConstant
.
YhNotification
.
didMarkAllMessagesReadedNotifiction
,
object
:
nil
)
view
.
addSubview
(
searchView
)
...
...
@@ -379,6 +385,10 @@ private extension YHHomePageViewController {
self
.
msgUnreadView
.
unreadCount
=
0
getData
()
}
@objc
func
revMsg
()
{
requestOrder
()
}
}
extension
YHHomePageViewController
:
UICollectionViewDelegate
,
UICollectionViewDataSource
{
...
...
@@ -511,7 +521,7 @@ extension YHHomePageViewController {
}
// self.needReloadDataFlag = true
requestOrder
()
//
requestOrder()
self
.
msgViewModel
.
requestTotalUnreadMsgCount
{
[
weak
self
]
success
,
error
in
...
...
galaxy/galaxy/Classes/Tools/Helper/YhConstant.swift
View file @
bda886c0
...
...
@@ -254,9 +254,11 @@ extension YhConstant {
// 跳转 社区的人脉页
public
static
let
goConnectionVCNotifiction
=
Notification
.
Name
(
rawValue
:
"com.yinhe.goConnectionVCNotifiction"
)
// 点击了 首页的消息
public
static
let
clickHomeMsgNotifiction
=
Notification
.
Name
(
rawValue
:
"com.yinhe.clickHomeMsgNotifiction"
)
//接收到消息推送
public
static
let
didRevMsgNotifiction
=
Notification
.
Name
(
rawValue
:
"com.yinhe.didRevMsgNotifiction"
)
}
}
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