| | |
| | | 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) { |
| | |
| | | // artAndDrama |
| | | // mathBook |
| | | |
| | | this.activeBook = await this.config.getBookConfig( |
| | | process.env.VUE_APP_RESOURCE_CTX + |
| | | (process.env.VUE_APP_ENV == "product" |
| | | ? process.env.VUE_APP_BOOK_ID |
| | | : "sportsAndHealth") |
| | | ); |
| | | // this.activeBook = await this.config.getBookConfig( |
| | | // 'http://182.92.203.7:3007/books/resource/'+ |
| | | // process.env.VUE_APP_RESOURCE_CTX + |
| | | // (process.env.VUE_APP_ENV == "product" |
| | | // ? process.env.VUE_APP_BOOK_ID |
| | | // : "botany") |
| | | // : "artAndDrama") |
| | | // ); |
| | | 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; |