123456789101112131415161718192021222324252627282930313233343536373839404142 |
- <template>
- <view style="padding: 20upx 32upx;">
- <rich-text :nodes="nodes"></rich-text>
- </view>
- </template>
- <script>
- export default {
- data() {
- return {
- article_id: '',
- nodes:''
- }
- },
- onLoad(a) {
- this.article_id = a.id;
- let name = a.name;
- uni.setNavigationBarTitle({
- title: name
- });
- this.getactrile();
- },
-
- methods: {
- getactrile() {
- this.request({
- url: '/v1/entry/news_desc',
- method: 'post',
- data: {
- article_id: this.article_id
- },
- success: (res) => {
- this.nodes = res.data.data.article_content;
- }
- })
- }
- },
- }
- </script>
- <style>
- </style>
|