From d870ccfcc46654098902df864d013ddb0319cbb5 Mon Sep 17 00:00:00 2001 From: yuyongdong Date: Wed, 10 Jul 2024 16:58:38 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=B8=AA=E4=BA=BA=E8=B5=84?= =?UTF-8?q?=E4=BA=A7=E4=B8=8B=E9=93=BEloading=E5=BC=B9=E7=AA=97=E6=B2=A1?= =?UTF-8?q?=E6=8B=89=E8=B5=B7=E6=9D=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/assets/myCard.vue | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/components/assets/myCard.vue b/src/components/assets/myCard.vue index 8596283..54b2213 100644 --- a/src/components/assets/myCard.vue +++ b/src/components/assets/myCard.vue @@ -130,6 +130,8 @@ const cancelNft = async (val) => { } } + +const loadingDialogVisible = ref(false) // 下链使用 const lockToGame = async(type) => { if(type == 'redeem') { @@ -138,7 +140,7 @@ const lockToGame = async(type) => { message: `Redeem ${props.nftData.detail.gold_coins} Gold to your game account. Do you wish to proceed?` }).show() if (confirmResult.errcode == 0) { - loadingDialogVisible = true + loadingDialogVisible.value = true lockToGameConfirm() } } else if(type == 'convert') { @@ -147,7 +149,7 @@ const lockToGame = async(type) => { message: 'After converting, you will be able to use the hero in the game. At the end of Season 1, the hero will automatically be returned to your wallet or Immutable Passport. Do you want to proceed?' }).show() if (confirmResult.errcode == 0) { - loadingDialogVisible = true + loadingDialogVisible.value = true lockToGameConfirm() } } @@ -159,7 +161,7 @@ const lockToGameConfirm = async () => { message.success('lockToGame success') // router.go(-1) emit('renewMyNft') - loadingDialogVisible = false + loadingDialogVisible.value = false // router.push('/assets') } catch (e) { if(e.message.indexOf('rejected') > -1) { @@ -167,7 +169,7 @@ const lockToGameConfirm = async () => { } else { message.error('lockToGame fail.') } - loadingDialogVisible = false + loadingDialogVisible.value = false } }