闫增涛
2024-05-22 d07c2414b1d7be4a0d601c10987589bd2db83598
src/books/childHealth/view/index.vue
@@ -1,5 +1,12 @@
<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>
@@ -9,7 +16,7 @@
export default {
  name: "child-health",
  components: {
    pageContent
    pageContent,
  },
  data() {
    return {
@@ -17,11 +24,19 @@
      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();
    // this.getBookInfo();
  },
  methods: {
    getBookInfo() {
@@ -31,10 +46,10 @@
        productId: this.config.bookId,
        favoriteTypes: "FavoriteBookCity",
        itemFields: {
          "SysType=": "CmsFolder"
          "SysType=": "CmsFolder",
        },
        coverSize: {
          height: 300
          height: 300,
        },
        fields: {
          seriesName: [],
@@ -56,8 +71,8 @@
          pdf: [],
          protectedEpub: [],
          probationPage: [], //pdf试读页数
          freeEpubPage: [] //epub试读百分比
        }
          freeEpubPage: [], //epub试读百分比
        },
      };
      this.MG.store.getProductDetail(query).then((res) => {
        this.$data.bookData = res.datas;
@@ -98,7 +113,7 @@
              txt,
              page,
              x: e.x,
              y: e.y
              y: e.y,
            });
          }
        }
@@ -108,13 +123,13 @@
            chapterNum: "",
            txt: "",
            page: "",
            x: "",
            y: ""
            x: e.x,
            y: e.y,
          });
        }
      }
    }
  }
    },
  },
};
</script>