Commit d471676f authored by wildfirecode's avatar wildfirecode

1

parent 442597b8
......@@ -324,10 +324,12 @@ export default class MainBase extends eui.UILayer {
}
if (window['isInvitePage'] == 1) {
this.ajaxElement().then(() => {
Buried.init();
SceneCtrl.instance.change(ModuleTypes.INVITE_SCENE);
})
} else if (window['isInvitePage'] == 2) {
this.ajaxElement().then(() => {
Buried.init();
SceneCtrl.instance.change(ModuleTypes.INVITE_SCENE2);
})
}
......
import Scene from "../libs/new_wx/components/Scene";
import Utils from "./Utils";
import PanelCtrl from "../libs/new_wx/ctrls/panelCtrl";
import { NetManager } from "../libs/tw/manager/NetManager";
import { getlogItem } from "./Main";
export default class H5Scene extends Scene {
async start(data?) {
super.start();
NetManager.ins.showLog(getlogItem(35));
this['rulebtn'].addEventListener(egret.TouchEvent.TOUCH_TAP,()=>{
PanelCtrl.instance.show('inviterule')
},this);
this['gobtn'].addEventListener(egret.TouchEvent.TOUCH_TAP,()=>{
NetManager.ins.clickLog(getlogItem(35));
const code = Utils.getRequestByKey('shareCode');
window.location.href = `${window['targetUrl']}&shareCode=${code}`
},this);
}
get skinKey() { return 'H5' }
}
......@@ -801,6 +801,10 @@ export default class MapScene extends Scene {
showToast('哎呀!奖励与您擦肩而过!快继续闯关!');
}
NetManager.ins.hc_home(() => {
this.updateScene();
}, window['collectRuleId']);
} else {
PanelCtrl.instance.show('box2');
}
......
......@@ -26,7 +26,7 @@ export default class BackPanel extends Panel {
}
onTapInvite() {
gotoNextLevel();
// gotoNextLevel();
}
updateOption(option: any) {
......
......@@ -16,6 +16,6 @@
"value":"虚拟商品标识符"
},
"desc":"OK",
"success":0,
"success":1,
"timestamp":1572079274940
}
\ No newline at end of file
......@@ -4,7 +4,7 @@
"desc": "OK",
"timestamp": 1571819565824,
"data": {
"wealth": 140,
"wealth": 999,
"totalStars": 359,
"levels": [
],
......@@ -25,8 +25,8 @@
"remainEnargy": 5,
"askForEnergy":false,
"canReceiveTreasureBoxNum": 10,
"nextRangeStarsNum": 0,
"isGetAllTreasureBox": true,
"nextRangeStarsNum": 100,
"isGetAllTreasureBox": false,
"refectionCountdown": 1685
}
}
\ 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