|
@@ -1,7 +1,7 @@
|
|
|
<template>
|
|
|
<view>
|
|
|
<view>
|
|
|
- <uni-icons type="left" size="30" @click=""></uni-icons>
|
|
|
+ <uni-icons type="left" size="30" @click="handleBack"></uni-icons>
|
|
|
<text>单元测试</text>
|
|
|
<view><text>{{count}}</text>/<text>{{total}}</text></view>
|
|
|
</view>
|
|
@@ -73,7 +73,26 @@
|
|
|
const uniPointsRef = ref(null);
|
|
|
const chengjiRef = ref(null);
|
|
|
|
|
|
- function sendDataToStudyPage() {
|
|
|
+ // 查看答案
|
|
|
+ function checkAnswer() {
|
|
|
+ chengjiRef.value.showPopup();
|
|
|
+ }
|
|
|
+ // 继续学习
|
|
|
+ function goStudyContinue() {
|
|
|
+ // 设置 从单元测试 到 岛 的路由参数
|
|
|
+ setStudyStorage({
|
|
|
+ nianji: nianji.value,
|
|
|
+ xueqi: xueqi.value,
|
|
|
+ zhangId: nextZhangId.value,
|
|
|
+ jieId: jieId.value,
|
|
|
+ nextZhangId: null,
|
|
|
+ });
|
|
|
+ uni.switchTab({
|
|
|
+ url: `/pages/study/index`
|
|
|
+ })
|
|
|
+ }
|
|
|
+
|
|
|
+ function handleBack() {
|
|
|
// 设置 从单元测试 到 岛 的路由参数
|
|
|
setStudyStorage({
|
|
|
nianji: nianji.value,
|
|
@@ -82,17 +101,8 @@
|
|
|
jieId: jieId.value,
|
|
|
nextZhangId: nextZhangId.value,
|
|
|
});
|
|
|
- }
|
|
|
-
|
|
|
- // 查看答案
|
|
|
- function checkAnswer() {
|
|
|
- chengjiRef.value.showPopup();
|
|
|
- }
|
|
|
- // 继续学习
|
|
|
- function goStudyContinue() {
|
|
|
- sendDataToStudyPage();
|
|
|
uni.switchTab({
|
|
|
- url: `/pages/study/index?zhangId`
|
|
|
+ url: `/pages/study/index`
|
|
|
})
|
|
|
}
|
|
|
</script>
|