耀实惠小程序
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.
 
 
 

43 lines
617 B

<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>