zhongshujie
1 天以前 ce70bc450a2401997bb850f89f3c4dc0a23e0a72
src/books/rehabilitationMedicineIntroduction/view/components/index.vue
@@ -9,21 +9,21 @@
            transformOrigin: 'center top',
        }">
            <pageHeader v-if="showCatalogList.indexOf(1) > -1" :showPageList="loadPageList"></pageHeader>
            <chapter1 v-if="showCatalogList.indexOf(2) > -1" :showPageList="loadPageList" :resourceList="resourceList">
            <chapter1 v-if="showCatalogList.indexOf(2) > -1" :showPageList="loadPageList" :getResourceInfo="resourceListFun">
            </chapter1>
            <chapter2 v-if="showCatalogList.indexOf(3) > -1" :showPageList="loadPageList" :resourceList="resourceList">
            <chapter2 v-if="showCatalogList.indexOf(3) > -1" :showPageList="loadPageList" :getResourceInfo="resourceListFun">
            </chapter2>
            <chapter3 v-if="showCatalogList.indexOf(4) > -1" :showPageList="loadPageList" :resourceList="resourceList">
            <chapter3 v-if="showCatalogList.indexOf(4) > -1" :showPageList="loadPageList" :getResourceInfo="resourceListFun">
            </chapter3>
            <chapter4 v-if="showCatalogList.indexOf(5) > -1" :showPageList="loadPageList" :resourceList="resourceList">
            <chapter4 v-if="showCatalogList.indexOf(5) > -1" :showPageList="loadPageList" :getResourceInfo="resourceListFun">
            </chapter4>
            <chapter5 v-if="showCatalogList.indexOf(6) > -1" :showPageList="loadPageList" :resourceList="resourceList">
            <chapter5 v-if="showCatalogList.indexOf(6) > -1" :showPageList="loadPageList" :getResourceInfo="resourceListFun">
            </chapter5>
            <chapter6 v-if="showCatalogList.indexOf(7) > -1" :showPageList="loadPageList" :resourceList="resourceList">
            <chapter6 v-if="showCatalogList.indexOf(7) > -1" :showPageList="loadPageList" :getResourceInfo="resourceListFun">
            </chapter6>
            <chapter7 v-if="showCatalogList.indexOf(8) > -1" :showPageList="loadPageList" :resourceList="resourceList">
            <chapter7 v-if="showCatalogList.indexOf(8) > -1" :showPageList="loadPageList" :getResourceInfo="resourceListFun">
            </chapter7>
            <chapter8 v-if="showCatalogList.indexOf(9) > -1" :showPageList="loadPageList" :resourceList="resourceList">
            <chapter8 v-if="showCatalogList.indexOf(9) > -1" :showPageList="loadPageList" :getResourceInfo="resourceListFun">
            </chapter8>
        </div>
@@ -41,7 +41,6 @@
    import chapter6 from "./chapter6.vue"
    import chapter7 from "./chapter7.vue"
    import chapter8 from "./chapter8.vue"
    import NoteIcon from "@/assets/images/biji.png";
    import _ from "lodash";
    import Swiper from "swiper/bundle";
@@ -178,7 +177,7 @@
                threshold: 0, // 指定交叉比例,这里设为 0.5,表示当目标元素一半或更多显示在视窗中时触发回调函数。
            });
            // this.getBookResourceList();
            this.getBookResourceList();
            // 启动页码观察
            setTimeout(() => {
@@ -188,7 +187,7 @@
            // 测试页面跳转
            setTimeout(() => {
                this.gotoPage(2, 28);
                this.gotoPage(3, 31);
            }, 500);
            // const pageDom = (this.container ? this.container : document)
@@ -226,7 +225,7 @@
                this.resourceList = await this.config.getBookResources(
                    process.env.VUE_APP_RESOURCE_CTX + (process.env.VUE_APP_ENV == "product"
                        ? process.env.VUE_APP_BOOK_ID
                        : "clinicalDiseasesSummary")
                        : "rehabilitationMedicineIntroduction")
                );
            },
            // 滚动监听