This commit is contained in:
杨航
2025-08-28 17:08:45 +08:00
parent f181bc040c
commit a138ccd9c8
3 changed files with 9 additions and 8 deletions
+7 -6
View File
@@ -215,7 +215,7 @@
voiceObj: null
}))
if(isPreview.value){
resStartStudyNow()
resStartStudyNow(body.teacheList)
}else{
if (body.stdyProgressFlag === 'N') {
step.value = 1
@@ -248,7 +248,7 @@
step.value = 2
} else {
// 重新学习
resStartStudyNow()
resStartStudyNow(body.teacheList)
}
}).finally(() => {})
}
@@ -260,20 +260,21 @@
}
};
// 重新学习
const resStartStudyNow = () => {
const resStartStudyNow = ($list = []) => {
let _ajax = isPreview.value ? previewAfreshStudyCourse : afreshStudyCourseApi
console.log(_ajax)
_ajax({
crsId: crsId.value,
}).then(res => {
step.value = 1
teacherList.value = body.teacheList.map(t => ({
teacherList.value = $list.map(t => ({
...t,
voicePath: '',
voiceObj: null
}))
}).catch(t => {
}).catch(e => {
step.value = 1
teacherList.value = body.teacheList.map(t => ({
teacherList.value = $list.map(t => ({
...t,
voicePath: '',
voiceObj: null
@@ -14,7 +14,7 @@
</view>
</view>
<view class="bottom">
<view class="fz-30 font_pf text ellipsis-text">{{ item.pgrphContent }}</view>
<view class="fz-30 font_pf text ellipsis-text">{{ item.pgrphTitle || item.pgrphContent }}</view>
</view>
</view>
</template>