diff --git a/src/components/markdown-preview/markdown-preview.vue b/src/components/markdown-preview/markdown-preview.vue
new file mode 100644
index 00000000..df00d1ad
--- /dev/null
+++ b/src/components/markdown-preview/markdown-preview.vue
@@ -0,0 +1,85 @@
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/pages/course/components/talkingItem.vue b/src/pages/course/components/talkingItem.vue
index ce829139..5d786f41 100644
--- a/src/pages/course/components/talkingItem.vue
+++ b/src/pages/course/components/talkingItem.vue
@@ -1,6 +1,6 @@
-
+
@@ -80,7 +80,7 @@
重新学
- 继续
+ 继续
@@ -90,7 +90,7 @@
-
+
@@ -108,7 +108,7 @@
-
+
@@ -157,7 +157,7 @@
-
+
@@ -228,6 +228,14 @@ const audioCacheObj = computed(() => storageStore.audioObj)
default: () => ({}),
type: Object
},
+ class: {
+ default:'',
+ type: String
+ },
+ id: {
+ default:'',
+ type: String
+ }
})
const { type, dataInfo, activeVoiceId, isPlaying, isLast, lastQuestionInfo} = toRefs(props)
@@ -327,7 +335,7 @@ const audioCacheObj = computed(() => storageStore.audioObj)
}
// readType 阅读内容类型pgrh段落/qns问题
emit('changePlay', unref(dataInfo)?.id)
- if(talkVoiceObj.value.src === itemVoice.value) {
+ if(talkVoiceObj.value.src && talkVoiceObj.value.src === itemVoice.value) {
talkVoiceObj.value.play()
return
}
@@ -402,6 +410,9 @@ const audioCacheObj = computed(() => storageStore.audioObj)
})
}
const showNextBtn = ref(true)
+ const showGoonBtn = computed(()=>{
+ return showNextBtn.value && [3, 6].indexOf(props.type) >= 0 && isLast.value && !isPlaying.value
+ })
const goOnGetQues = () => {
if(props.type === 5){
emit('nextQuestion', unref(dataInfo))
diff --git a/src/pages/course/index.vue b/src/pages/course/index.vue
index 6cc5f62b..cf4fa96a 100644
--- a/src/pages/course/index.vue
+++ b/src/pages/course/index.vue
@@ -167,16 +167,11 @@ import { onMounted, ref, computed } from 'vue'
}
// 点击生产线分类
const changePrdLine = (item)=>{
- activePrdlineType.value = item.value
+ activePrdlineType.value = item.value === activePrdlineType.value ? '' : item.value
}
// 点击课程分类
const changeCourseType = (item)=>{
- activeCourseType.value = item.value
-
- setTimeout(()=>{
- console.log(courseListTreeShow.value)
- })
-
+ activeCourseType.value = item.value === activeCourseType.value ? '' : item.value
}
const showTypeName = computed(()=>{
return (activeTab.value === '全部' && activeCourseType.value === '') || (activeTab.value === '生产线' && activePrdlineType.value === '')
@@ -241,7 +236,7 @@ import { onMounted, ref, computed } from 'vue'
const changeTab = (item) => {
if(!item) return
activeTab.value = item.name
- activeTag.value = ''
+ // activeTag.value = ''
activeCourseType.value = ''
activePrdlineType.value = ''
switch (item.name){
diff --git a/src/pages/index/dialog.vue b/src/pages/index/dialog.vue
index df93e492..badbb0ba 100644
--- a/src/pages/index/dialog.vue
+++ b/src/pages/index/dialog.vue
@@ -1,8 +1,11 @@
- AI问答
+
+
+
-