From 89d6be7703c64d55c6e13fe7d410108f1e6f89ca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E8=88=AA?= Date: Thu, 25 Sep 2025 14:19:50 +0800 Subject: [PATCH 1/4] =?UTF-8?q?fix=EF=BC=9B=20=E6=96=87=E4=BB=B6=E9=A2=84?= =?UTF-8?q?=E8=A7=88=E8=B0=83=E6=95=B4=E9=A2=84=E8=A7=88=E4=BD=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.development | 1 + .../image-preview/preview-detail.vue | 293 ++++++++++++++++++ .../image-preview/video-preview.vue | 18 +- src/pages/course/components/talkingItem.vue | 25 +- src/pages/course/study.vue | 2 + src/store/storage.js | 26 +- 6 files changed, 355 insertions(+), 10 deletions(-) create mode 100644 src/components/image-preview/preview-detail.vue diff --git a/.env.development b/.env.development index 44824331..4202357e 100644 --- a/.env.development +++ b/.env.development @@ -23,6 +23,7 @@ VITE_APP_BASE_H5_API_Url = 'http://25.18.122.65:7001' # VITE_APP_BASE_H5_API_Url = 'http://25.18.122.91:9786' # VITE_APP_BASE_H5_API_Url = 'http://25.18.122.78:9786' +VITE_APP_BASE_H5_API_Url_TRAAPP = 'http://25.64.16.130:9601' VITE_APP_BASE_H5_API_Url_TRASTUDY = 'http://25.64.16.130:9602' # VITE_APP_BASE_H5_API_Url_TRAASK = 'http://25.64.16.144:9605' diff --git a/src/components/image-preview/preview-detail.vue b/src/components/image-preview/preview-detail.vue new file mode 100644 index 00000000..970cd9e0 --- /dev/null +++ b/src/components/image-preview/preview-detail.vue @@ -0,0 +1,293 @@ + + + + + \ No newline at end of file diff --git a/src/components/image-preview/video-preview.vue b/src/components/image-preview/video-preview.vue index 1ba9d5d8..bfd3d5df 100644 --- a/src/components/image-preview/video-preview.vue +++ b/src/components/image-preview/video-preview.vue @@ -1,7 +1,7 @@ @@ -158,6 +159,7 @@ import common from '@/common/common' import TalkingItem from '@/pages/course/components/talkingItem.vue' import ImagePreview from '@/components/image-preview/image-preview.vue' + import PreviewDetail from '@/components/image-preview/preview-detail.vue' import TouchBtn from '@/pages/course/components/touchBtn.vue' import { diff --git a/src/store/storage.js b/src/store/storage.js index 22cc4f81..62ae21c7 100644 --- a/src/store/storage.js +++ b/src/store/storage.js @@ -6,7 +6,11 @@ export const useStorageStore = defineStore('storageStore',{ imgObjStr: '{}', videoObjStr: '{}', audioObjStr: '{}', - touchBtnZIndex: 9 + touchBtnZIndex: 12, + showPreviewDetail: false, + fileType: 'iamge', + fileId: '', + fileSrc: '' }), getters:{ imgObj(state){ @@ -20,9 +24,27 @@ export const useStorageStore = defineStore('storageStore',{ }, getTouchBtnZIndex(state){ return state.touchBtnZIndex - } + }, + getShowPreviewDetail(state){ + return state.showPreviewDetail + }, + getFileType(state){ + return state.fileType + }, + getFileId(state){ + return state.fileId + }, + getFileSrc(state){ + return state.fileSrc + }, }, actions:{ + setShowPreviewDetail({ status = false, fileType = 'image', fileId = '', fileSrc = '' }){ + this.showPreviewDetail = status + this.fileId = fileId + this.fileType = fileType + this.fileSrc = fileSrc + }, setTouchBtnZIndex(index = 12){ this.touchBtnZIndex = index }, From 7d3e68eec39e7f52f8a58bc059849c230c667eb9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=94=B0=E5=B2=A9?= Date: Thu, 25 Sep 2025 14:32:46 +0800 Subject: [PATCH 2/4] ss --- .env.development | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.env.development b/.env.development index 5b4b8b4f..dfa1fb92 100644 --- a/.env.development +++ b/.env.development @@ -2,7 +2,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' # VITE_APP_BASE_API_Url = ' http://25.18.122.66:9786' #sit # VITE_APP_BASE_API_Url = 'http://25.18.122.91:9786' From 772029378d32d0505cf96de2e8ef8a04ba87995f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=94=B0=E5=B2=A9?= Date: Thu, 25 Sep 2025 15:57:33 +0800 Subject: [PATCH 3/4] sss --- .env.development | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.env.development b/.env.development index a0b9c0cb..70f1284a 100644 --- a/.env.development +++ b/.env.development @@ -2,7 +2,7 @@ ENV = 'development' # 'development' -VITE_APP_BASE_API_Url = 'https://aitstest.jlbank.com.cn:7002' +VITE_APP_BASE_API_Url = 'https://aitstest.jlbank.com.cn:7001' # VITE_APP_BASE_API_Url = ' http://25.18.122.66:9786' #sit # VITE_APP_BASE_API_Url = 'http://25.18.122.91:9786' From a662e9b6f9f851ac155c37fddf58ad0c5d47a51d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E8=88=AA?= Date: Thu, 25 Sep 2025 15:58:51 +0800 Subject: [PATCH 4/4] =?UTF-8?q?fix=EF=BC=9B=20bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.development | 6 +++--- src/pages/course/study.vue | 37 +++++++++++++++++++------------------ 2 files changed, 22 insertions(+), 21 deletions(-) diff --git a/.env.development b/.env.development index 70f1284a..bc0a284c 100644 --- a/.env.development +++ b/.env.development @@ -19,12 +19,12 @@ VITE_APP_BASE_API_Url = 'https://aitstest.jlbank.com.cn:7001' # h5专用地址x2 -#VITE_APP_BASE_H5_API_Url = 'http://25.18.122.65:7001' +VITE_APP_BASE_H5_API_Url = 'http://25.18.122.65:7001' # VITE_APP_BASE_H5_API_Url = 'http://25.18.122.91:9786' # VITE_APP_BASE_H5_API_Url = 'http://25.18.122.78:9786' -VITE_APP_BASE_H5_API_Url_TRAAPP = 'http://25.64.16.130:9601' -VITE_APP_BASE_H5_API_Url_TRASTUDY = 'http://25.64.16.130:9602' +# VITE_APP_BASE_H5_API_Url_TRAAPP = 'http://25.64.16.130:9601' +# VITE_APP_BASE_H5_API_Url_TRASTUDY = 'http://25.64.16.130:9602' # VITE_APP_BASE_H5_API_Url_TRAASK = 'http://25.64.16.144:9605' diff --git a/src/pages/course/study.vue b/src/pages/course/study.vue index bae45d32..17bb4724 100644 --- a/src/pages/course/study.vue +++ b/src/pages/course/study.vue @@ -819,24 +819,25 @@ if (watchFlag.value === 1) return // getData('2'); // initsocketTask() - if (!isPreview.value) { - studyStartApi({ - crsId: crsId.value, - teacherNo: choiceTeacher.value, - studyType: isPreview.value ? 'P' : 'S', - isContinue: 'Y', - stdyId: stdyId.value - }).then(res => { - const { - body - } = res - stdyId.value = body.stdyId || '' - stdyBatch.value = body.stdyBatch || '' - oldStdyId.value = body.oldStdyId || '' - logId.value = body.logId || '' - step.value = 2 - }).catch(err => {}) - } + // 注释显示时开始新纪录 + // if (!isPreview.value) { + // studyStartApi({ + // crsId: crsId.value, + // teacherNo: choiceTeacher.value, + // studyType: isPreview.value ? 'P' : 'S', + // isContinue: 'Y', + // stdyId: stdyId.value + // }).then(res => { + // const { + // body + // } = res + // stdyId.value = body.stdyId || '' + // stdyBatch.value = body.stdyBatch || '' + // oldStdyId.value = body.oldStdyId || '' + // logId.value = body.logId || '' + // step.value = 2 + // }).catch(err => {}) + // } }) const watchFlag = ref(1) onUnload(() => {