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
926336e2
Commit
926336e2
authored
Sep 13, 2024
by
David黄金龙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
处理 多次点击 多次push的问题
parent
62e77f33
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
25 additions
and
4 deletions
+25
-4
YHHomePageViewController.swift
...Classes/Modules/Home(首页)/C/YHHomePageViewController.swift
+13
-1
YHMessageListVC.swift
...alaxy/Classes/Modules/Message(消息)/C/YHMessageListVC.swift
+10
-2
YHUatHelper.swift
.../galaxy/Classes/Modules/UatModule(灰度功能)/YHUatHelper.swift
+2
-1
No files found.
galaxy/galaxy/Classes/Modules/Home(首页)/C/YHHomePageViewController.swift
View file @
926336e2
...
@@ -27,6 +27,8 @@ class YHHomePageViewController: YHBaseViewController {
...
@@ -27,6 +27,8 @@ class YHHomePageViewController: YHBaseViewController {
var
homeHeaderViewHeight
:
CGFloat
=
0.0
// = self.homeHeaderView.getHomeHeadViewH(showTips: false)
var
homeHeaderViewHeight
:
CGFloat
=
0.0
// = self.homeHeaderView.getHomeHeadViewH(showTips: false)
private
var
isGoYHManagerFlag
:
Bool
=
false
lazy
var
homeCollectView
=
{
lazy
var
homeCollectView
=
{
// 设置布局方向
// 设置布局方向
...
@@ -84,8 +86,18 @@ class YHHomePageViewController: YHBaseViewController {
...
@@ -84,8 +86,18 @@ class YHHomePageViewController: YHBaseViewController {
lazy
var
homeHeaderView
:
YHHomeHeadView
=
{
lazy
var
homeHeaderView
:
YHHomeHeadView
=
{
let
view
=
YHHomeHeadView
()
let
view
=
YHHomeHeadView
()
view
.
galaxyManagerItemClickEvent
=
{
[
weak
self
]
in
view
.
galaxyManagerItemClickEvent
=
{
[
weak
self
]
in
guard
let
self
=
self
else
{
return
}
if
self
.
isGoYHManagerFlag
{
return
}
self
.
isGoYHManagerFlag
=
true
YHHUD
.
show
(
.
progress
(
message
:
"加载中..."
))
YHHUD
.
show
(
.
progress
(
message
:
"加载中..."
))
self
?
.
gotoYinHeManager
(
completion
:
{
[
weak
self
]
success
in
self
.
gotoYinHeManager
(
completion
:
{
[
weak
self
]
success
in
self
?
.
isGoYHManagerFlag
=
false
guard
let
self
=
self
else
{
guard
let
self
=
self
else
{
return
return
}
}
...
...
galaxy/galaxy/Classes/Modules/Message(消息)/C/YHMessageListVC.swift
View file @
926336e2
...
@@ -17,6 +17,8 @@ class YHMessageListVC: YHBaseViewController {
...
@@ -17,6 +17,8 @@ class YHMessageListVC: YHBaseViewController {
return
model
return
model
}()
}()
private
var
isGoYHManagerFlag
:
Bool
=
false
private
let
serviceCenterViewModel
:
YHServiceCenterMainViewModel
=
YHServiceCenterMainViewModel
()
private
let
serviceCenterViewModel
:
YHServiceCenterMainViewModel
=
YHServiceCenterMainViewModel
()
var
isNotifyEnabled
=
false
var
isNotifyEnabled
=
false
...
@@ -358,6 +360,7 @@ extension YHMessageListVC {
...
@@ -358,6 +360,7 @@ extension YHMessageListVC {
private
func
gotoYinHeManager
(
completion
:
@escaping
(
Bool
)
->
Void
)
{
private
func
gotoYinHeManager
(
completion
:
@escaping
(
Bool
)
->
Void
)
{
guard
let
userId
=
YHLoginManager
.
shared
.
userModel
?
.
id
,
userId
.
count
>
0
else
{
guard
let
userId
=
YHLoginManager
.
shared
.
userModel
?
.
id
,
userId
.
count
>
0
else
{
completion
(
false
)
return
return
}
}
YHButlerServiceManager
.
shared
.
gotoButlerServiceSessionVC
(
navigationController
:
navigationController
,
completion
:
{
success
in
YHButlerServiceManager
.
shared
.
gotoButlerServiceSessionVC
(
navigationController
:
navigationController
,
completion
:
{
success
in
...
@@ -426,11 +429,16 @@ extension YHMessageListVC: UITableViewDelegate, UITableViewDataSource {
...
@@ -426,11 +429,16 @@ extension YHMessageListVC: UITableViewDelegate, UITableViewDataSource {
let
msgItem
=
msgArr
[
indexPath
.
row
]
let
msgItem
=
msgArr
[
indexPath
.
row
]
if
msgItem
.
type
==
YHMessageType
.
yinheManager
.
rawValue
{
// 进银河管家
if
msgItem
.
type
==
YHMessageType
.
yinheManager
.
rawValue
{
// 进银河管家
if
isGoYHManagerFlag
{
return
}
isGoYHManagerFlag
=
true
self
.
gotoYinHeManager
{
success
in
self
.
gotoYinHeManager
{
success
in
self
.
isGoYHManagerFlag
=
false
YHHUD
.
hide
()
YHHUD
.
hide
()
if
success
{
if
success
{
//YHButlerServiceManager.shared.clearUnreadCount()
self
.
managerSession
.
unreadCount
=
0
self
.
managerSession
.
unreadCount
=
0
self
.
tableView
.
reloadData
()
self
.
tableView
.
reloadData
()
}
}
...
...
galaxy/galaxy/Classes/Modules/UatModule(灰度功能)/YHUatHelper.swift
View file @
926336e2
...
@@ -148,10 +148,11 @@ extension YHUatHelper {
...
@@ -148,10 +148,11 @@ extension YHUatHelper {
viewModel
.
getUatList
{
success
,
error
in
viewModel
.
getUatList
{
success
,
error
in
if
success
{
if
success
{
self
.
isDataOk
=
true
self
.
isDataOk
=
true
NotificationCenter
.
default
.
post
(
name
:
YhConstant
.
YhNotification
.
didRevUatParam
,
object
:
nil
)
}
else
{
}
else
{
self
.
isDataOk
=
false
self
.
isDataOk
=
false
}
}
NotificationCenter
.
default
.
post
(
name
:
YhConstant
.
YhNotification
.
didRevUatParam
,
object
:
nil
)
}
}
}
}
}
}
...
...
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