From f7b9d9092f84bb2f00dfbd341419f7de7edb770a Mon Sep 17 00:00:00 2001 From: cebgcontract <99630598+cebgcontract@users.noreply.github.com> Date: Sun, 29 May 2022 13:54:52 +0800 Subject: [PATCH] disable clam of game coin --- src/components/market/wallet/WalletPanel.vue | 69 ++++++++++---------- 1 file changed, 35 insertions(+), 34 deletions(-) diff --git a/src/components/market/wallet/WalletPanel.vue b/src/components/market/wallet/WalletPanel.vue index 8c55bf7..093e36e 100644 --- a/src/components/market/wallet/WalletPanel.vue +++ b/src/components/market/wallet/WalletPanel.vue @@ -289,40 +289,41 @@ export default class WalletPanel extends Vue { } async onGameCardClicked(data: ICoinData) { - console.log('on game card clicked: ', data) - let value = 0 - try { - value = await this.pickAmount({ - min: 1, - max: data.amount, - title: 'Please input amount to claim' - }) - } catch (err) { - this.$message({ - type: 'info', - message: 'User cancel' - }) - } - if (!value) { - return - } - const postData = { - account: AppModule.accountId, - type: data.id === 'gold' ? 1 : 2, - amount: value + '000000000000000000' - } - this.loadingInstance = this.$loading({ background: 'rgba(0, 0, 0, 0.8)' }) - try { - const res: any = await withdrawal(postData) - console.log('withdrawal result: ', res) - const seqId = res.seq_id - this.saveTmpOrderInfo(seqId, 1) - this.beginTraceOrderStatus(seqId, 1) - this.loadingInstance?.close() - } catch (err) { - this.loadingInstance?.close() - } - console.log('begin claim') + this.comingSoon?.() + // console.log('on game card clicked: ', data) + // let value = 0 + // try { + // value = await this.pickAmount({ + // min: 1, + // max: data.amount, + // title: 'Please input amount to claim' + // }) + // } catch (err) { + // this.$message({ + // type: 'info', + // message: 'User cancel' + // }) + // } + // if (!value) { + // return + // } + // const postData = { + // account: AppModule.accountId, + // type: data.id === 'gold' ? 1 : 2, + // amount: value + '000000000000000000' + // } + // this.loadingInstance = this.$loading({ background: 'rgba(0, 0, 0, 0.8)' }) + // try { + // const res: any = await withdrawal(postData) + // console.log('withdrawal result: ', res) + // const seqId = res.seq_id + // this.saveTmpOrderInfo(seqId, 1) + // this.beginTraceOrderStatus(seqId, 1) + // this.loadingInstance?.close() + // } catch (err) { + // this.loadingInstance?.close() + // } + // console.log('begin claim') } async updateGameCoins() {