From 87027d9d4ee91d6ea2f56a0cf731f2ed85c261ca Mon Sep 17 00:00:00 2001 From: linxi Date: Thu, 21 Nov 2024 09:28:33 +0800 Subject: [PATCH] =?UTF-8?q?Fix=EF=BC=9A2604=20=E3=80=90=E5=95=86=E5=9F=8E?= =?UTF-8?q?=E5=B0=8F=E7=A8=8B=E5=BA=8F=E3=80=91=E6=8A=BD=E5=A5=96--?= =?UTF-8?q?=E5=8F=8C=E5=87=BB=E2=80=9C=E7=AB=8B=E5=8D=B3=E6=8A=BD=E5=A5=96?= =?UTF-8?q?=E2=80=9D=EF=BC=8C=E8=8E=B7=E5=BE=97=E5=A5=96=E5=93=81=E4=B8=A4?= =?UTF-8?q?=E4=B8=AA=EF=BC=8C=E5=8F=AA=E5=BC=B9=E5=87=BA=E4=B8=80=E4=B8=AA?= =?UTF-8?q?=E6=8A=BD=E5=A5=96=E7=BB=93=E6=9E=9C=EF=BC=8C=E5=BA=94=E8=AF=A5?= =?UTF-8?q?=E9=99=90=E5=88=B6=E5=BF=AB=E9=80=9F=E5=A4=9A=E6=AC=A1=E7=82=B9?= =?UTF-8?q?=E5=87=BB=E6=97=B6=E5=8F=AA=E6=8A=BD=E4=B8=80=E6=AC=A1=E5=A5=96?= =?UTF-8?q?=EF=BC=8C=E6=8A=BD=E5=A5=96=E5=8A=A8=E7=94=BB=E5=AE=8C=E6=88=90?= =?UTF-8?q?=E4=B9=8B=E5=89=8D=E4=B8=8D=E7=AE=A1=E7=82=B9=E5=A4=9A=E5=B0=91?= =?UTF-8?q?=E6=AC=A1=EF=BC=8C=E9=83=BD=E4=B8=8D=E8=83=BD=E5=BF=AB=E9=80=9F?= =?UTF-8?q?=E8=A7=A6=E5=8F=91=E4=B8=8B=E4=B8=80=E6=AC=A1=E6=8A=BD=E5=A5=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pkg-video/views/lottery.vue | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/pkg-video/views/lottery.vue b/pkg-video/views/lottery.vue index 548bd43..93b0863 100644 --- a/pkg-video/views/lottery.vue +++ b/pkg-video/views/lottery.vue @@ -117,7 +117,8 @@ export default { }, imgData: [], shareAppImg: '', - pageKeyId: Object.freeze('lotteryIndex') + pageKeyId: Object.freeze('lotteryIndex'), + isDisabled: false } }, computed: { @@ -155,6 +156,8 @@ export default { }, onSubmit() { + if(this.isDisabled) return + this.isDisabled = true getPrize().then(res => { if (res.success) { this.diceResult = res.data @@ -163,12 +166,15 @@ export default { setTimeout(() => { this.showDialog = true this.showResult = true + this.isDisabled = false this.diceImg = this.lotteryDetail.diceConfig['diceValues'][diceIndex]['diceValueImage'] setTimeout(() => { this.init() }, 1000) }, 2800) } + }).catch(() => { + this.isDisabled = false }) },