Commit 8f10ea45 authored by wildfirecode's avatar wildfirecode

1

parent 54102687
......@@ -60,6 +60,7 @@
<script src="libs/fileSave.js"></script>
<img id="pic" style="width:100%;position: absolute;z-index: 999;display: none;"/>
<script>
// localStorage.clear();
window['testUrl'] = 'http://cuxiaoprexg.m.cnsuning.com/scms/cx521.html?activityId=SL446689024459878400&subactivityId=SUB446689681678090240&businessid=cx521';
window['hbRainTime'] = 30; // 红包雨倒计时
window['plugs'] = [1, 2, 3]
......
......@@ -347,20 +347,20 @@ export default class MapScene extends Scene {
onAllPanelHide = () => {
if(!localStorage.getItem('activityguide')) {
NetManager.ins.hbRainBaseInfo((success, res) => {
if(!success) {
if(res.code == "600054" || res.code == "600055") {
this['guide'].visible = false;
}
return;
}
const data = res.data;
if(!data.currentSession && !data.nextSession) {
this['guide'].visible = false;
return;
}
// NetManager.ins.hbRainBaseInfo((success, res) => {
// if(!success) {
// if(res.code == "600054" || res.code == "600055") {
// this['guide'].visible = false;
// }
// return;
// }
// const data = res.data;
// if(!data.currentSession && !data.nextSession) {
// this['guide'].visible = false;
// return;
// }
this['guide'].visible = true;
});
// });
}
}
......
......@@ -5,18 +5,8 @@
"timestamp": 1573210800000,
"data": {
"currentRemainTimes": 0,
"currentSession": {
"sessionIndex": 6,
"startTime": 1573210800000,
"endTime": 1573299903000,
"limitScore": 10
},
"nextSession": {
"sessionIndex": 10,
"startTime": 1573440915952,
"endTime": 1573299903000,
"limitScore": 10
},
"canJoin": true
"currentSession": null,
"nextSession": null,
"canJoin": false
}
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment