dcc
2024-06-13 3616db170333df7d668c97323344335b52c4153c
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
<template>
  <div class="right-padding">
    <div class="right-title">{{ $t("message.user.bangzhuzhongxin") }}</div>
    <div class="margin-top-bottom20">
      <el-collapse v-for="item in helpData" :key="item.id">
        <el-collapse-item :title="item.title" :name="item.id">
          <div v-html="item.content"></div>
        </el-collapse-item>
      </el-collapse>
    </div>
  </div>
</template>
 
<script>
import Axios from "@/api/my.js";
export default {
  name: "helpCenter",
  data() {
    return {
      helpData: [],
    };
  },
  mounted() {
    console.log("mounted");
    this.getData();
  },
  created() {
    console.log("created");
  },
  methods: {
    getData() {
      Axios.getCms({
        model: "help_center",
      })
        .then((res) => {
          this.helpData = res.data;
        })
        .catch((e) => {
          console.log("cms error", e);
        });
      //
    },
  },
};
</script>
 
<style scoped>
.helps-box {
  padding: 15px;
}
.helps-box > div {
  padding-bottom: 15px;
  font-size: 32px;
  font-weight: 600;
}
</style>