<template>
|
|
<view class="pages">
|
|
|
|
<rich-text :nodes="paresHtml.content"></rich-text>
|
|
</view>
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
data() {
|
|
return {
|
|
paresHtml: null
|
|
};
|
|
},
|
|
onLoad(optios) {
|
|
uni.setNavigationBarTitle({
|
|
title: optios.title
|
|
});
|
|
|
|
this.getgetAgreement(optios.type);
|
|
},
|
|
methods: {
|
|
getgetAgreement(type) {
|
|
this.$api('getAgreement', { type })
|
|
.then(res => {
|
|
this.paresHtml = res.result
|
|
console.log(res);
|
|
})
|
|
.catch(err => {
|
|
console.log(err);
|
|
});
|
|
}
|
|
}
|
|
};
|
|
</script>
|
|
|
|
<style lang="scss" scoped>
|
|
.pages{
|
|
width: 92%;
|
|
margin: 0 auto;
|
|
}
|
|
</style>
|
|
|