Commit d471676f authored by wildfirecode's avatar wildfirecode

1

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