| | |
| | | <template> |
| | | <div class="temp-book" @mouseup="handleMouseUp"> |
| | | <div |
| | | class="temp-book" |
| | | @mouseup="handleMouseUp" |
| | | :style="{ |
| | | fontSize: fontSize ? fontSize + 'px' : '16px', |
| | | transform: `scale(${pageZoom ? pageZoom : 1})`, |
| | | }" |
| | | > |
| | | <pageContent></pageContent> |
| | | </div> |
| | | </template> |
| | |
| | | export default { |
| | | name: "child-health", |
| | | components: { |
| | | pageContent |
| | | pageContent, |
| | | }, |
| | | data() { |
| | | return { |
| | |
| | | type: "option", |
| | | idPathList: [], |
| | | cardList: [], |
| | | isMouseDown: false |
| | | isMouseDown: false, |
| | | }; |
| | | }, |
| | | computed: { |
| | | fontSize() { |
| | | return this.$store.state.qiankun.fontSize; |
| | | }, |
| | | pageZoom() { |
| | | return this.$store.state.qiankun.scale / 100; |
| | | }, |
| | | }, |
| | | mounted() { |
| | | this.getBookInfo(); |
| | |
| | | productId: this.config.bookId, |
| | | favoriteTypes: "FavoriteBookCity", |
| | | itemFields: { |
| | | "SysType=": "CmsFolder" |
| | | "SysType=": "CmsFolder", |
| | | }, |
| | | coverSize: { |
| | | height: 300 |
| | | height: 300, |
| | | }, |
| | | fields: { |
| | | seriesName: [], |
| | |
| | | pdf: [], |
| | | protectedEpub: [], |
| | | probationPage: [], //pdf试读页数 |
| | | freeEpubPage: [] //epub试读百分比 |
| | | } |
| | | freeEpubPage: [], //epub试读百分比 |
| | | }, |
| | | }; |
| | | this.MG.store.getProductDetail(query).then((res) => { |
| | | console.log("图书信息", res.datas); |
| | | this.$data.bookData = res.datas; |
| | | this.$store.commit("setRootCmsItemId", res.datas.rootCmsItemId); |
| | | }); |
| | |
| | | txt, |
| | | page, |
| | | x: e.x, |
| | | y: e.y |
| | | y: e.y, |
| | | }); |
| | | } |
| | | console.log("选中的文字", { |
| | | chapterNum, |
| | | txt, |
| | | selection, |
| | | node, |
| | | page, |
| | | x: e.x, |
| | | y: e.y |
| | | }); |
| | | } |
| | | } else { |
| | | if (this.$store.state.qiankun.windowSelection) { |
| | |
| | | chapterNum: "", |
| | | txt: "", |
| | | page: "", |
| | | x: "", |
| | | y: "" |
| | | x: e.x, |
| | | y: e.y, |
| | | }); |
| | | } |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | }, |
| | | }; |
| | | </script> |
| | | |