Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
X
xiaoxiaole
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
wildfirecode13
xiaoxiaole
Commits
2410f6a3
Commit
2410f6a3
authored
Sep 23, 2019
by
wildfirecode
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
7ea02176
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
1 deletion
+12
-1
MainBase.ts
egret/libs/new_wx/MainBase.ts
+11
-0
home.json
mock/happyclear/home.json
+1
-1
No files found.
egret/libs/new_wx/MainBase.ts
View file @
2410f6a3
...
@@ -303,6 +303,17 @@ export default class MainBase extends eui.UILayer {
...
@@ -303,6 +303,17 @@ export default class MainBase extends eui.UILayer {
else
if
(
SceneCtrl
.
instance
.
currentScene
instanceof
MainScene
)
else
if
(
SceneCtrl
.
instance
.
currentScene
instanceof
MainScene
)
playGameBg
();
playGameBg
();
}
}
NetManager
.
ins
.
hc_home
(()
=>
{
updateMainTimer
();
//更新bloodpanel和mapscene
const
currentScene
=
SceneCtrl
.
instance
.
currentScene
;
if
(
currentScene
&&
currentScene
[
'updateTimerView'
])
currentScene
[
'updateTimerView'
]();
const
current
=
PanelCtrl
.
instance
.
_current
;
if
(
current
&&
current
[
'updateTimerView'
])
current
[
'updateTimerView'
]();
},
window
[
'collectRuleId'
]);
}
}
if
(
document
.
visibilityState
==
"hidden"
)
{
if
(
document
.
visibilityState
==
"hidden"
)
{
...
...
mock/happyclear/home.json
View file @
2410f6a3
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
"desc"
:
"OK"
,
"desc"
:
"OK"
,
"timestamp"
:
1566885811001
,
"timestamp"
:
1566885811001
,
"data"
:
{
"data"
:
{
"refectionCountdown"
:
10
0
,
"refectionCountdown"
:
10
,
"remainEnargy"
:
4
,
"remainEnargy"
:
4
,
"isGetAllTreasureBox"
:
0
,
"isGetAllTreasureBox"
:
0
,
"wealth"
:
7960
,
"wealth"
:
7960
,
...
...
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