Commit ab422df7 authored by wildfirecode's avatar wildfirecode

1

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