Commit d7801716 authored by 邱旭's avatar 邱旭

1

parents a91eff16 b0c046a0
...@@ -31,7 +31,7 @@ ...@@ -31,7 +31,7 @@
<body> <body>
<div style="margin: auto;width: 100%;height: 100%;" class="egret-player" data-entry-class="Main" <div style="margin: auto;width: 100%;height: 100%;" class="egret-player" data-entry-class="Main"
data-orientation="auto" data-scale-mode="showAll" data-frame-rate="60" data-content-width="750" data-orientation="auto" data-scale-mode="showAll" data-frame-rate="60" data-content-width="750"
data-content-height="1624" data-multi-fingered="2" data-show-fps="true" data-show-log="false" data-content-height="1624" data-multi-fingered="2" data-show-fps="false" data-show-log="false"
data-show-fps-style="x:0,y:0,size:12,textColor:0xffffff,bgAlpha:0.9"> data-show-fps-style="x:0,y:0,size:12,textColor:0xffffff,bgAlpha:0.9">
</div> </div>
......
...@@ -32,8 +32,8 @@ export default class Buy2Panel extends Panel { ...@@ -32,8 +32,8 @@ export default class Buy2Panel extends Panel {
this.buyBtn.enabled = false; this.buyBtn.enabled = false;
NetManager.ins.hc_exchange((success) => { NetManager.ins.hc_exchange((success) => {
this.buyBtn.enabled = true; this.buyBtn.enabled = true;
showToast2();
if (success) { if (success) {
showToast2();
this.hidePanel(); this.hidePanel();
NetManager.ins.hc_home(() => { NetManager.ins.hc_home(() => {
SceneCtrl.instance.updateScene(); SceneCtrl.instance.updateScene();
......
...@@ -32,9 +32,9 @@ export default class Buy3Panel extends Panel { ...@@ -32,9 +32,9 @@ export default class Buy3Panel extends Panel {
NetManager.ins.clickLog(getlogItem(14)); NetManager.ins.clickLog(getlogItem(14));
this.buyBtn.enabled = false; this.buyBtn.enabled = false;
NetManager.ins.hc_exchange((success) => { NetManager.ins.hc_exchange((success) => {
showToast2();
this.buyBtn.enabled = true; this.buyBtn.enabled = true;
if (success) { if (success) {
showToast2();
this.hidePanel(); this.hidePanel();
NetManager.ins.hc_home(() => { NetManager.ins.hc_home(() => {
SceneCtrl.instance.updateScene(); SceneCtrl.instance.updateScene();
......
...@@ -32,9 +32,9 @@ export default class ExchangePanel extends Panel { ...@@ -32,9 +32,9 @@ export default class ExchangePanel extends Panel {
this.buyBtn.enabled = false; this.buyBtn.enabled = false;
NetManager.ins.hc_exchange((success) => { NetManager.ins.hc_exchange((success) => {
showToast2();
this.buyBtn.enabled = true; this.buyBtn.enabled = true;
if (success) { if (success) {
showToast2();
this.hidePanel(); this.hidePanel();
NetManager.ins.hc_home(() => { NetManager.ins.hc_home(() => {
SceneCtrl.instance.updateScene(); SceneCtrl.instance.updateScene();
......
...@@ -143,7 +143,6 @@ export default class Turntable extends Panel { ...@@ -143,7 +143,6 @@ export default class Turntable extends Panel {
loadSvga(getResPath() + 'resource/assets/svgas/turnprize.svga').then(async (mv: any) => { loadSvga(getResPath() + 'resource/assets/svgas/turnprize.svga').then(async (mv: any) => {
let _data = Utils.deepClone(data); let _data = Utils.deepClone(data);
_data.mv = mv; _data.mv = mv;
console.log(_data);
PanelCtrl.instance.show('TurnPrize2Panel', _data); PanelCtrl.instance.show('TurnPrize2Panel', _data);
}); });
} else if(!data.option) { } else if(!data.option) {
...@@ -152,7 +151,6 @@ export default class Turntable extends Panel { ...@@ -152,7 +151,6 @@ export default class Turntable extends Panel {
loadSvga(getResPath() + 'resource/assets/svgas/turnprize.svga').then(async (mv: any) => { loadSvga(getResPath() + 'resource/assets/svgas/turnprize.svga').then(async (mv: any) => {
let _data = Utils.deepClone(data); let _data = Utils.deepClone(data);
_data.mv = mv; _data.mv = mv;
console.log(_data);
PanelCtrl.instance.show('TurnPrizePanel', _data); PanelCtrl.instance.show('TurnPrizePanel', _data);
}); });
} }
......
{ {
"success":1 "success":0
} }
\ 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