diff --git a/.env.development b/.env.development index dfa1fb92..a0b9c0cb 100644 --- a/.env.development +++ b/.env.development @@ -23,6 +23,7 @@ VITE_APP_BASE_API_Url = 'https://aitstest.jlbank.com.cn:7002' # 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 },