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
aec821c3
Commit
aec821c3
authored
Apr 19, 2024
by
pete谢兆麟
Browse files
Options
Browse Files
Download
Plain Diff
Merge commit '
915fabf6
' into xiezhaolin
parents
11b6677d
915fabf6
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
14 deletions
+5
-14
YHTabBarViewController.swift
galaxy/galaxy/Classes/Base/C/YHTabBarViewController.swift
+2
-3
YHMySettingViewController.swift
...lasses/Modules/Mine(我的)/C/YHMySettingViewController.swift
+2
-8
YHMyViewController.swift
...alaxy/Classes/Modules/Mine(我的)/C/YHMyViewController.swift
+1
-3
No files found.
galaxy/galaxy/Classes/Base/C/YHTabBarViewController.swift
View file @
aec821c3
...
...
@@ -28,7 +28,7 @@ class YHTabBarViewController: ESTabBarController {
func
addObservers
()
{
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(
clearAllUnread
Msg
)
,
name
:
YhConstant
.
YhNotification
.
didMarkAllMessagesReadedNotifiction
,
object
:
nil
)
NotificationCenter
.
default
.
addObserver
(
self
,
selector
:
#selector(
clearAllUnread
Badge
)
,
name
:
YhConstant
.
YhNotification
.
didMarkAllMessagesReadedNotifiction
,
object
:
nil
)
NotificationCenter
.
default
.
addObserver
(
self
,
selector
:
#selector(
getTotalUnreadMsgCount
)
,
name
:
YhConstant
.
YhNotification
.
didRequestUnreadMsgTotalCountNotification
,
object
:
nil
)
}
...
...
@@ -53,7 +53,7 @@ extension YHTabBarViewController {
}
@objc
func
clearAllUnread
Msg
()
{
@objc
func
clearAllUnread
Badge
()
{
DispatchQueue
.
main
.
async
{
if
let
vcs
=
self
.
viewControllers
,
let
msgListVC
=
vcs
[
safe
:
2
]
{
msgListVC
.
tabBarItem
.
badgeValue
=
nil
...
...
@@ -67,7 +67,6 @@ extension YHTabBarViewController {
self
.
viewModel
.
requestTotalUnreadMsgCount
{
[
weak
self
]
success
,
error
in
guard
let
self
=
self
else
{
return
}
if
!
success
{
return
}
DispatchQueue
.
main
.
async
{
if
let
vcs
=
self
.
viewControllers
,
let
msgListVC
=
vcs
[
safe
:
2
]
{
let
count
=
self
.
viewModel
.
unreadTotalCount
...
...
galaxy/galaxy/Classes/Modules/Mine(我的)/C/YHMySettingViewController.swift
View file @
aec821c3
...
...
@@ -118,22 +118,16 @@ class YHMySettingViewController: YHBaseViewController, ConstraintRelatableTarget
[
weak
self
]
success
,
error
in
guard
let
self
=
self
else
{
return
}
YHHUD
.
hide
()
if
success
{
DispatchQueue
.
main
.
async
{
YHHUD
.
flash
(
message
:
"退出成功"
)
YHLoginManager
.
shared
.
clearUserInfo
()
NotificationCenter
.
default
.
post
(
name
:
YhConstant
.
YhNotification
.
didLogoutSuccessNotifiction
,
object
:
nil
)
// 发送清空所有未读消息通知
NotificationCenter
.
default
.
post
(
name
:
YhConstant
.
YhNotification
.
didMarkAllMessagesReadedNotifiction
,
object
:
nil
)
self
.
navigationController
?
.
popViewController
(
animated
:
true
)
}
return
}
var
msg
=
"退出失败"
if
let
error
=
error
,
!
error
.
errorMsg
.
isEmpty
{
msg
=
error
.
errorMsg
}
YHHUD
.
flash
(
message
:
msg
)
}
}
}
...
...
galaxy/galaxy/Classes/Modules/Mine(我的)/C/YHMyViewController.swift
View file @
aec821c3
...
...
@@ -182,7 +182,6 @@ class YHMyViewController: YHBaseViewController, ConstraintRelatableTarget {
self
.
msgViewModel
.
requestTotalUnreadMsgCount
{
[
weak
self
]
success
,
error
in
guard
let
self
=
self
else
{
return
}
if
!
success
{
return
}
DispatchQueue
.
main
.
async
{
let
count
=
self
.
msgViewModel
.
unreadTotalCount
for
item
in
self
.
items
{
...
...
@@ -259,9 +258,8 @@ extension YHMyViewController : UITableViewDelegate, UITableViewDataSource {
}
case
.
myTestCode
:
//我的测评码
printLog
(
"我的测评码"
)
YHHUD
.
flash
(
message
:
"还需要产品给图片链接"
)
let
vc
=
YHHomeWebViewController
()
vc
.
url
=
"https://
upload.cdn.galaxy-immi.com/sell/product/images/page-1686138671996
.png"
vc
.
url
=
"https://
test-cdn-pub.galaxy-immi.com/5000000/2377716732943678766120240418180233
.png"
self
.
navigationController
?
.
pushViewController
(
vc
)
case
.
appointGalaxyBay
:
//预约银河湾
...
...
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