Commit 529934c1 authored by 邱旭's avatar 邱旭

1

parent 5734288e
...@@ -677,6 +677,7 @@ export default class MapScene extends Scene { ...@@ -677,6 +677,7 @@ export default class MapScene extends Scene {
switch(true) { switch(true) {
case (flag == 0): // 未完成 显示倒计时 case (flag == 0): // 未完成 显示倒计时
this["inviteGroup"].visible = true; this["inviteGroup"].visible = true;
this["inviteGroup"].touchEnabled = true;
if(!mapAdvert || mapAdvert.enable == false) { if(!mapAdvert || mapAdvert.enable == false) {
this['activitys'].y = 458; this['activitys'].y = 458;
this['guideInner'].y = 185; this['guideInner'].y = 185;
...@@ -693,6 +694,7 @@ export default class MapScene extends Scene { ...@@ -693,6 +694,7 @@ export default class MapScene extends Scene {
case (flag == 1): // 完成未开奖 待领奖 显示待领奖 case (flag == 1): // 完成未开奖 待领奖 显示待领奖
NetManager.ins.showLog(getlogItem(33)); NetManager.ins.showLog(getlogItem(33));
this["inviteGroup"].visible = true; this["inviteGroup"].visible = true;
this["inviteGroup"].touchEnabled = true;
if(!mapAdvert || mapAdvert.enable == false) { if(!mapAdvert || mapAdvert.enable == false) {
this['activitys'].y = 458; this['activitys'].y = 458;
this['guideInner'].y = 185; this['guideInner'].y = 185;
...@@ -704,6 +706,7 @@ export default class MapScene extends Scene { ...@@ -704,6 +706,7 @@ export default class MapScene extends Scene {
case (flag == 2): // 领奖成功 无角标 case (flag == 2): // 领奖成功 无角标
case (flag == 3): // 领奖失败 无角标 case (flag == 3): // 领奖失败 无角标
this["inviteGroup"].visible = true; this["inviteGroup"].visible = true;
this["inviteGroup"].touchEnabled = true;
if(!mapAdvert || mapAdvert.enable == false) { if(!mapAdvert || mapAdvert.enable == false) {
this['activitys'].y = 458; this['activitys'].y = 458;
this['guideInner'].y = 185; this['guideInner'].y = 185;
...@@ -714,6 +717,7 @@ export default class MapScene extends Scene { ...@@ -714,6 +717,7 @@ export default class MapScene extends Scene {
break; break;
case (flag == 4): // 可以开启下一次发任务 显示立即到账 case (flag == 4): // 可以开启下一次发任务 显示立即到账
this["inviteGroup"].visible = true; this["inviteGroup"].visible = true;
this["inviteGroup"].touchEnabled = true;
if(!mapAdvert || mapAdvert.enable == false) { if(!mapAdvert || mapAdvert.enable == false) {
this['activitys'].y = 458; this['activitys'].y = 458;
this['guideInner'].y = 185; this['guideInner'].y = 185;
...@@ -725,6 +729,7 @@ export default class MapScene extends Scene { ...@@ -725,6 +729,7 @@ export default class MapScene extends Scene {
break; break;
case (flag == 5): // 等待开启下一次发任务 无角标 case (flag == 5): // 等待开启下一次发任务 无角标
this["inviteGroup"].visible = true; this["inviteGroup"].visible = true;
this["inviteGroup"].touchEnabled = true;
if(!mapAdvert || mapAdvert.enable == false) { if(!mapAdvert || mapAdvert.enable == false) {
this['activitys'].y = 458; this['activitys'].y = 458;
this['guideInner'].y = 185; this['guideInner'].y = 185;
...@@ -735,6 +740,7 @@ export default class MapScene extends Scene { ...@@ -735,6 +740,7 @@ export default class MapScene extends Scene {
break; break;
case (flag == 6): // 无入口 case (flag == 6): // 无入口
this["inviteGroup"].visible = false; this["inviteGroup"].visible = false;
this["inviteGroup"].touchEnabled = false;
this['adBtn'].y = 323.76; this['adBtn'].y = 323.76;
if(mapAdvert && mapAdvert.enable) { if(mapAdvert && mapAdvert.enable) {
this['guideInner'].y = 185; this['guideInner'].y = 185;
......
...@@ -53,6 +53,9 @@ export default class ActIcon { ...@@ -53,6 +53,9 @@ export default class ActIcon {
this.actsShowBtn.visible = visible; this.actsShowBtn.visible = visible;
this.actTips.visible = visible; this.actTips.visible = visible;
this.actIconsGroup.visible = visible; this.actIconsGroup.visible = visible;
this.actsShowBtn.touchEnabled = visible;
this.actTips.touchEnabled = visible;
this.actIconsGroup.touchEnabled = visible;
} }
private onTap_actsShowBtn() { private onTap_actsShowBtn() {
......
...@@ -35,9 +35,11 @@ export default class IconBase { ...@@ -35,9 +35,11 @@ export default class IconBase {
} }
if(this.iconTips){ if(this.iconTips){
this.iconTips.visible = visible; this.iconTips.visible = visible;
this.iconTips.touchEnabled = visible;
} }
if(this.iconTipsBg){ if(this.iconTipsBg){
this.iconTipsBg.visible = visible; this.iconTipsBg.visible = visible;
this.iconTipsBg.touchEnabled = visible;
} }
} }
...@@ -50,6 +52,10 @@ export default class IconBase { ...@@ -50,6 +52,10 @@ export default class IconBase {
this.iconBtn.visible = visible; this.iconBtn.visible = visible;
// this.iconTipsBg.visible = visible; // this.iconTipsBg.visible = visible;
// this.iconTips.visible = visible; // this.iconTips.visible = visible;
this.iconGroup.touchEnabled = visible;
this.iconBtn.touchEnabled = visible;
// this.iconTipsBg.touchEnabled = visible;
// this.iconTips.touchEnabled = visible;
GDispatcher.dispatchEvent('updateActIcon'); GDispatcher.dispatchEvent('updateActIcon');
} }
......
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