From 03ef33c8af025cd87c78eb2f3006659bb1ce12e1 Mon Sep 17 00:00:00 2001
From: gonghaoxing <478185430@qq.com>
Date: Tue, 28 Oct 2025 20:22:50 +0800
Subject: [PATCH] =?UTF-8?q?'=E6=A0=B7=E5=BC=8F=E8=B0=83=E6=95=B4=E5=8A=9F?=
=?UTF-8?q?=E8=83=BD=E5=8E=BB=E9=99=A4'?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
frontend/App.vue | 33 +--
frontend/pages/user/info.vue | 209 +-----------------
.../components/s-user-card/s-user-card.vue | 4 +-
3 files changed, 8 insertions(+), 238 deletions(-)
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 }}
-
-
-
-
-
-
-
-
-