From 0f739442ac57fc230210c195904e12d1402be3b7 Mon Sep 17 00:00:00 2001 From: Charles7c Date: Fri, 17 Oct 2025 21:40:27 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=96=B0=E5=A2=9E=E5=BE=AE=E4=BF=A1?= =?UTF-8?q?=E5=BC=80=E6=94=BE=E5=B9=B3=E5=8F=B0=E7=99=BB=E5=BD=95=E5=8F=8A?= =?UTF-8?q?=E7=BB=91=E5=AE=9A=E6=8C=89=E9=92=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/assets/icons/wechat.svg | 1 + src/views/login/index.vue | 6 ++++++ src/views/user/profile/Social.vue | 10 +++++++++- src/views/user/type.ts | 2 +- 4 files changed, 17 insertions(+), 2 deletions(-) create mode 100644 src/assets/icons/wechat.svg diff --git a/src/assets/icons/wechat.svg b/src/assets/icons/wechat.svg new file mode 100644 index 0000000..25fe3d9 --- /dev/null +++ b/src/assets/icons/wechat.svg @@ -0,0 +1 @@ + diff --git a/src/views/login/index.vue b/src/views/login/index.vue index 3430645..c98cb6a 100644 --- a/src/views/login/index.vue +++ b/src/views/login/index.vue @@ -35,6 +35,9 @@ + + + @@ -84,6 +87,9 @@ + + + diff --git a/src/views/user/profile/Social.vue b/src/views/user/profile/Social.vue index 440109a..e2433ea 100644 --- a/src/views/user/profile/Social.vue +++ b/src/views/user/profile/Social.vue @@ -2,7 +2,7 @@
-
+
{{ item.title }} @@ -73,6 +73,14 @@ const initData = () => { jumpMode: 'link', status: socialList.value.includes('GITHUB'), }, + { + title: '绑定微信', + icon: 'wechat', + subtitle: `${socialList.value.includes('WECHAT_OPEN') ? '' : '绑定后,'}可通过微信进行登录`, + type: 'wechat_open', + jumpMode: 'link', + status: socialList.value.includes('WECHAT_OPEN'), + }, ] }) } diff --git a/src/views/user/type.ts b/src/views/user/type.ts index 4068225..ec9dc73 100644 --- a/src/views/user/type.ts +++ b/src/views/user/type.ts @@ -3,7 +3,7 @@ export interface ModeItem { icon: string subtitle: string value?: string - type: 'phone' | 'email' | 'gitee' | 'github' + type: 'phone' | 'email' | 'wechat_open' | 'gitee' | 'github' jumpMode?: 'link' | 'modal' status: boolean statusString: string