diff --git a/components/LoginPopup/LoginPopup.vue b/components/LoginPopup/LoginPopup.vue index 59510a1..139ba20 100644 --- a/components/LoginPopup/LoginPopup.vue +++ b/components/LoginPopup/LoginPopup.vue @@ -248,6 +248,7 @@ const confirmLogin = async () => { const platform = getPlatformProvider(); if (platform === "mp-weixin") { + uni.showLoading({ title: "登录中...", mask: true }); const code = await wxLogin(); const imageUrl = avatarUrl.value ? await uploadImage(avatarUrl.value) @@ -270,7 +271,7 @@ const confirmLogin = async () => { }); userStore.setToken(loginRes.token); - + uni.hideLoading(); uni.showToast({ title: "登录成功", icon: "success" }); emit("logind"); popupRef.value.close();