You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
62 lines
1.1 KiB
62 lines
1.1 KiB
<template>
|
|
<view class="content">
|
|
<!-- <web-view :webview-styles="webviewStyles" :src="articleurl"></web-view> -->
|
|
<rich-text class="txt" :nodes="htmlData"></rich-text>
|
|
</view>
|
|
</template>
|
|
|
|
<script>
|
|
import {
|
|
configGet
|
|
} from "@/nxTemp/apis/userAPI.js"
|
|
export default {
|
|
data() {
|
|
return {
|
|
articleurl: '',
|
|
htmlData: "",
|
|
webviewStyles: {
|
|
progress: {
|
|
color: '#FF7200'
|
|
}
|
|
}
|
|
};
|
|
},
|
|
onLoad(options) {
|
|
this.updateAgreement()
|
|
},
|
|
methods: {
|
|
updateAgreement() {
|
|
// UserRegistrationServiceAgreement 用户注册服务协议
|
|
// PrivacyPolicy 隐私政策
|
|
configGet({
|
|
key: "UserRegistrationServiceAgreement"
|
|
}).then(res => {
|
|
this.htmlData = res
|
|
}).catch((e) => {
|
|
this.$tools.showNone(e.errMsg)
|
|
})
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style lang="less">
|
|
page{
|
|
background-color: white;
|
|
background: #FFFFFF;
|
|
padding: 20rpx;
|
|
}
|
|
.content{
|
|
width: 720rpx;
|
|
}
|
|
.txt {
|
|
font-size: 32rpx;
|
|
color: #1A1A1A;
|
|
font-weight: 400;
|
|
// text-indent: 64rpx;
|
|
line-height: 60rpx;
|
|
// p {
|
|
// text-indent: 1rem;
|
|
// }
|
|
}
|
|
</style>
|