<template>
  <view class="ctr">
    <rich-text :nodes="data"></rich-text>
  </view>
</template>

<script setup>
import { ref } from 'vue'
import {onShow} from '@dcloudio/uni-app'
import api from "../../api/api";

const data = ref('')
onShow(() => {
  api.getConfig().then(res => {
    data.value = res.privacy_policy
  }).catch(() => {})
})
</script>

<style lang="scss" scoped>
.ctr {
  background-color: var(--containerBgColor);
  padding: 32rpx 32rpx 100rpx 32rpx;
  color: var(--titleColor);
}
</style>
