|
@@ -41,7 +41,6 @@ function useJifen() {
|
|
|
export function useExam() {
|
|
|
// 缓存
|
|
|
const {getXueke} = useXuekeNianji();
|
|
|
- const { updateTishi, getTishi} = useUnitTestTishi();
|
|
|
|
|
|
const { showTishi, handleCloseTishi, handleShowTishi} = useTishiLeftRight()
|
|
|
const {rightAnswer,wrongAnswer,jifen, updateJifen} = useJifen();
|
|
@@ -58,14 +57,14 @@ export function useExam() {
|
|
|
xueke: null,
|
|
|
})
|
|
|
onLoad((options) => {
|
|
|
- const { xueke } = getXueke();
|
|
|
+ const { cardId } = getXueke();
|
|
|
const {
|
|
|
jieId,zhangId,nianji
|
|
|
} = options;
|
|
|
data.jieId = jieId; // 需要路由参数 节Id
|
|
|
data.zhangId = zhangId;// 需要路由参数 章Id
|
|
|
data.nianji = nianji; // 需要年纪Id 来执行返回页面
|
|
|
- data.xueke = xueke; // 需要年纪Id 来执行返回页面
|
|
|
+ data.xueke = cardId; // 需要年纪Id 来执行返回页面
|
|
|
|
|
|
|
|
|
// 初始化页面数据
|
|
@@ -144,7 +143,7 @@ export function useExam() {
|
|
|
|
|
|
// 提示信息显示隐藏
|
|
|
function useTishiLeftRight() {
|
|
|
-
|
|
|
+ const { updateTishi, getTishi} = useUnitTestTishi();
|
|
|
const showTishi = ref(false);
|
|
|
// 大鹅关闭追加缓存 --- 单独针对当前手机的缓存提示
|
|
|
function handleCloseTishi() {
|