|
@@ -24,8 +24,8 @@ const menu2Items = [
|
|
|
{ id: '2', name: '学习', icon: 'https://oss.xiaoxiongcode.com/static/home/假设.png' },
|
|
{ id: '2', name: '学习', icon: 'https://oss.xiaoxiongcode.com/static/home/假设.png' },
|
|
|
{ id: '3', name: '假设', icon: 'https://oss.xiaoxiongcode.com/static/home/卡通扁平化功能图标设计.png' },
|
|
{ id: '3', name: '假设', icon: 'https://oss.xiaoxiongcode.com/static/home/卡通扁平化功能图标设计.png' },
|
|
|
{ id: '4', name: '交互', icon: 'https://oss.xiaoxiongcode.com/static/home/总结.png' },
|
|
{ id: '4', name: '交互', icon: 'https://oss.xiaoxiongcode.com/static/home/总结.png' },
|
|
|
- { id: '5', name: '实验', icon: 'https://oss.xiaoxiongcode.com/static/home/实验.png' },
|
|
|
|
|
- { id: '6', name: '拓展', icon: 'https://oss.xiaoxiongcode.com/static/home/拓展.png' },
|
|
|
|
|
|
|
+ { id: '5', name: '总结', icon: 'https://oss.xiaoxiongcode.com/static/home/拓展.png' },
|
|
|
|
|
+ // { id: '6', name: '拓展', icon: 'https://oss.xiaoxiongcode.com/static/home/拓展.png' },
|
|
|
]
|
|
]
|
|
|
//当前进度
|
|
//当前进度
|
|
|
const progress = ref(1)
|
|
const progress = ref(1)
|
|
@@ -82,14 +82,18 @@ onMounted(async () => {
|
|
|
}, 1000)
|
|
}, 1000)
|
|
|
})
|
|
})
|
|
|
async function handleEnded() {
|
|
async function handleEnded() {
|
|
|
- if (progress.value === 2) {
|
|
|
|
|
- return
|
|
|
|
|
- }
|
|
|
|
|
- if (progress2.value === 6) {
|
|
|
|
|
|
|
+
|
|
|
|
|
+ if (progress2.value === 5) {
|
|
|
|
|
+ if (progress.value === 2) {
|
|
|
|
|
+ return
|
|
|
|
|
+ }
|
|
|
progress.value++
|
|
progress.value++
|
|
|
} else {
|
|
} else {
|
|
|
progress2.value++
|
|
progress2.value++
|
|
|
}
|
|
}
|
|
|
|
|
+ if (progress.value === 2) {
|
|
|
|
|
+ return
|
|
|
|
|
+ }
|
|
|
await updateSubjectProgress({
|
|
await updateSubjectProgress({
|
|
|
courseId: course.value?.id,
|
|
courseId: course.value?.id,
|
|
|
mainProgress: progress.value,
|
|
mainProgress: progress.value,
|
|
@@ -110,7 +114,7 @@ async function handleEnded() {
|
|
|
// case 2:
|
|
// case 2:
|
|
|
// case 4:
|
|
// case 4:
|
|
|
// case 5:
|
|
// case 5:
|
|
|
- // case 6:
|
|
|
|
|
|
|
+ // case 5:
|
|
|
// progress2.value++
|
|
// progress2.value++
|
|
|
// break
|
|
// break
|
|
|
// }
|
|
// }
|
|
@@ -124,7 +128,7 @@ onShow(() => {
|
|
|
status.value = (prevPage as any)?.status || 'wait'
|
|
status.value = (prevPage as any)?.status || 'wait'
|
|
|
if (status.value === 'test') {
|
|
if (status.value === 'test') {
|
|
|
if (progress.value === 2) {
|
|
if (progress.value === 2) {
|
|
|
- router.back()
|
|
|
|
|
|
|
+ progress2.value = 1
|
|
|
}
|
|
}
|
|
|
(prevPage as any).status = 'wait'
|
|
(prevPage as any).status = 'wait'
|
|
|
}
|
|
}
|