Commit 3c3da063 authored by wildfirecode's avatar wildfirecode

1

parent 421ed1d2
...@@ -247,6 +247,7 @@ export default class MapScene extends Scene { ...@@ -247,6 +247,7 @@ export default class MapScene extends Scene {
} }
onTap_boxLayer() { onTap_boxLayer() {
NetManager.ins.clickLog(getlogItem(1));
const data = getHomeData(); const data = getHomeData();
if (data.canReceiveTreasureBoxNum > 0) { if (data.canReceiveTreasureBoxNum > 0) {
this['boxLayer'].visible = true; this['boxLayer'].visible = true;
......
...@@ -27,6 +27,7 @@ export default class ShopPanel extends Panel { ...@@ -27,6 +27,7 @@ export default class ShopPanel extends Panel {
onBuy1() { onBuy1() {
PanelCtrl.instance.show('Buy1'); PanelCtrl.instance.show('Buy1');
NetManager.ins.clickLog(getlogItem(9));
// this.buyBtn1.enabled = false; // this.buyBtn1.enabled = false;
// NetManager.ins.hc_exchange((success) => { // NetManager.ins.hc_exchange((success) => {
// this.buyBtn1.enabled = true; // this.buyBtn1.enabled = true;
...@@ -40,6 +41,7 @@ export default class ShopPanel extends Panel { ...@@ -40,6 +41,7 @@ export default class ShopPanel extends Panel {
onBuy2() { onBuy2() {
PanelCtrl.instance.show('Buy2'); PanelCtrl.instance.show('Buy2');
NetManager.ins.clickLog(getlogItem(6));
// this.buyBtn2.enabled = false; // this.buyBtn2.enabled = false;
// NetManager.ins.hc_exchange((success) => { // NetManager.ins.hc_exchange((success) => {
// this.buyBtn2.enabled = true; // this.buyBtn2.enabled = true;
...@@ -52,6 +54,7 @@ export default class ShopPanel extends Panel { ...@@ -52,6 +54,7 @@ export default class ShopPanel extends Panel {
} }
onBuy3() { onBuy3() {
NetManager.ins.clickLog(getlogItem(12));
PanelCtrl.instance.show('Buy3'); PanelCtrl.instance.show('Buy3');
// this.buyBtn3.enabled = false; // this.buyBtn3.enabled = false;
// NetManager.ins.hc_exchange((success) => { // NetManager.ins.hc_exchange((success) => {
......
...@@ -24,7 +24,7 @@ ...@@ -24,7 +24,7 @@
], ],
"remainEnargy": 0, "remainEnargy": 0,
"askForEnergy": false, "askForEnergy": false,
"canReceiveTreasureBoxNum": 0, "canReceiveTreasureBoxNum": 10,
"nextRangeStarsNum": 150 "nextRangeStarsNum": 150
} }
} }
\ No newline at end of file
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