旅游教育出版社-数字教材移动端
QYF-GitLab1
昨天 8e3ee81b6ed824866734b7034604121f370f4201
src/views/index/manual.vue
@@ -6,7 +6,7 @@
      left-arrow
      @click-left="onClickLeft"
    />
    <div style="padding-top: 20px;" v-html="manualCon"></div>
    <div style="padding-top: 20px" v-html="manualCon"></div>
  </div>
</template>
@@ -16,11 +16,10 @@
  data() {
    return {
      manualCon: "",
    };
  },
  created() {
    this.getOperating()
    this.getOperating();
  },
  methods: {
     onClickLeft() {
@@ -37,13 +36,21 @@
        })
        .then((res) => {
          if (res.datas.length > 0) {
            res.datas.forEach((item) => {
              item.tourism_content = item.tourism_content.replace(
                /<img/g,
                '<img style="max-width:100%;height:auto"'
              );
              item.tourism_content = item.tourism_content.replace(
                /\..\/file/g,
                this.config.requestCtx + "/file"
              );
            });
            this.manualCon = res.datas[0].tourism_content;
          }
        });
    },
  }
  },
};
</script>
<style scoped>
@@ -51,8 +58,5 @@
    width:100%;
    height:100%;
    padding: 15px;
}
</style>