From 4c882e34fbedefcfca0804f023e9a47aab31c67f Mon Sep 17 00:00:00 2001 From: yangzhe Date: Fri, 5 Dec 2025 16:53:52 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E6=8B=9B=E7=94=9F=E5=9C=A8=E7=BA=BF):=20?= =?UTF-8?q?=E5=AE=9E=E7=8E=B0=E6=95=99=E5=B8=88=E5=88=97=E8=A1=A8=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3=E5=AF=B9=E6=8E=A5=E5=8F=8A=E7=95=8C=E9=9D=A2=E4=BC=98?= =?UTF-8?q?=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- App.vue | 3 +- common/http.api.js | 6 ++ pages/home/admissions/index.vue | 111 ++++++++++++++------------------ 3 files changed, 57 insertions(+), 63 deletions(-) diff --git a/App.vue b/App.vue index 7eb0a2f..881b372 100644 --- a/App.vue +++ b/App.vue @@ -303,6 +303,7 @@ export default { }, // 连接关闭 handleWsClose(e) { + console.log(`[WebSocket] 连接关闭: code=${e.code}, reason=${e.reason}`); this.lockReconnect = false; this.reconnect(); }, @@ -330,7 +331,7 @@ export default { }, mounted() { // 使用与 oa-web-phone 相同的原生 WebSocket 通信方式 - this.startLink(); + // this.startLink(); }, }; diff --git a/common/http.api.js b/common/http.api.js index 56364be..f2a3beb 100644 --- a/common/http.api.js +++ b/common/http.api.js @@ -214,6 +214,11 @@ const install = (Vue, vm) => { let UpdateUserApi = (params = {}) => vm.$u.post("api/BasicDataMaintenance/UpdateUser", params); + /** 会话 */ + // 获取教师列表(学生端-招办在线) + let GetTeacherListApi = (params = {}) => + vm.$u.get("api/Dialogue/GetTeacherList", params); + // 将各个定义的接口名称,统一放进对象挂载到vm.$u.api(因为vm就是this,也即this.$u.api)下 vm.$u.api = { UploadSingleImage, @@ -272,6 +277,7 @@ const install = (Vue, vm) => { TeacherLoginByCode, GetUserApi, UpdateUserApi, + GetTeacherListApi, }; }; diff --git a/pages/home/admissions/index.vue b/pages/home/admissions/index.vue index 39f793d..1b16af7 100644 --- a/pages/home/admissions/index.vue +++ b/pages/home/admissions/index.vue @@ -20,20 +20,23 @@ - + {{ teacher.name }} - + 在线 - {{ teacher.department }} + {{ teacher.collegeName }} 立即提问 @@ -44,31 +47,32 @@ - + /> --> @@ -257,7 +243,8 @@ export default { } .teacher-info { - padding: 30rpx 0; + // padding: 30rpx 0; + height: 150rpx; flex: 1; flex-shrink: 0; display: flex; @@ -289,7 +276,7 @@ export default { text { font-size: 24rpx; - color: #4cd964; + color: #999999; font-weight: normal; } }