Commit c31397fe authored by wildfirecode13's avatar wildfirecode13

1

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