<template>
  <u-parse :content="agreemaent"></u-parse>
</template>

<script>
export default {
  data() {
    return {
      agreemaent: "",
    };
  },
  methods: {
    getAgree() {
      uni.$u.http.get(`/api/agreement?code=user`).then((res) => {
        this.agreemaent = res.content_cn;
      });
    },
  },
  mounted() {
    uni.setNavigationBarTitle({
      title: "用户协议",
    });
    this.getAgree();
  },
};
</script>

<style></style>
