From 03f160464c25d55f8049b255e52454534e175c37 Mon Sep 17 00:00:00 2001 From: zdg Date: Thu, 12 Dec 2024 16:24:47 +0800 Subject: [PATCH] =?UTF-8?q?ppt=E4=B8=8A=E8=AF=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/renderer/src/AixPPTist/src/api/classcourse.ts | 8 ++++++-- src/renderer/src/plugins/imChat/msgEnum.js | 4 +++- .../src/views/classManage/reserv-item-apt.vue | 4 ++-- .../src/views/prepare/container/class-start.vue | 15 ++++++++++----- .../src/views/prepare/container/kj-list-item.vue | 2 +- 5 files changed, 22 insertions(+), 11 deletions(-) diff --git a/src/renderer/src/AixPPTist/src/api/classcourse.ts b/src/renderer/src/AixPPTist/src/api/classcourse.ts index da4a566..bad9c67 100644 --- a/src/renderer/src/AixPPTist/src/api/classcourse.ts +++ b/src/renderer/src/AixPPTist/src/api/classcourse.ts @@ -8,6 +8,7 @@ import * as useStore from '../store' // pptist-状态管理 import ChatWs from '@/plugins/socket' // 聊天socket import msgUtils from '@/plugins/modal' // 消息工具 +const slidesStore = store.useSlidesStore() // 幻灯片-状态管理 const screenStore = useStore.useScreenStore() // 全屏-状态管理 const classcourseStore = useStore.useClasscourseStore() // 课堂信息-状态管理 const classcourse = sessionStore.get('curr.classcourse') // 课堂信息 @@ -32,10 +33,13 @@ export class Classcourse { // 连接socket if (!ChatWs.ws) ChatWs.init() ChatWs.id = classcourse.timgroupid // 群组id - console.log('ws- ', classcourse) this.classcourse = classcourse // 课堂信息 this.id = classcourse.id // 课堂id - classcourseStore.setClasscourse(classcourse) // 课堂信息-状态管理 + // 如果课堂信息有paging,则更新当前页码 + const isPaging = !!classcourse.paging||classcourse.paging==0 + if (isPaging) slidesStore.updateSlideIndex(classcourse.paging) + // 课堂信息-状态管理 + classcourseStore.setClasscourse(classcourse) // 待上课提示 if (!classcourse.status) { this.msgObj = { diff --git a/src/renderer/src/plugins/imChat/msgEnum.js b/src/renderer/src/plugins/imChat/msgEnum.js index e921ff6..4b1d56b 100644 --- a/src/renderer/src/plugins/imChat/msgEnum.js +++ b/src/renderer/src/plugins/imChat/msgEnum.js @@ -142,4 +142,6 @@ export class MsgEnum { MSG_0034: 0x0022, MSG_0035: 0x0023, } -} \ No newline at end of file +} + +export default MsgEnum; \ No newline at end of file diff --git a/src/renderer/src/views/classManage/reserv-item-apt.vue b/src/renderer/src/views/classManage/reserv-item-apt.vue index 18caf2a..67fb1ec 100644 --- a/src/renderer/src/views/classManage/reserv-item-apt.vue +++ b/src/renderer/src/views/classManage/reserv-item-apt.vue @@ -14,8 +14,8 @@ 上课(APP)