| | |
| | | export default { |
| | | name: "child-health", |
| | | components: { |
| | | pageContent, |
| | | pageContent |
| | | }, |
| | | data() { |
| | | return { |
| | |
| | | } |
| | | }; |
| | | this.MG.store.getProductDetail(query).then((res) => { |
| | | console.log("图书信息",res.datas); |
| | | this.$data.bookData = res.datas |
| | | this.$store.commit('setRootCmsItemId',res.datas.rootCmsItemId) |
| | | this.$data.bookData = res.datas; |
| | | this.$store.commit("setRootCmsItemId", res.datas.rootCmsItemId); |
| | | }); |
| | | }, |
| | | getParentWithClass(element, className) { |
| | |
| | | } |
| | | }, |
| | | handleMouseUp(e) { |
| | | const selection = (this.container ? this.container : window).getSelection(); |
| | | const selection = ( |
| | | this.container ? this.container : window |
| | | ).getSelection(); |
| | | const txt = selection.toString(); |
| | | if (selection.type != "none" && txt) { |
| | | let node = selection.anchorNode.parentNode; |
| | |
| | | y: e.y |
| | | }); |
| | | } |
| | | console.log("选中的文字", { |
| | | chapterNum, |
| | | txt, |
| | | selection, |
| | | node, |
| | | page, |
| | | x: e.x, |
| | | y: e.y |
| | | } |
| | | } else { |
| | | if (this.$store.state.qiankun.windowSelection) { |
| | | this.$store.state.qiankun.windowSelection({ |
| | | chapterNum: "", |
| | | txt: "", |
| | | page: "", |
| | | x: "", |
| | | y: "" |
| | | }); |
| | | } |
| | | } |
| | |
| | | }; |
| | | </script> |
| | | |
| | | <style lang="less" scoped> |
| | | |
| | | </style> |
| | | <style lang="less" scoped></style> |