From 8e3ea68dbe71296a28b82cd793939e98150f10d1 Mon Sep 17 00:00:00 2001 From: Iruka <1017819588@qq.com> Date: Fri, 3 Jan 2025 17:23:36 +0800 Subject: [PATCH] . --- pages/login.vue | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/pages/login.vue b/pages/login.vue index c11323b..47e996c 100644 --- a/pages/login.vue +++ b/pages/login.vue @@ -203,14 +203,15 @@ mask: true }) - setTimeout(() => { - uni.hideLoading(); - setCodeTimer(); - }, 3000) + // setTimeout(() => { + // uni.hideLoading(); + // setCodeTimer(); + // }, 3000) store .dispatch("onGetCodePhone", loginForm.value.phone) .then(res => { + uni.hideLoading(); if (res.smsResponse) { plugin.modal.showToast("短信已发送") tipText.value = true @@ -312,13 +313,14 @@ icon: "error" }) }) - .finally(() => { - uni.hideLoading(); - }) + .finally(() => {}) } // 登陆成功 async function loginSuccess() { + uni.showLoading({ + mask: true + }); //如果记住密码 if (rememberPassword.value) { uni.setStorageSync("jsy_remember", true) @@ -350,9 +352,7 @@ icon: "none" }) }) - .finally(() => { - uni.hideLoading(); - }) + .finally(() => {}) } // 跳转去首页 @@ -368,6 +368,7 @@ // getApp().ijs.initData(userId, (land, wo) => { // getApp().getWoList(land, wo); // }); + uni.hideLoading(); }, fail: () => {}, complete: () => {}