diff --git a/Yi.Ai.Vue3/.eslintrc-auto-import.json b/Yi.Ai.Vue3/.eslintrc-auto-import.json
index af1083b7..313e6711 100644
--- a/Yi.Ai.Vue3/.eslintrc-auto-import.json
+++ b/Yi.Ai.Vue3/.eslintrc-auto-import.json
@@ -5,6 +5,8 @@
"ComputedRef": true,
"DirectiveBinding": true,
"EffectScope": true,
+ "ElMessage": true,
+ "ElMessageBox": true,
"ExtractDefaultPropTypes": true,
"ExtractPropTypes": true,
"ExtractPublicPropTypes": true,
diff --git a/Yi.Ai.Vue3/src/components/LoginDialog/components/QrCodeLogin/index.vue b/Yi.Ai.Vue3/src/components/LoginDialog/components/QrCodeLogin/index.vue
index 71e23880..de8a1861 100644
--- a/Yi.Ai.Vue3/src/components/LoginDialog/components/QrCodeLogin/index.vue
+++ b/Yi.Ai.Vue3/src/components/LoginDialog/components/QrCodeLogin/index.vue
@@ -290,14 +290,14 @@ onMounted(() => {
- 提示:
- 意社区老用户可返回登录
- 登录后前往个人中心绑定微信
+
提示:
+
意社区老用户可用原方式登录
+
登录后前往个人中心绑定微信
提示:
- 若该微信已注册意社区
- 将直接解绑到该账号
+ 若扫码的微信已注册过意社区账号
+ 将直接解绑到当前登录账号
@@ -306,56 +306,17 @@ onMounted(() => {
.tip-old-user{
line-height: 1.5;
margin: 5px 0;
- padding: 6px 12px;
- color: #F56C6C;
- position: relative;
+ color: #FF4D4F;
display: flex;
- align-items: center;
- min-height: 4rem;
- border-radius: var(--r);
- border: none;
- background: rgba(#fff, 0.1);
- backdrop-filter: blur(2px);
- text-shadow: 0.25em 0.25em 1px #00000010;
- --shadow-color: 0deg 0% 64%;
- --shadow-elevation-high: 0.5px 1px 1.1px hsl(var(--shadow-color) / 0.28), 1.4px 3.1px 3.4px -0.4px hsl(var(--shadow-color) / 0.27), 2.5px 5.3px 5.9px -0.7px hsl(var(--shadow-color) / 0.25), 3.9px 8.4px 9.3px -1.1px hsl(var(--shadow-color) / 0.24), 6px 12.9px 14.3px -1.5px hsl(var(--shadow-color) / 0.23), 9px 19.5px 21.6px -1.8px hsl(var(--shadow-color) / 0.21), 13.4px 28.9px 32px -2.2px hsl(var(--shadow-color) / 0.2), 19.3px 41.7px 46.2px -2.6px hsl(var(--shadow-color) / 0.19), 27.1px 58.5px 64.8px -2.9px hsl(var(--shadow-color) / 0.17), 37.1px 80px 88.6px -3.3px hsl(var(--shadow-color) / 0.16);
- --inner-light: inset 0 -6px 2px -5px #ffffff24, inset 0 -8px 3px -5px #ffffff3b, inset 0 -20px 10px -15px #ffffff5c, inset 7px 25px 10px -20px #ffffff5c;
- --inner-shadow: inset -20px 5px 10px -20px #00000021, inset -40px 50px 7px -55px #00000021;
- --external-light: 5px -30px 30px -20px #ffffff70, 5px 10px 30px -20px #ffffff70;
- --default: var(--external-light), var(--shadow-elevation-high), var(--inner-light), var(--inner-shadow);
- box-shadow: var(--default);
- background-position: center;
- animation: gradient 10s linear infinite;
- //background: linear-gradient(45deg, #85d5e757, #7a9ed254, #ba6ac93d, #de54c217, #f86b2d4f);
- //background: #00DB73;
-
+ flex-direction: column;
+ text-align: center;
}
.tip-old-user-bind{
line-height: 1.5;
margin: 5px 0;
- padding: 6px 12px;
- color: #ffffff;
- position: relative;
+ color: #FF4D4F;
display: flex;
align-items: center;
- min-height: 4rem;
- border-radius: var(--r);
- border: none;
- background: rgba(#fff, 0.1);
- backdrop-filter: blur(2px);
- text-shadow: 0.25em 0.25em 1px #00000010;
- --shadow-color: 0deg 0% 64%;
- --shadow-elevation-high: 0.5px 1px 1.1px hsl(var(--shadow-color) / 0.28), 1.4px 3.1px 3.4px -0.4px hsl(var(--shadow-color) / 0.27), 2.5px 5.3px 5.9px -0.7px hsl(var(--shadow-color) / 0.25), 3.9px 8.4px 9.3px -1.1px hsl(var(--shadow-color) / 0.24), 6px 12.9px 14.3px -1.5px hsl(var(--shadow-color) / 0.23), 9px 19.5px 21.6px -1.8px hsl(var(--shadow-color) / 0.21), 13.4px 28.9px 32px -2.2px hsl(var(--shadow-color) / 0.2), 19.3px 41.7px 46.2px -2.6px hsl(var(--shadow-color) / 0.19), 27.1px 58.5px 64.8px -2.9px hsl(var(--shadow-color) / 0.17), 37.1px 80px 88.6px -3.3px hsl(var(--shadow-color) / 0.16);
- --inner-light: inset 0 -6px 2px -5px #ffffff24, inset 0 -8px 3px -5px #ffffff3b, inset 0 -20px 10px -15px #ffffff5c, inset 7px 25px 10px -20px #ffffff5c;
- --inner-shadow: inset -20px 5px 10px -20px #00000021, inset -40px 50px 7px -55px #00000021;
- --external-light: 5px -30px 30px -20px #ffffff70, 5px 10px 30px -20px #ffffff70;
- --default: var(--external-light), var(--shadow-elevation-high), var(--inner-light), var(--inner-shadow);
- box-shadow: var(--default);
- background-position: center;
- animation: gradient 10s linear infinite;
- background: linear-gradient(45deg, #85d5e757, #7a9ed254, #ba6ac93d, #de54c217, #f86b2d4f);
- background: #ff0000;
-
}
.qr-wrapper {
display: flex;
@@ -366,6 +327,7 @@ onMounted(() => {
font-size: 16px;
font-weight: 500;
color: #303133;
+ margin-bottom: 10px;
}
.qr-img-wrapper {
position: relative;
diff --git a/Yi.Ai.Vue3/src/components/WelecomeText/index.vue b/Yi.Ai.Vue3/src/components/WelecomeText/index.vue
index a95eb0f8..1d626475 100644
--- a/Yi.Ai.Vue3/src/components/WelecomeText/index.vue
+++ b/Yi.Ai.Vue3/src/components/WelecomeText/index.vue
@@ -7,7 +7,7 @@ import { useUserStore } from '@/stores';
const greeting = useTimeGreeting();
const userStore = useUserStore();
-const username = computed(() => userStore.userInfo?.username ?? '意心Ai,一心只为打造更良心的AI平台');
+const username = computed(() => userStore.userInfo?.username ?? '意心Ai,一心只为打造更良心的Ai平台');
diff --git a/Yi.Ai.Vue3/src/components/userPersonalCenter/components/UserManagement.vue b/Yi.Ai.Vue3/src/components/userPersonalCenter/components/UserManagement.vue
index 3138e0e4..698b400c 100644
--- a/Yi.Ai.Vue3/src/components/userPersonalCenter/components/UserManagement.vue
+++ b/Yi.Ai.Vue3/src/components/userPersonalCenter/components/UserManagement.vue
@@ -71,10 +71,10 @@ function maskEmail(email: string) {
return `${name.substring(0, 2)}****@${domain}`;
}
-function maskPhone(phone: string) {
+function maskPhone(phone: number) {
if (!phone)
return '';
- return phone.replace(/(\d{3})\d{4}(\d{4})/, '$1****$2');
+ return phone.toString().replace(/(\d{3})\d{4}(\d{4})/, '$1****$2');
}
// 操作处理
diff --git a/Yi.Ai.Vue3/src/layouts/components/Aside/index.vue b/Yi.Ai.Vue3/src/layouts/components/Aside/index.vue
index 288d01a2..d1fd2c42 100644
--- a/Yi.Ai.Vue3/src/layouts/components/Aside/index.vue
+++ b/Yi.Ai.Vue3/src/layouts/components/Aside/index.vue
@@ -212,7 +212,7 @@ function handleMenuCommand(command: string, item: ConversationItem
diff --git a/Yi.Ai.Vue3/src/layouts/components/Header/components/Avatar.vue b/Yi.Ai.Vue3/src/layouts/components/Header/components/Avatar.vue
index 2240d577..4b00444e 100644
--- a/Yi.Ai.Vue3/src/layouts/components/Header/components/Avatar.vue
+++ b/Yi.Ai.Vue3/src/layouts/components/Header/components/Avatar.vue
@@ -199,7 +199,7 @@ function onProductPackage() {
v-else
class="inline-block px-2 py-0.5 text-xs text-gray-600 bg-gray-100 rounded-full cursor-pointer hover:bg-yellow-50 hover:text-yellow-700 transition"
>
- 普通用户 · 开通 VIP
+ 普通用户
@@ -238,7 +238,7 @@ function onProductPackage() {
v-else
class="inline-block px-2 py-0.5 text-xs text-gray-600 bg-gray-100 rounded-full cursor-pointer hover:bg-yellow-50 hover:text-yellow-700 transition"
>
- 普通用户 · 开通 VIP
+ 普通用户
diff --git a/Yi.Ai.Vue3/src/pages/chat/index.vue b/Yi.Ai.Vue3/src/pages/chat/index.vue
index 976c581c..933c9a65 100644
--- a/Yi.Ai.Vue3/src/pages/chat/index.vue
+++ b/Yi.Ai.Vue3/src/pages/chat/index.vue
@@ -23,7 +23,7 @@ const sessionId = computed(() => route.params?.id);
flex-direction: column;
align-items: center;
justify-content: center;
- width: calc(100% - 32px);
+ // width: calc(100% - 32px);
height: 100%;
padding: 0 16px;
overflow-anchor: none;
diff --git a/Yi.Ai.Vue3/src/pages/chat/layouts/chatWithId/index.vue b/Yi.Ai.Vue3/src/pages/chat/layouts/chatWithId/index.vue
index d2d51ad5..34faaec9 100644
--- a/Yi.Ai.Vue3/src/pages/chat/layouts/chatWithId/index.vue
+++ b/Yi.Ai.Vue3/src/pages/chat/layouts/chatWithId/index.vue
@@ -312,7 +312,7 @@ function copy(item: any) {