diff --git a/.env.development b/.env.development
index 5b4b8b4f..bc0a284c 100644
--- a/.env.development
+++ b/.env.development
@@ -19,11 +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_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/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 @@
-
-
-
+
+
+
+ :imgId="dataInfo.imageAddrs[0]" :previewDetail="false" @click="previewImage(dataInfo.imageAddrs[0])">
+ :picId="dataInfo.vidoAddrs[0].vidImgAddr" @click="previewVideo(dataInfo.vidoAddrs[0])">
@@ -407,8 +407,29 @@
const changeBr = (str = '') => {
return str.replace(/\/n/g, '\n');
};
+
+ const previewVideo = (obj)=>{
+ console.log(obj)
+ storageStore.setShowPreviewDetail({
+ status: true,
+ fileType: 'video',
+ fileId: '',
+ fileSrc: obj.vidAddr
+ })
+ }
+ const previewImage = (obj)=>{
+ storageStore.setShowPreviewDetail({
+ status: true,
+ fileType: 'image',
+ fileId: '',
+ fileSrc: obj
+ })
+ }
+
+
const voiceTime = ref('');
const itemInfo = ref({});
+
onMounted(() => {
initVoice();
});
diff --git a/src/pages/course/study.vue b/src/pages/course/study.vue
index 47b1c5f9..17bb4724 100644
--- a/src/pages/course/study.vue
+++ b/src/pages/course/study.vue
@@ -109,6 +109,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 {
@@ -817,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(() => {
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
},