diff --git a/frontend/App.vue b/frontend/App.vue index 03587fa..9cfc9a6 100644 --- a/frontend/App.vue +++ b/frontend/App.vue @@ -197,22 +197,13 @@ uni.removeStorageSync('userInfo'); } - // 显示loading - const loadingTitle = isParamChanged ? '切换用户中...' : '建行登录中...'; - uni.showLoading({ - title: loadingTitle, - mask: true, - }); - - // 调用建行登录API + // 调用建行登录API(静默登录,不显示loading) const result = await sheep.$api.third.ccbLogin({ ccbParamSJ: ccbParamSJ, cityid: cityid || '360100', CITYID: cityid || '360100', }); - uni.hideLoading(); - if (result.code === 1) { console.log('[CCB] 登录成功'); @@ -239,13 +230,6 @@ // 注意:不使用await,让它在后台加载,不阻塞UI userStore.setToken(result.data.token); - // 显示欢迎提示 - uni.showToast({ - title: `登录成功`, - icon: 'success', - duration: 2000, - }); - // 清除URL中的敏感参数 const cleanUrl = window.location.origin + '/pages/index/index'; window.history.replaceState({}, '', cleanUrl); @@ -254,17 +238,10 @@ } } catch (error) { console.error('[CCB] 登录失败:', error.message || error.msg); - uni.hideLoading(); - - uni.showModal({ - title: isParamChanged ? '切换用户失败' : '登录失败', - content: error.message || error.msg || '请检查网络连接', - showCancel: false, - complete: () => { - const cleanUrl = window.location.origin + '/pages/index/index'; - window.history.replaceState({}, '', cleanUrl); - }, - }); + + // 静默失败,清除URL参数 + const cleanUrl = window.location.origin + '/pages/index/index'; + window.history.replaceState({}, '', cleanUrl); } finally { isLoggingIn = false; } diff --git a/frontend/pages/user/info.vue b/frontend/pages/user/info.vue index 5a931b2..539eed5 100644 --- a/frontend/pages/user/info.vue +++ b/frontend/pages/user/info.vue @@ -82,53 +82,6 @@ - - - - - - - - - - - - @@ -153,59 +106,6 @@ - - 第三方账号绑定 - - - - - 微信公众号 - - - - 微信小程序 - - - - 微信开放平台 - - - - - {{ state.thirdOauthInfo.nickname }} - - - - - - - - - @@ -215,8 +115,7 @@