<template>
  <view v-html="agreement"> </view>
</template>

<script>
export default {
  data() {
    return {
      agreement: "",
    };
  },
  computed: {
    i18n() {
      return this.$t("index");
    },
  },
  methods: {
    getAgreement() {
      uni.$u.http.get(`/api/agreement?code=private`).then((res) => {
        this.agreement = res.content_cn;
      });
    },
  },
  mounted() {
    this.getAgreement();
    uni.setNavigationBarTitle({
      title: this.i18n.privacy,
    });
  },
};
</script>

<style></style>
