Commit c31397fe authored by wildfirecode13's avatar wildfirecode13

1

parent 5163e0f6
......@@ -3,10 +3,10 @@
"data": {
"needPop":0,
"activityOver": false,
"surplusCount": 0,
"credits": 222,
"surplusCount": 1,
"credits": 2,
"needCredits": 111,
"type": 2,
"type": 1,
"options": [{
"degree": null,
"icon": "//yun.duiba.com.cn/images/202108/ma00scey0f.png",
......
......@@ -831,5 +831,5 @@ export const ResJson = {
}
}
],
"path": "https://yun.duiba.com.cn/db_games/activity/template/1632710327/resource/"
"path": "https://yun.duiba.com.cn/db_games/activity/template/1632731459/resource/"
}
\ No newline at end of file
......@@ -13,6 +13,8 @@ export class notEnoughMoneyShareHasTimesPanel extends Panel {
hidePanel() {
this.stage.dispatchEvent("restartEnterFrame", {})
this.stage.dispatchEvent("updateShareTips", {})
super.hidePanel();
}
......
......@@ -116,6 +116,7 @@ export class IndexScene extends Scene {
list.updateData(arrayNew);
hand && FYGE.Tween.get(hand, { loop: true }).to({ scaleX: 1.5, scaleY: 1.5 }, 1000).to({ scaleX: 1, scaleY: 1 }, 1000);
this.stage.addEventListener("restartEnterFrame", this.onRestartFrame, this);
this.stage.addEventListener("updateShareTips", this.updateShareTips, this);
boxGroup.addEventListener("stopIndexEnterFrame", this.removeEvent, this);
shareButton = getObject(this, 'index_sharetips');
shareButton.addEventListener(FYGE.MouseEvent.CLICK, () => {
......@@ -249,9 +250,9 @@ export class IndexScene extends Scene {
getBoxButton.visible = true;
shareButton.visible = false;
if (result.data.needCredits > result.data.credits) {
hand.visible = true;
getBoxButton.visible = false;
shareButton.visible = true;
// hand.visible = true;
// getBoxButton.visible = false;
// shareButton.visible = true;
}
}
} else {
......@@ -275,5 +276,12 @@ export class IndexScene extends Scene {
}
}
updateShareTips(){
const getBoxButton = getObject(this, 'index_opentips');
hand.visible = true;
getBoxButton.visible = false;
shareButton.visible = true;
}
}
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