From ab3d6efbb4ea8c6796c66e36e72b24bcfc139d7f Mon Sep 17 00:00:00 2001 From: zhongshilong Date: Thu, 24 Apr 2025 10:47:48 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=84=E7=90=86=E6=8C=89=E9=92=AEbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/smarttrading/buy.vue | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/pages/smarttrading/buy.vue b/pages/smarttrading/buy.vue index d6dd6ce..8eaacbd 100644 --- a/pages/smarttrading/buy.vue +++ b/pages/smarttrading/buy.vue @@ -25,7 +25,7 @@ - + @@ -49,6 +49,7 @@ coinType:['BNB','ETH','BTC'], balabces:{}, userInfo:{}, + loading:false, } }, async onLoad(options) { @@ -136,11 +137,13 @@ return obj }, async buy() { + this.loading = true if(!Number(this.userInfo.miner_G) >= 1){ uni.showToast({ title: '購買1G以上算力才可交易', icon:"none" }) + this.loading = false return } let cobj = this.checkTypeAndValue(this.detail.investCoin,this.value) @@ -149,6 +152,7 @@ title: cobj.message, icon:"none" }) + this.loading = false return } uni.showLoading({ mask: true }) @@ -181,6 +185,7 @@ }).finally(e=>{ uni.$emit('updateView',{}) uni.hideLoading() + this.loading = false uni.navigateBack() }) @@ -196,6 +201,7 @@ complete:()=>{ uni.$emit('updateView',{}) uni.hideLoading() + this.loading = false uni.navigateBack() } });