Commit c24d798f authored by 邱旭's avatar 邱旭

1

parent 75755348
......@@ -70,12 +70,14 @@ export default class MapScene extends Scene {
async start(data?) {
// NetManager.ins.getInviteInfo((success, res)=>{
// if(!success){
// setTimeout(() => {
// NetManager.ins.getInviteInfo((success, res) => {
// if(!success) {
//
// }
// PanelCtrl.instance.show('scratch', res.data);
// });
// }, 1000);
super.start();
......@@ -112,7 +114,7 @@ export default class MapScene extends Scene {
noticeAdvert = {enable: false}
}
if (noticeAdvert && noticeAdvert.enable && nowTimerStr2 != oldTimerStr2) {
if(noticeAdvert && noticeAdvert.enable && nowTimerStr2 != oldTimerStr2) {
// if (!adTag) {
panels.push('ad');
// adTag = true;
......@@ -120,9 +122,9 @@ export default class MapScene extends Scene {
localStorage.setItem('nowTimer2Str' + window['CFG'].consumerId, nowTimerStr2);
}
const { signInfoVO } = DataManager.ins.getData('getSignInfo');
if (signInfoVO.continueDay < 7) { //表示明天还可以签到
if (signInfoVO.todaySigned == 0 && oldTimerStr != nowTimerStr) {
const {signInfoVO} = DataManager.ins.getData('getSignInfo');
if(signInfoVO.continueDay < 7) { //表示明天还可以签到
if(signInfoVO.todaySigned == 0 && oldTimerStr != nowTimerStr) {
panels.push('sign');
localStorage.setItem('nowTimerStr' + window['CFG'].consumerId, nowTimerStr);
}
......@@ -267,13 +269,13 @@ export default class MapScene extends Scene {
}
updateSign(){
const { signInfoVO } = DataManager.ins.getData('getSignInfo');
if (signInfoVO.continueDay < 7) { //表示明天还可以签到
this['sign_s1'].visible=signInfoVO.todaySigned == 0;
this['sign_s2'].visible=!this['sign_s1'].visible;
}else {
this['sign_s2'].visible=true;
updateSign() {
const {signInfoVO} = DataManager.ins.getData('getSignInfo');
if(signInfoVO.continueDay < 7) { //表示明天还可以签到
this['sign_s1'].visible = signInfoVO.todaySigned == 0;
this['sign_s2'].visible = !this['sign_s1'].visible;
} else {
this['sign_s2'].visible = true;
}
}
......
......@@ -199,7 +199,6 @@ class InviteItem extends eui.ItemRenderer {
}
dataChanged() {
console.log(this.data);
this.img.source = this.data.avatar || "http://yun.duiba.com.cn/db_games/default_avatar.png";
this.img.addEventListener(egret.TouchEvent.TOUCH_TAP, () => {
if (this.data.callFun) {
......
......@@ -166,8 +166,8 @@ export default class ScratchPanel extends Panel {
}
private hongbaoEffect(){
egret.Tween.get(this["hongbao"]).to({scaleX:0.8, scaleY:0.8}, 300, egret.Ease.quadInOut).call(()=>{
egret.Tween.get(this["hongbao"]).to({scaleX:1, scaleY:1}, 200, egret.Ease.quadInOut).wait(1500).call(()=>{
egret.Tween.get(this["hongbao"]).to({scaleX:0.8, scaleY:0.8}, 200, egret.Ease.quadInOut).call(()=>{
egret.Tween.get(this["hongbao"]).to({scaleX:1, scaleY:1}, 100, egret.Ease.quadInOut).wait(1500).call(()=>{
this.hongbaoEffect();
});
});
......@@ -201,8 +201,7 @@ class ScratchItem extends eui.ItemRenderer {
}
dataChanged() {
this.img.mask = this.mask
console.log(this.data);
this.img.mask = this.mask;
this.img.source = this.data.avatar || "http://yun.duiba.com.cn/db_games/default_avatar.png";
this.img.addEventListener(egret.TouchEvent.TOUCH_TAP, () => {
if(this.data.callFun) {
......
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