diff --git a/src/utils/mUtils.js b/src/utils/mUtils.js index 51b0542..5475ad4 100644 --- a/src/utils/mUtils.js +++ b/src/utils/mUtils.js @@ -285,7 +285,7 @@ export const processReuestData =(data)=>{ // 发请求前 业务处理 - debugger + // 设置公共报文逻辑 diff --git a/src/views/Book.vue b/src/views/Book.vue index ed0fb19..fd36326 100644 --- a/src/views/Book.vue +++ b/src/views/Book.vue @@ -71,7 +71,7 @@ export default { return { action:'http://60.xxxx.137.15:8081/admin-api/teachingMaterial/resource/upload/16550/6940601956829184', headers:{Authorization:`eyJhbGciOiJIUzUxMiJ9.eyJsb2dpbl91c2VyX2tleSI6IjYyMDFlYjA3LTY4ZWUtNGJhOC1iMjc3LTk4MjU0ZGI0MzUwMSJ9.zvW8Rr8ShOvwH5i7Cvl9bgp4MtznyLusrY86LMLW7MplNOjRp6j8lx6zkAD4_CvNXVF7v7MsYcRhN90DvhTq1g`}, - digitalTeaching: true, + digitalTeaching: false, // textBookData: LOCAL_VIEW_DETAIL, // catalogList: LOCAL_VIEW_CATALOG, // looseLeafData: LOCAL_VIEW_DATA, @@ -111,9 +111,7 @@ export default { created() { this.bookId = this.$route.query.bookId - if (this.$route.query.chapterId){ - this.chapterId = this.$route.query.chapterId - } + // this.userType = this.$route.query.userType || 'student' this.$store.state.redirecturl = this.$route.query.redirecturl var userType = getStore("userType") @@ -161,7 +159,8 @@ export default { // var locationData = await bookApi.userAction.getReadLocation({bookId:this.bookId}) // this.location = locationData.location - + + try { this.textBookData = await bookApi.bookinfo.detail({bookId:this.bookId}) @@ -177,13 +176,17 @@ export default { this.basisPath = this.textBookData.basisPath this.catalogList = await bookApi.bookinfo.category({bookId:this.bookId}) - this.looseLeafData = await bookApi.bookinfo.data({bookId:this.bookId}) + // this.looseLeafData = await bookApi.bookinfo.data({bookId:this.bookId}) this.show = true this.fullscreenLoading = false this.data.resources.list = await bookApi.resource.list({bookId:this.bookId}) + this.digitalTeaching = true + if (this.$route.query.chapterId){ + this.chapterId = this.$route.query.chapterI + } }, methods: {