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.
 
 
 
 
 
manghe/pages/users/privacy/index.vue

51 lines
868 B

<template>
<view class="content">
<jyf-parser :html="content" ref="article" :tag-style="tagStyle"></jyf-parser>
</view>
</template>
<script>
import parser from "@/components/jyf-parser/jyf-parser";
import {
getUserAgreement,
} from '@/api/user.js';
export default {
components: {
"jyf-parser": parser
},
data() {
return {
tagStyle: {
img: 'width:100%;display:block;',
table: 'width:100%',
video: 'width:100%'
},
content: ``
}
},
onLoad(options) {
getUserAgreement(options.type).then(res => {
this.content = res.data.content
uni.setNavigationBarTitle({
title: res.data.title
});
}).catch(err => {
that.$util.Tips({
title: err
});
})
}
}
</script>
<style scoped>
page {
background-color: #fff;
}
.content {
padding: 40rpx 30rpx;
line-height: 2;
}
</style>