<template>
  <view class="page">
    <u-parse :content="agreementContent.content_cn"></u-parse>
  </view>
</template>

<script>
export default {
  data() {
    return {
      agreementContent: "",
    };
  },
  methods: {
    getAgreementContent() {
      uni.$u.http.get(`/api/agreement?code=margin_rule`).then((res) => {
        console.log(res);
        this.agreementContent = res;
      });
    },
  },
  mounted() {
    this.getAgreementContent();
  },
};
</script>

<style>
.page {
  width: 94vw;
  background-color: #fff;
  padding: 0 24rpx;
  font-size: 28rpx;
  color: #222;
  opacity: 0.6;
}
</style>
