mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-mobile.git
synced 2025-12-14 13:26:47 +08:00
考试
This commit is contained in:
@@ -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{
|
||||
|
||||
Reference in New Issue
Block a user