diff --git a/constant/base.js b/constant/base.js
index a6f618c..9fe9d17 100644
--- a/constant/base.js
+++ b/constant/base.js
@@ -1,3 +1,6 @@
-const isProd = true
+const isProd = true;
-export const BASE_URL = 'https://onefeel.brother7.cn/ingress' //'http://8.138.234.141/ingress'
\ No newline at end of file
+export const BASE_URL = "https://onefeel.brother7.cn/ingress"; //'http://8.138.234.141/ingress'
+
+// socket地址
+export const WSS_URL = "wss://onefeel.brother7.cn/ingress/agent/ws/chat";
diff --git a/manager/LoginManager.js b/manager/LoginManager.js
index 539839c..ba8cf02 100644
--- a/manager/LoginManager.js
+++ b/manager/LoginManager.js
@@ -1,45 +1,49 @@
-import { wxLogin, bindUserPhone, checkUserPhone } from "../request/api/LoginApi";
+import {
+ wxLogin,
+ bindUserPhone,
+ checkUserPhone,
+} from "../request/api/LoginApi";
import { getWeChatAuthCode } from "./AuthManager";
const loginAuth = async () => {
try {
const openIdCode = await getWeChatAuthCode();
- console.log('获取到的微信授权code:', openIdCode);
+ console.log("获取到的微信授权code:", openIdCode);
const response = await wxLogin({
openIdCode: [openIdCode],
- grant_type: 'wechat',
- scope: 'server',
- clientId: '2'
+ grant_type: "wechat",
+ scope: "server",
+ clientId: "2",
});
- console.log('获取到的微信授权response:', response);
+ console.log("获取到的微信授权response:", response);
if (response.access_token) {
- uni.setStorageSync('token', response.access_token)
+ uni.setStorageSync("token", response.access_token);
return response;
} else {
- throw new Error(response.message || '登录失败');
+ throw new Error(response.message || "登录失败");
}
} catch (err) {
throw err;
}
-}
+};
-const bindPhone = async (params) => {
+const bindPhone = async (params) => {
try {
- const response = await bindUserPhone(params)
+ const response = await bindUserPhone(params);
return response;
} catch (error) {
throw err;
}
-}
+};
-const checkPhone = async (phone) => {
+const checkPhone = async (phone) => {
try {
- const response = await checkUserPhone(phone)
+ const response = await checkUserPhone(phone);
return response;
} catch (error) {
throw err;
}
-}
+};
-export { loginAuth, bindPhone, checkPhone }
+export { loginAuth, bindPhone, checkPhone };
diff --git a/pages/chat/ChatCardAI.vue b/pages/chat/ChatCardAI.vue
index 106f3cf..46ad71b 100644
--- a/pages/chat/ChatCardAI.vue
+++ b/pages/chat/ChatCardAI.vue
@@ -1,7 +1,10 @@
-
+
@@ -9,15 +12,42 @@
diff --git a/pages/chat/ChatInputArea.vue b/pages/chat/ChatInputArea.vue
index 0a9670b..c5f4c14 100644
--- a/pages/chat/ChatInputArea.vue
+++ b/pages/chat/ChatInputArea.vue
@@ -1,246 +1,252 @@
-
-
-
-
-
-
+
+
+
+
+
+
+
-
-
-
+
+
+
-
-
- 按住说话
+
+ 按住说话
+
+
+
+
+
+
+
+
-
-
-
-
-
-
+
+
+
-
-
-
-
-
-
diff --git a/pages/chat/ChatMainList.vue b/pages/chat/ChatMainList.vue
index 30475c2..827db63 100644
--- a/pages/chat/ChatMainList.vue
+++ b/pages/chat/ChatMainList.vue
@@ -1,510 +1,699 @@
-
-
-
+
+
+
-
-
-
-
-
+
+
+
+
+
-
-
-
-
-
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
-
-
-
-
+
+
+
+
+
+
-
-
-
+
+
+
+
-
+
+
+
-
-
-
-
+
-
+
+
+
+
+
-
-
-
-
+
+
+
+