From c030eded16b852e04d60e841a79a6c09a7d33736 Mon Sep 17 00:00:00 2001 From: woody Date: Tue, 15 Jul 2025 10:50:48 +0800 Subject: [PATCH] feat(DefaultSharePage): loading add mask --- components/share/DefaultSharePage.vue | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/components/share/DefaultSharePage.vue b/components/share/DefaultSharePage.vue index 69aaaaa..a886ce4 100644 --- a/components/share/DefaultSharePage.vue +++ b/components/share/DefaultSharePage.vue @@ -100,15 +100,7 @@ export default { }, async sharePage() { - if (!this.qrCodeImage) { - uni.showToast({ - title: '二维码尚未生成', - icon: 'none', - }) - return - } - - uni.showLoading({ title: '加载中...' }) + uni.showLoading({ title: '加载中...', mask: true }) try { this.shareButtonShow = false @@ -116,8 +108,6 @@ export default { await this.capturePageWithHtml2Canvas() } catch (error) { - uni.hideLoading() - uni.showToast({ title: '图片生成失败,请稍后重试', icon: 'none' }) console.error('sharePage error:', error) } finally { // 恢复按钮显示