diff --git a/.env.development b/.env.development
index 89203d2..3ab5f6c 100644
--- a/.env.development
+++ b/.env.development
@@ -1,3 +1,4 @@
NODE_ENV='development'
VITE_APP_TITLE='开发环境'
-VITE_APP_BASE_API='http://114.132.197.85:8099'
\ No newline at end of file
+VITE_APP_BASE_API='http://114.132.197.85:8099'
+VITE_APP_SCOKET='ws://114.132.197.85:8099/ws/asset/'
\ No newline at end of file
diff --git a/.env.production b/.env.production
index 27aae4a..4b8ace8 100644
--- a/.env.production
+++ b/.env.production
@@ -1,3 +1,4 @@
NODE_ENV='production'
VITE_APP_TITLE='生产环境'
-VITE_APP_BASE_API=''
\ No newline at end of file
+VITE_APP_BASE_API='http://114.132.197.85:8099'
+VITE_APP_SCOKET='ws://114.132.197.85:8099/ws/asset/'
\ No newline at end of file
diff --git a/src/api/index.js b/src/api/index.js
index b1ededf..9fff114 100644
--- a/src/api/index.js
+++ b/src/api/index.js
@@ -93,4 +93,22 @@ export const appMaxCatgIdApi = (catgName) => {
**/
export const articlePageApi = (params) => {
return request.get('/web/newsPageList', {params})
+}
+
+/**
+ * @function 获取聊天窗口信息
+ * @param {string} cusCode 设备唯一值
+ * @param {string} prodId 产品ID
+**/
+export const msgListApi = (data) => {
+ return request.post('/web/chatMain',data)
+}
+
+/**
+ * @function 保存消息
+ * @param {string} id
+ * @param {array} jsonArray 最新的消息列表
+**/
+export const saveMsg = (data) => {
+ return request.post('/web/saveMessage', data)
}
\ No newline at end of file
diff --git a/src/application/online.vue b/src/application/online.vue
index 6de0d05..3e26403 100644
--- a/src/application/online.vue
+++ b/src/application/online.vue
@@ -1,15 +1,143 @@
- 在线聊天
+
+
+ {{item.content}}
+
+
+
\ No newline at end of file
diff --git a/src/application/product-details.vue b/src/application/product-details.vue
index 2ecc567..9de8b8e 100644
--- a/src/application/product-details.vue
+++ b/src/application/product-details.vue
@@ -173,7 +173,7 @@
{{$t('common.sendInquiry')}}
-
+
{{$t('common.chatNow')}}
@@ -312,6 +312,12 @@
{id:121113123,title: 'SINOTRUK HOWO Tractor Truck Head',mainPic:'https://dianliang123.oss-cn-qingdao.aliyuncs.com/user/2025/07/09/55979a0deee24031a38e934c6b06ca20.jpg'}
])
+ const goOnline = () => {
+ uni.navigateTo({
+ url: `/application/online?prodId=${info.value.id}`
+ })
+ }
+
onLoad((options) => {
id.value = options.id
getInfo()
diff --git a/src/assets/images/icon/send.png b/src/assets/images/icon/send.png
new file mode 100644
index 0000000..e2732ef
Binary files /dev/null and b/src/assets/images/icon/send.png differ
diff --git a/src/layouts/default.vue b/src/layouts/default.vue
index fcdf621..5e9668d 100644
--- a/src/layouts/default.vue
+++ b/src/layouts/default.vue
@@ -2,15 +2,28 @@
-
-
+
+
+
+