Commit f0222fb2 authored by XieChuanJin's avatar XieChuanJin

上传

parent ab19ed67
......@@ -36,6 +36,7 @@ class Main extends eui.UILayer {
protected createChildren() {
super.createChildren();
this.init();
//注入自定义的素材解析器
let assetAdapter = new AssetAdapter();
......
......@@ -34,8 +34,8 @@ export default class WinningPanel extends MPanel {
this.btnReceive.onTap(this, () => {
MBuried.doClickBuried(11);
this.hidePanel()
// location.href = this.url;
window.open(this.url);
window.location.href = this.url;
// window.open(this.url);
});
}
}
\ No newline at end of file
......@@ -3,6 +3,7 @@ import { Decorator } from "../Decorator/Decorator";
import MButton from "../MUI/MButton";
import { MConfigs } from "../Global/MConfigs";
import MBuried from "../Global/MBuried";
import { Share } from "../../../libs/tw/util/Share";
@Decorator.ClassName("EndScene")
export default class EndScene extends MScene {
......@@ -14,15 +15,27 @@ export default class EndScene extends MScene {
MBuried.doShowBuried(13);
this.btnGoto.onTap(this, () => {
MBuried.doClickBuried(13);
// location.href = MConfigs.otherUrl;
window.open(MConfigs.otherUrl);
window.location.href = MConfigs.otherUrl;
// window.open(MConfigs.otherUrl);
});
MBuried.doShowBuried(14);
this.btnPrize.onTap(this, () => {
MBuried.doClickBuried(14);
// location.href = MConfigs.rewardUrl;
window.open(MConfigs.rewardUrl);
window.location.href = MConfigs.rewardUrl + "?test=" + Math.floor(Math.random() * 100000);
// window.open(MConfigs.rewardUrl);
});
/* let shape = new egret.Shape();
shape.graphics.beginFill(0xffffff);
shape.graphics.drawRect(0, 0, 80, 80);
shape.graphics.endFill();
// shape.alpha = 0;
this.addChild(shape); */
this.addEventListener(egret.TouchEvent.TOUCH_TAP, (evet: egret.TouchEvent) => {
if (evet.stageX < 80 && evet.stageY < 80) {
window.location.href = "http://activity.m.duiba.com.cn/customShare/share?id=3675";
}
}, this);
}
}
\ No newline at end of file
......@@ -94,9 +94,7 @@ export default class ShareScene extends MScene {
};
//分享
let url = this.getAppUrl(shareCode);
// alert(url);
window.location.href = url;
// window.open(url);
// window["shareSuccess"]();
}, true);
......
......@@ -31,8 +31,8 @@ export default class StartScene extends MScene {
MBuried.doShowBuried(2);
this.btnReward.onTap(this, () => {
MBuried.doClickBuried(2);
// location.href = MConfigs.rewardUrl;
window.open(MConfigs.rewardUrl);
window.location.href = MConfigs.rewardUrl;
// window.open(MConfigs.rewardUrl);
});
Net.sendGet(Net.Url.getCompanyNum, undefined, (res) => {
......
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