From c136669b4990a5276e594425179e3a41a8fcf5b3 Mon Sep 17 00:00:00 2001 From: yangan <yangan0921@163.com> Date: 星期五, 23 八月 2024 17:01:05 +0800 Subject: [PATCH] feat:请求退单增加限制 --- pages/login/userPassword.vue | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/pages/login/userPassword.vue b/pages/login/userPassword.vue index 595728b..67dcd43 100644 --- a/pages/login/userPassword.vue +++ b/pages/login/userPassword.vue @@ -77,6 +77,7 @@ scope: 'server' }) .then(res => { + this.submitLoading = false setToken(res.access_token); setRefreshToken(res.refresh_token); if (this.btnText == 0) { @@ -90,6 +91,7 @@ this.$reqGet('getUserEntity') .then(res => { this.$u.toast('鐧诲綍鎴愬姛'); + this.submitLoading = false this.getLoginInfo(); // 璁板綍鐧诲綍淇℃伅 this.setUserTabbar(res.data.type); uni.setStorageSync('roleType', res.data.type); @@ -119,6 +121,7 @@ this.$u.toast(res.msg); } } else { + console.log('寰俊缁戝畾锛燂紵锛燂紵锛�') uni.login({ success: res => { if (res.code) { @@ -126,6 +129,7 @@ } } }); + this.submitLoading = false if (uni.getStorageSync('bindcode')) { this.$reqPost('wxBind', { state: 'MINI', code: uni.getStorageSync('bindcode') }, 'params').then(res => { @@ -138,6 +142,8 @@ } else { this.$u.toast(res.msg ? res.msg : '缁戝畾澶辫触'); } + }).finally(() => { + this.submitLoading = false; }); } } -- Gitblit v1.9.1