From e3b06ae6c5afccb12cc637810263ab28635aef4e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E8=88=AA?= Date: Fri, 19 Sep 2025 10:54:16 +0800 Subject: [PATCH 1/3] =?UTF-8?q?fix:=20=E5=AD=A6=E4=B9=A0=E9=80=BB=E8=BE=91?= =?UTF-8?q?=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/course/study.vue | 30 ++++++++++++++++++------------ 1 file changed, 18 insertions(+), 12 deletions(-) diff --git a/src/pages/course/study.vue b/src/pages/course/study.vue index d33d6990..87d04261 100644 --- a/src/pages/course/study.vue +++ b/src/pages/course/study.vue @@ -750,7 +750,9 @@ const closeStudy = () => { } onHide(() => { changePlayItemId('') - closeStudy() + if(isPreview.value === 'S'){ + closeStudy() + } // socketStore.closeSocket() //#ifdef APP-PLUS uni.offKeyboardHeightChange(setHeight) @@ -767,21 +769,25 @@ onShow(() => { if (watchFlag.value === 1) return // getData('2'); // initsocketTask() - sendMessage({ - commond: 'STDY', - body: { - crsId: crsId.value, - teacherNo: choiceTeacher.value, - studyType: isPreview.value ? 'P' : 'S', - isContinue: isContinue.value, - stdyId: stdyId.value - } - }) + if(isPreview.value === 'S'){ + sendMessage({ + commond: 'STDY', + body: { + crsId: crsId.value, + teacherNo: choiceTeacher.value, + studyType: isPreview.value ? 'P' : 'S', + isContinue: isContinue.value, + stdyId: stdyId.value + } + }) + } }) const watchFlag = ref(1) onUnload(() => { console.log('onUnload') - closeStudy() + if(isPreview.value === 'S'){ + closeStudy() + } // socketStore.closeSocket() changePlayItemId('') console.log(typeof teacherVoiceObj) From 3c2fdc0cf7c6cfa57748eedbfd1fbc86a87f2e0a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E8=88=AA?= Date: Fri, 19 Sep 2025 14:00:51 +0800 Subject: [PATCH 2/3] fix: bug --- .env.development | 2 +- src/pages/course/index.vue | 4 ++-- src/pages/courseDetail/index.vue | 8 ++++---- src/pages/examRanking/index.vue | 3 ++- 4 files changed, 9 insertions(+), 8 deletions(-) diff --git a/.env.development b/.env.development index edad90b1..b688c1b0 100644 --- a/.env.development +++ b/.env.development @@ -1,7 +1,7 @@ # 开发环境 ENV = 'development' # 'development' -VITE_APP_BASE_API_Url = 'https://aitstest.jlbank.com.cn:7001' +VITE_APP_BASE_API_Url = 'https://aitstest.jlbank.com.cn:7002' # UAT # VITE_APP_BASE_API_Url = 'http://25.18.122.78:9786' diff --git a/src/pages/course/index.vue b/src/pages/course/index.vue index 3767745b..3a04fe6b 100644 --- a/src/pages/course/index.vue +++ b/src/pages/course/index.vue @@ -436,12 +436,12 @@ onShow(() => { .top-bg { background: linear-gradient(16deg, rgba(234, 246, 255, 0) 0%, #c3e6ff 100%); height: 480rpx; - width: 750rpx; + width: 100%; } .bot-bg { // background-color: #F6F8FF; background: linear-gradient(136deg, rgba(234, 246, 255, 0) 0%, #c3e6ff 100%); - width: 750rpx; + width: 100%; flex: 1; } .course-center-body { diff --git a/src/pages/courseDetail/index.vue b/src/pages/courseDetail/index.vue index 43020f56..eeb28782 100644 --- a/src/pages/courseDetail/index.vue +++ b/src/pages/courseDetail/index.vue @@ -157,14 +157,14 @@ }; const toStudyPrgh = (info) => { common.navigateTo( - '/pages/course/study?crsNum=' + - form.value.crsNum + - '&crsId=' + + '/pages/course/study?crsId=' + crsId.value + '&pgrphId=' + info.pgrphId + '&imgId=' + - form.imgId + form.imgId + + '&isPreview=' + + isPreview.value ); }; diff --git a/src/pages/examRanking/index.vue b/src/pages/examRanking/index.vue index b11aff45..91165c6a 100644 --- a/src/pages/examRanking/index.vue +++ b/src/pages/examRanking/index.vue @@ -41,7 +41,8 @@ - 我的排名 + 我的排名 + From b8b00ef78fcb6effc94744169250f26a607a8732 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E8=88=AA?= Date: Fri, 19 Sep 2025 14:15:43 +0800 Subject: [PATCH 3/3] =?UTF-8?q?fix=EF=BC=9A=20=E5=9B=BE=E7=89=87=E6=A0=B7?= =?UTF-8?q?=E5=BC=8F=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/course-item/course-item.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/course-item/course-item.vue b/src/components/course-item/course-item.vue index a0b4dba4..ad8d701d 100644 --- a/src/components/course-item/course-item.vue +++ b/src/components/course-item/course-item.vue @@ -1,7 +1,7 @@