Commit 90c7686e authored by wildfirecode13's avatar wildfirecode13

u

parent 22c927a4
No preview for this file type
const base = 'http://0.0.0.0:8080/?';
const base = 'https://activity.saas.duibatest.com.cn/projectx/p8f86726f/index.html?appID=19321&';
export const getShareUrl = (queryParams) => {
let str = '';
......
......@@ -29,7 +29,7 @@ const cloneTextField = (prize_tips2) => {
export class PrizePanel extends Panel {
amountTxt: FYGE.TextField;
percentTxt: FYGE.TextField;
inviteBtn;
inviteBtn;prize_close;
wrapper;
showAni() {
......@@ -52,6 +52,7 @@ export class PrizePanel extends Panel {
var skin = RES.getSkinDataByName(this.skinName);
this.position.set(skin.x, skin.y);
this.inviteBtn = getObject(this, 'prize_invite');
this.prize_close = getObject(this, 'prize_close');
this.scaleX = 0;
this.scaleY = 0;
......@@ -123,25 +124,27 @@ export class PrizePanel extends Panel {
});
}
hidePanel() {
super.hidePanel();
changeScene(IndexScene);
onClick_prize_close(){
changeScene(IndexScene,{ from: 'prize'});
this.hidePanel();
}
onClick_inviteBtn() {
showShareMask();
}
get closeBtns() {
return [getObject(this, 'prize_close')];
}
// get closeBtns() {
// return [getObject(this, 'prize_close')];
// }
initEvents() {
super.initEvents();
this.inviteBtn.addEventListener(FYGE.MouseEvent.CLICK, this.onClick_inviteBtn, this);
this.prize_close.addEventListener(FYGE.MouseEvent.CLICK, this.onClick_prize_close, this);
}
removeEvents() {
super.removeEvents();
this.prize_close.removeEventListener(FYGE.MouseEvent.CLICK, this.onClick_prize_close, this);
this.inviteBtn.removeEventListener(FYGE.MouseEvent.CLICK, this.onClick_inviteBtn, this);
}
......
......@@ -101,7 +101,7 @@ export class IndexScene extends Scene {
super.start(data);
data = data || {};
const { action, from } = data;
console.log('IndexScene', 'from=', from, 'action=', action);
console.log('IndexScene from=', from, 'action=', action);
if (action == 'showSharePanel') {
this.showSharePanel();
}
......
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