Commit 0b716b18 authored by wildfirecode13's avatar wildfirecode13

Merge branch 'disu0811' of http://gitlab2.dui88.com/wildfirecode13/wfc13 into disu0811

parents 04853227 4e0d5b4e
......@@ -2,8 +2,8 @@
"code": null,
"data": {
"surplusCount": 0,
"credits": 22222,
"needCredits": 3333,
"credits": 5,
"needCredits": 10,
"type": 1,
"isMember":1
},
......
......@@ -9,7 +9,7 @@ export class notEnoughMoneyPanel extends Panel {
click_notEnoughMoney_btn(){
sendLog("click",5);
console.log('click_notEnoughMoney_btn');
location.href = 'pages/pointsmall-index/pointsmall-index?pageId=ff8080816deed7ce016df398f7662325';
}
get groupNames() { return ["notEnoughMoney"] }
......
......@@ -2,6 +2,10 @@ import { showPanel } from "../../module/ctrls";
import { RES } from "../../module/RES";
import { delayClick } from "../common/delayClick";
import { CostPanel } from "../panels/cost";
import { notEnoughMoneyPanel } from "../panels/notEnoughMoney";
import { timesNotEnoughPanel } from "../panels/timesNotEnough";
import { getWebData } from "../WebNet";
import { WebNetName } from "../WebNetName";
import { Box } from "./Box";
export interface Move {
......@@ -80,7 +84,12 @@ export class BoxGroup extends FYGE.Sprite {
indexsvga.position.set(e.target.x-200,e.target.y-190)
this.addChild(indexsvga);
indexsvga.startAniRange(1, indexsvga.totalFrames, 1, () => {
showPanel(CostPanel);
const result = getWebData(WebNetName.index);
if (result.data.needCredits > result.data.credits) {
showPanel(notEnoughMoneyPanel);
} else {
showPanel(CostPanel);
}
});
}
}
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