27 lines
505 B
Vue
27 lines
505 B
Vue
<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.user_agreement
|
|
}).catch(() => {})
|
|
})
|
|
</script>
|
|
|
|
<style lang="scss" scoped>
|
|
.ctr {
|
|
background-color: var(--containerBgColor);
|
|
padding: 32rpx 32rpx 100rpx 32rpx;
|
|
color: var(--titleColor);
|
|
}
|
|
</style>
|