fix: bug
This commit is contained in:
+1
-1
@@ -29,7 +29,7 @@ VITE_APP_BASE_H5_API_Url = 'http://25.18.122.65:7001'
|
||||
|
||||
# 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'
|
||||
VITE_APP_BASE_H5_API_Url_TRAASK = 'http://25.64.16.144:9605'
|
||||
|
||||
|
||||
# 王洋洋
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user