richText.vue
664 字节
<template>
<u-navbar bgColor="#F6F8FA" :title="title" :placeholder="true" autoBack></u-navbar>
<view class="u-content">
<u-parse :content="content"></u-parse>
</view>
</template>
<script setup>
import { ref } from 'vue'
import { onLoad } from '@dcloudio/uni-app'
const content = ref(''),
title = ref('')
onLoad(async (e) => {
if (e.type === '4') {
// const ret = await xxx()
content.value = '《用户协议》'
title.value = '用户协议'
return
}
// const ret = await xxx()
content.value = '《隐私协议》'
title.value = '隐私协议'
})
</script>
<style lang="scss" scoped>
.u-content {
padding: 24rpx;
}
</style>