YM
2024-05-28 de8dbab2dae4853f781ae91e6ca864fdf9b361e7
修复放大缩小
3个文件已修改
34 ■■■■■ 已修改文件
src/App.vue 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/books/childHealth/view/content/index.vue 17 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/books/childHealth/view/index.vue 13 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/App.vue
@@ -58,10 +58,10 @@
    } else {
      this.activeBook = await this.config.getBookConfig(
        // childHealth
        this.config.resourceCtx + "lifeCare"
        this.config.resourceCtx + "childHealth"
      );
      // 测试试读30页
      // this.activeBook.tryPageCount = 30;
      // this.activeBook.tryPageCount = 10;
      this.config.activeBook = this.activeBook;
      this.config.goodsStore = this.activeBook.storeRefcode;
src/books/childHealth/view/content/index.vue
@@ -1,6 +1,13 @@
<template>
  <div class="page-main" @scroll="throttledScrollHandler">
    <div class="page-content">
    <div
      class="page-content"
      :style="{
        fontSize: fontSize ? fontSize + 'px' : '16px',
        transform: `scale(${pageZoom ? pageZoom : 1})`,
        transformOrigin: 'center top'
      }"
    >
      <pageHeader
        v-if="showCatalogList.indexOf(0) > -1"
        :showPageList="loadPageList"
@@ -105,6 +112,14 @@
      questionData: {}
    };
  },
  computed: {
    fontSize() {
      return this.$store.state.qiankun.fontSize;
    },
    pageZoom() {
      return this.$store.state.qiankun.scale / 100;
    }
  },
  provide() {
    return {
      changeQuestionData: this.changeQuestionData
src/books/childHealth/view/index.vue
@@ -2,10 +2,6 @@
  <div
    class="temp-book"
    @mouseup="handleMouseUp"
    :style="{
      fontSize: fontSize ? fontSize + 'px' : '16px',
      transform: `scale(${pageZoom ? pageZoom : 1})`
    }"
  >
    <pageContent></pageContent>
  </div>
@@ -20,14 +16,7 @@
  data() {
    return {};
  },
  computed: {
    fontSize() {
      return this.$store.state.qiankun.fontSize;
    },
    pageZoom() {
      return this.$store.state.qiankun.scale / 100;
    }
  },
  mounted() {},
  methods: {
    getParentWithClass(element, className) {