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
8f10ea45
Commit
8f10ea45
authored
Dec 21, 2019
by
wildfirecode
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
54102687
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
26 deletions
+17
-26
index.html
egret/index.html
+1
-0
MapScene.ts
egret/src/mapScene/MapScene.ts
+13
-13
hbRainBaseInfo.json
mock/happyclear/hbRainBaseInfo.json
+3
-13
No files found.
egret/index.html
View file @
8f10ea45
...
@@ -60,6 +60,7 @@
...
@@ -60,6 +60,7 @@
<script
src=
"libs/fileSave.js"
></script>
<script
src=
"libs/fileSave.js"
></script>
<img
id=
"pic"
style=
"width:100%;position: absolute;z-index: 999;display: none;"
/>
<img
id=
"pic"
style=
"width:100%;position: absolute;z-index: 999;display: none;"
/>
<script>
<script>
// localStorage.clear();
window
[
'testUrl'
]
=
'http://cuxiaoprexg.m.cnsuning.com/scms/cx521.html?activityId=SL446689024459878400&subactivityId=SUB446689681678090240&businessid=cx521'
;
window
[
'testUrl'
]
=
'http://cuxiaoprexg.m.cnsuning.com/scms/cx521.html?activityId=SL446689024459878400&subactivityId=SUB446689681678090240&businessid=cx521'
;
window
[
'hbRainTime'
]
=
30
;
// 红包雨倒计时
window
[
'hbRainTime'
]
=
30
;
// 红包雨倒计时
window
[
'plugs'
]
=
[
1
,
2
,
3
]
window
[
'plugs'
]
=
[
1
,
2
,
3
]
...
...
egret/src/mapScene/MapScene.ts
View file @
8f10ea45
...
@@ -347,20 +347,20 @@ export default class MapScene extends Scene {
...
@@ -347,20 +347,20 @@ export default class MapScene extends Scene {
onAllPanelHide
=
()
=>
{
onAllPanelHide
=
()
=>
{
if
(
!
localStorage
.
getItem
(
'activityguide'
))
{
if
(
!
localStorage
.
getItem
(
'activityguide'
))
{
NetManager
.
ins
.
hbRainBaseInfo
((
success
,
res
)
=>
{
//
NetManager.ins.hbRainBaseInfo((success, res) => {
if
(
!
success
)
{
//
if(!success) {
if
(
res
.
code
==
"600054"
||
res
.
code
==
"600055"
)
{
//
if(res.code == "600054" || res.code == "600055") {
this
[
'guide'
].
visible
=
false
;
//
this['guide'].visible = false;
}
//
}
return
;
//
return;
}
//
}
const
data
=
res
.
data
;
//
const data = res.data;
if
(
!
data
.
currentSession
&&
!
data
.
nextSession
)
{
//
if(!data.currentSession && !data.nextSession) {
this
[
'guide'
].
visible
=
false
;
//
this['guide'].visible = false;
return
;
//
return;
}
//
}
this
[
'guide'
].
visible
=
true
;
this
[
'guide'
].
visible
=
true
;
});
//
});
}
}
}
}
...
...
mock/happyclear/hbRainBaseInfo.json
View file @
8f10ea45
...
@@ -5,18 +5,8 @@
...
@@ -5,18 +5,8 @@
"timestamp"
:
1573210800000
,
"timestamp"
:
1573210800000
,
"data"
:
{
"data"
:
{
"currentRemainTimes"
:
0
,
"currentRemainTimes"
:
0
,
"currentSession"
:
{
"currentSession"
:
null
,
"sessionIndex"
:
6
,
"nextSession"
:
null
,
"startTime"
:
1573210800000
,
"canJoin"
:
false
"endTime"
:
1573299903000
,
"limitScore"
:
10
},
"nextSession"
:
{
"sessionIndex"
:
10
,
"startTime"
:
1573440915952
,
"endTime"
:
1573299903000
,
"limitScore"
:
10
},
"canJoin"
:
true
}
}
}
}
\ No newline at end of file
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