闫增涛
2024-05-20 e5ac9c38a59646544e6d4b6dee0b3c5f2970118f
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,16 @@
      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();
@@ -34,10 +46,10 @@
        productId: this.config.bookId,
        favoriteTypes: "FavoriteBookCity",
        itemFields: {
          "SysType=": "CmsFolder"
          "SysType=": "CmsFolder",
        },
        coverSize: {
          height: 300
          height: 300,
        },
        fields: {
          seriesName: [],
@@ -59,8 +71,8 @@
          pdf: [],
          protectedEpub: [],
          probationPage: [], //pdf试读页数
          freeEpubPage: [] //epub试读百分比
        }
          freeEpubPage: [], //epub试读百分比
        },
      };
      this.MG.store.getProductDetail(query).then((res) => {
        this.$data.bookData = res.datas;
@@ -101,7 +113,7 @@
              txt,
              page,
              x: e.x,
              y: e.y
              y: e.y,
            });
          }
        }
@@ -112,12 +124,12 @@
            txt: "",
            page: "",
            x: e.x,
            y: e.y
            y: e.y,
          });
        }
      }
    }
  }
    },
  },
};
</script>