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.
33 lines
666 B
33 lines
666 B
<template>
|
|
<view class="padding-lr">
|
|
<rich-text :nodes="detail.content" v-if="detail.content"></rich-text>
|
|
<my-nocontent v-else></my-nocontent>
|
|
<!-- 回到顶部 -->
|
|
<u-back-top :scroll-top="pageScrollTop" :custom-style="{background: 'rgba(51, 51 51, 0.3)'}"></u-back-top>
|
|
</view>
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
data() {
|
|
return {
|
|
article_id: 0,
|
|
detail: {}
|
|
}
|
|
},
|
|
onLoad(options){
|
|
this.article_id = options.id;
|
|
this.getData();
|
|
},
|
|
methods: {
|
|
getData(){
|
|
this.$http(this.API.API_ARTICLE_DETAIL, {article_id: this.article_id}).then(res => {
|
|
this.detail = res.data;
|
|
})
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style>
|
|
</style>
|