旅游教育出版社-数字教材移动端
QYF-GitLab1
12 小时以前 8e3ee81b6ed824866734b7034604121f370f4201
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
<template>
  <div class="manualPage">
    <van-nav-bar
      title="操作手册"
      left-text
      left-arrow
      @click-left="onClickLeft"
    />
    <div style="padding-top: 20px" v-html="manualCon"></div>
  </div>
</template>
 
<script>
export default {
  name: "login",
  data() {
    return {
      manualCon: "",
    };
  },
  created() {
    this.getOperating();
  },
  methods: {
    onClickLeft() {
      this.$router.go(-1);
    },
    //操作手册
    getOperating() {
      this.MG.resource
        .getItem({
          path: "tourism_digitalTextbook\\tourism_digitalOperatingManual",
          fields: {
            tourism_content: [],
          },
        })
        .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>
.manualPage {
  width: 100%;
  height: 100%;
  padding: 15px;
}
</style>