zhongshujie
3 天以前 1695fcd442fe2cefb6d3b63869ad8a72ebd5210a
src/books/toddlerGameImplementation/view/components/index.vue
@@ -178,9 +178,10 @@
    }, 500);
    // 测试页面跳转
    // setTimeout(() => {
    //   this.gotoPage(2, 16);
    // }, 500);
    setTimeout(() => {
      this.gotoPage(4, 59);
    }, 500);
    // const pageDom = (this.container ? this.container : document)
    //   .querySelector("#app")
    //   .querySelectorAll(".page-box");
@@ -537,6 +538,7 @@
        }
      });
    },
    loadPageCallback(entries, observer) {
      entries.forEach(async (entry) => {
        if (entry.isIntersecting) {
@@ -554,11 +556,12 @@
              if (testData && testData[catalog]) {
                if (testData[catalog][page]) {
                  if (Array.isArray(testData[catalog][page])) {
                    this.questionDataMap[page] = await getQuestionList(
                    Vue.set(this.questionDataMap, page, await getQuestionList(
                      page,
                      testData[catalog][page],
                      this.config.activeBook
                    );
                    ));
                    console.log("题目", this.questionDataMap);
                  } else {
                    const obj = {};
                    for (let key in testData[catalog][page]) {
@@ -568,9 +571,8 @@
                        this.config.activeBook
                      );
                    }
                    this.questionDataMap[page] = obj;
                    Vue.set(this.questionDataMap, page, obj);
                  }
                  console.log("题目", this.questionDataMap);
                }
              }
            }