Commit ab4dd17e authored by shunx 马's avatar shunx 马

111

parent e7c8bc27
{
"code": null,
"data": {
"surplusCount": 1,
"credits": 22222,
"needCredits": 3333,
"surplusCount": 0,
"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, () => {
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