Commit 3db437e7 authored by haiyoucuv's avatar haiyoucuv

init

parent 11ccbca6
......@@ -276,58 +276,58 @@ export class BlessingBagPage extends Scene {
}
//银福袋开启一个
SliverOneBtn() {
SliverOneBtn = _asyncThrottle(async () => {
if (store.bagInfo.remainBagSilverNum < 1) {
showToast("福袋数量不足");
} else {
showPanel(OpenLuckyPanel, {num: 1, type: "sliver"});
await showPanel(OpenLuckyPanel, {num: 1, type: "sliver"});
}
}
});
//银福袋开启五个
SliverFiveBtn() {
SliverFiveBtn = _asyncThrottle(async () => {
if (store.bagInfo.remainBagSilverNum < 5) {
showToast("福袋数量不足");
} else {
showPanel(OpenLuckyPanel, {num: 5, type: "sliver"});
await showPanel(OpenLuckyPanel, {num: 5, type: "sliver"});
}
}
});
//金福袋开启一个
GoldOneBtn() {
GoldOneBtn = _asyncThrottle(async () => {
if (store.bagInfo.remainBagSilverNum < store.bagInfo.bagSilverToGold) {
showToast("福袋数量不足");
} else {
showPanel(OpenLuckyPanel, {num: 1, type: "gold"})
await showPanel(OpenLuckyPanel, {num: 1, type: "gold"})
}
}
});
//金福袋开启五个
GoldFiveBtn() {
GoldFiveBtn = _asyncThrottle(async () => {
if (store.bagInfo.remainBagSilverNum < store.bagInfo.bagSilverToGold * 5) {
showToast("福袋数量不足");
} else {
showPanel(OpenLuckyPanel, {num: 5, type: "gold"})
await showPanel(OpenLuckyPanel, {num: 5, type: "gold"})
}
}
});
//钻石福袋开启五个
DiamondOneBtn() {
DiamondOneBtn = _asyncThrottle(async () => {
if (store.bagInfo.remainBagSilverNum < store.bagInfo.bagSilverToDiamond) {
showToast("福袋数量不足");
} else {
showPanel(OpenLuckyPanel, {num: 1, type: "diamond"});
await showPanel(OpenLuckyPanel, {num: 1, type: "diamond"});
}
}
});
//钻石福袋开启一个
DiamondFiveBtn() {
DiamondFiveBtn = _asyncThrottle(async () => {
if (store.bagInfo.remainBagSilverNum < store.bagInfo.bagSilverToDiamond * 5) {
showToast("福袋数量不足");
} else {
showPanel(OpenLuckyPanel, {num: 5, type: "diamond"});
await showPanel(OpenLuckyPanel, {num: 5, type: "diamond"});
}
}
});
//去赚福袋任务
......
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