disable clam of game coin
This commit is contained in:
parent
9180f5e18b
commit
f7b9d9092f
@ -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() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user