1
李凌
2025-09-19 e1e51991ad91c14fa00c5cf46f95e514f676ac4d
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
<template>
  <div id="cryptos">
    <div class="CommonProblem">
      <assets-head :title="pageTitle" />
      <div class="CommonProblem-padding">
        <p class="textColor" v-html="content"></p>
      </div>
    </div>
  </div>
</template>
<script>
import assetsHead from "@/components/Transform/assets-head/index.vue";
import { _getAboutUs } from "@/service/user.api"
import { dataTimeEx } from '@/utils/utis'
import { showToast } from "vant";
export default {
  data() {
    return {
      content: '',
      title: '',
      createTime: '',
      serviceTerm: '',
      dataTimeEx
    }
  },
  components: {
    assetsHead
  },
  computed: {
    pageTitle() {
      switch (this.serviceTerm) {
        case '20':
          return this.$t('关于我们')
        case '21':
          return this.$t('安全规定')
        case '22':
          return this.$t('法律声明')
        case '23':
          return this.$t('用户协议')
        case '24':
          return this.$t('隐私政策')
        case '25':
          return this.$t('反洗钱协议')
        case '26':
          return this.$t('金融服务牌照')
        case '27':
          return this.$t('帮助中心')
        default:
          return this.$t('关于我们')
      }
    }
  },
  mounted() {
    this.serviceTerm = this.$route.query.serviceTerm
    console.log(this.serviceTerm, 'this.serviceTerm')
    this.getCms();
  },
  methods: {
    onClickLeft() {
      this.$router.push('/')
    },
    getCms() {
      let language
      if (this.$i18n.locale == 'zh-CN' || this.$i18n.locale == 'CN') {
        language = this.$i18n.locale
      } else {
        language = 'en'
      }
      _getAboutUs({
        content_code: this.serviceTerm,
        language: this.serviceTerm ? language : this.$i18n.locale,
        // language: 'en', // 强制英文,后台暂时只设置了英文
        // not_language: 1,
      }).then((res) => {
        this.content = res.content
        this.title = res.title
        this.createTime = this.dataTimeEx(res.createTime)
 
      }).catch((error) => {
        if (error.code == 'ECONNABORTED') { showToast(this.$t('网络超时!')); }
        else if (error.msg !== undefined) { showToast(this.$t(error.msg)); }
      });
    }
  }
}
</script>
<style lang="scss">
@import "@/assets/init.scss";
 
#cryptos {
  .CommonProblem {
    width: 100%;
    box-sizing: border-box;
  }
 
  pre {
    white-space: pre-wrap;
  }
 
  .CommonProblem-padding {
    padding-left: 35px;
    padding-right: 35px;
    font-weight: 400;
    font-size: 30px;
    line-height: 35px;
    color: $text_color;
  }
 
  .CommonProblem-title {
    font-style: normal;
    font-weight: 700;
    font-size: 50px;
    line-height: 59px;
    padding-left: 35px;
    padding-right: 35px;
    margin-top: 57px;
    margin-bottom: 22px;
    color: $text_color;
  }
}
</style>