This commit is contained in:
zhangsir
2024-06-27 10:57:02 +08:00
parent ec31eec938
commit 0932610f9b
6 changed files with 176 additions and 10 deletions

View File

@@ -72,7 +72,7 @@
<view class="text">{{currentItem.currentRatio || 0}}%</view>
</view>
</view>
<view class="tea_text">
<view v-if="currentItem.type==1" class="tea_text">
<view>课程讲师: {{currentItem.teacherName?currentItem.teacherName.split(',').length > 3
? currentItem.teacherName.split(',').slice(0, 3).join(',') + '...'
: currentItem.teacherName:''}}</view>
@@ -88,7 +88,7 @@
</template>
<script>
import { taskList } from "@/api/modules/growth.js"
import { taskList,submitExternalExam } from "@/api/modules/growth.js"
export default {
onLoad(options) {
this.growId = options.growId
@@ -319,6 +319,28 @@
console.log(item,'在线')
uni.navigateTo({url:"/pages/study/courseStudy?id=" + item.targetId});
}else if (item.type == 5) {
if(item.examType != 1){
submitExternalExam({
"type": 14,
"externalId": item.courseId,
"externalName": item.title,
"targetId": this.$route.query.growId,
"studentNo": item.studentNo
}).then(res=>{
console.log(res,'res')
})
this.$router.push({
path: '/pages/learnPath/ExamScore',
query: {
id: item.id,
type: 14,
pName: item.title,
courseId: item.courseId,
studentNo: item.studentNo
}
})
return
}
console.log(item,'考试')
uni.navigateTo({url:"/pages/exam/exam?id=" + item.targetId});
}else{