Commit ab422df7 authored by wildfirecode's avatar wildfirecode

1

parent 5ef0d708
...@@ -495,7 +495,9 @@ export class NetManager extends ABNetManager { ...@@ -495,7 +495,9 @@ export class NetManager extends ABNetManager {
type: 'post', type: 'post',
dataType: 'json', dataType: 'json',
param: { param: {
activityId: DataManager.ins.customCfgData.actId activityId: DataManager.ins.customCfgData.actId,
detect: window['detect'],
deviceSessionId: window['_device_session_id']
}, },
hideMsg: true, hideMsg: true,
callback: callback callback: callback
...@@ -912,7 +914,7 @@ export class NetManager extends ABNetManager { ...@@ -912,7 +914,7 @@ export class NetManager extends ABNetManager {
dataType: 'json', dataType: 'json',
param: { param: {
activityId: DataManager.ins.customCfgData.actId, activityId: DataManager.ins.customCfgData.actId,
propType:propType propType: propType
}, },
callback: callback callback: callback
}; };
......
...@@ -73,6 +73,17 @@ export default class MapScene extends Scene { ...@@ -73,6 +73,17 @@ export default class MapScene extends Scene {
MapScene['firstPlayBgTag'] = true; MapScene['firstPlayBgTag'] = true;
} }
}, this); }, this);
this.scroll.viewport.scrollV = this.getScrollV();
//按钮放置在stage height的中间 stage height/2
}
getScrollV(){
const homeData = getHomeData();
if(homeData.levels) {
}
return 0;
} }
disableIcon(level) { disableIcon(level) {
...@@ -179,6 +190,11 @@ export default class MapScene extends Scene { ...@@ -179,6 +190,11 @@ export default class MapScene extends Scene {
this['boxani'].touchEnabled = false; this['boxani'].touchEnabled = false;
this['boxani'].touchChildren = false; this['boxani'].touchChildren = false;
await this.playAni(); await this.playAni();
try {
if (window['getRST']) window['getRST']();
} catch (error) {
console.warn(error)
}
NetManager.ins.hc_openTreasureBox((success) => { NetManager.ins.hc_openTreasureBox((success) => {
this['boxani'].touchEnabled = true; this['boxani'].touchEnabled = true;
this['boxani'].touchChildren = true; this['boxani'].touchChildren = true;
......
...@@ -10,13 +10,13 @@ export default class QuitPanel extends Panel { ...@@ -10,13 +10,13 @@ export default class QuitPanel extends Panel {
super.start(); super.start();
if (data) if (data)
this._level = data.level; this._level = data.level;
this['resumeBtn'].addEventListener(egret.TouchEvent.TOUCH_TAP, () => { // this['resumeBtn'].addEventListener(egret.TouchEvent.TOUCH_TAP, () => {
if (this._level) // if (this._level)
SceneCtrl.instance.change(ModuleTypes.START_SCENE, { level: this._level }); // SceneCtrl.instance.change(ModuleTypes.START_SCENE, { level: this._level });
else // else
SceneCtrl.instance.change(ModuleTypes.START_SCENE); // SceneCtrl.instance.change(ModuleTypes.START_SCENE);
}, this); // }, this);
this['quitBtn'].addEventListener(egret.TouchEvent.TOUCH_TAP, () => { this['quitBtn'].addEventListener(egret.TouchEvent.TOUCH_TAP, () => {
NetManager.ins.clickLog(getlogItem(18)); NetManager.ins.clickLog(getlogItem(18));
......
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