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; } }