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] =?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 },