From 51ad6706fed4b080b0cb1bb771028a551b9ec27c Mon Sep 17 00:00:00 2001 From: zhongshujie <2862698242@qq.com> Date: 星期二, 22 十月 2024 15:19:18 +0800 Subject: [PATCH] Merge branch 'master' of http://182.92.203.7:2001/r/testbookLayout --- src/App.vue | 24 +++++++++++++++--------- 1 files changed, 15 insertions(+), 9 deletions(-) diff --git a/src/App.vue b/src/App.vue index 1d19255..04f2ced 100644 --- a/src/App.vue +++ b/src/App.vue @@ -8,6 +8,8 @@ <artAndDance v-if="activeBook.name == 'artAndDance'"></artAndDance> <artAndDrama v-if="activeBook.name == 'artAndDrama'"></artAndDrama> <mathBook v-if="activeBook.name == 'mathBook'"></mathBook> + <botany v-if="activeBook.name == 'botany'"></botany> + <civilAviation v-if="activeBook.name == 'civilAviation'"></civilAviation> </div> </template> @@ -22,8 +24,9 @@ sportsAndHealth: () => import("./books/sportsAndHealth/view/index.vue"), artAndDance: () => import("./books/artAndDance/view/index.vue"), mathBook: () => import("./books/mathBook/view/index.vue"), - artAndDrama: () => import("./books/artAndDrama/view/index.vue") - + artAndDrama: () => import("./books/artAndDrama/view/index.vue"), + botany: () => import("./books/botany/view/index.vue"), + civilAviation: () => import("./books/civilAviation/view/index.vue") }, data() { return { @@ -33,13 +36,10 @@ async created() { if (this.setGlobalState) { this.setGlobalState({ - initTestBook: async (bookId, tryPageCount) => { - this.activeBook = await this.config.getBookConfig( process.env.VUE_APP_RESOURCE_CTX + process.env.VUE_APP_BOOK_ID ); - this.config.activeBook = this.activeBook; this.config.goodsStore = this.activeBook.storeRefcode; if (tryPageCount) { @@ -63,12 +63,20 @@ // artAndDance // artAndDrama // mathBook + // civilAviation this.activeBook = await this.config.getBookConfig( - process.env.VUE_APP_RESOURCE_CTX + + process.env.VUE_APP_RESOURCE_CTX + (process.env.VUE_APP_ENV == "product" ? process.env.VUE_APP_BOOK_ID - : "artAndDrama") + : "mathBook") ); + + // this.activeBook = await this.config.getBookConfig( + // 'http://182.92.203.7:3007/books/resource/'+ + // (process.env.VUE_APP_ENV == "product" + // ? process.env.VUE_APP_BOOK_ID + // : "botany") + // ); // 娴嬭瘯璇曡30椤� // this.activeBook.tryPageCount = 10; this.config.activeBook = this.activeBook; @@ -76,11 +84,9 @@ } }, methods: { - but() { console.log(this.activeBook, 'this.activeBook789'); } - } }; -- Gitblit v1.9.1