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

41 lines
646 B

<template>
<view class="pages">
<view>
<rich-text :nodes="content"></rich-text>
</view>
</view>
</template>
<script>
export default {
data() {
return {
content: {}
}
},
onLoad(options) {
this.getNoticeDetail(options.id);
},
methods: {
getNoticeDetail(id){
this.$api('noticeOne',{id}).then(res => {
let {code, result, message} = res;
if(code == 200) {
this.content = result.content;
}else {
this.$Toast(message);
}
}).catch(err => {
this.$Toast(err.message);
})
}
}
}
</script>
<style lang="scss" scoped>
.pages{
width: 92%;
margin: 0 auto;
}
</style>