init
This commit is contained in:
parent
ec10ebfe61
commit
63a42b8be0
@ -54,7 +54,7 @@
|
|||||||
<p style=" color: rgba(115, 115, 124, .6); font-size: 13px;
|
<p style=" color: rgba(115, 115, 124, .6); font-size: 13px;
|
||||||
color: #95959d;
|
color: #95959d;
|
||||||
line-height: 24px;
|
line-height: 24px;
|
||||||
text-align: justify;">{{ newsitem.source }}
|
text-align: justify;">{{ newsitem.content }}
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
<div style="overflow: hidden;">
|
<div style="overflow: hidden;">
|
||||||
@ -272,7 +272,10 @@ export default {
|
|||||||
})
|
})
|
||||||
//新闻展示
|
//新闻展示
|
||||||
getnews({ 'page': 0 }).then((res) => {
|
getnews({ 'page': 0 }).then((res) => {
|
||||||
|
res.data.content[0].content= res.data.content[0].content.replace(/<[^>]+>/g, '').trim();
|
||||||
this.newsitem = res.data.content[0]
|
this.newsitem = res.data.content[0]
|
||||||
|
|
||||||
|
console.log(this.newsitem)
|
||||||
})
|
})
|
||||||
//图文展示
|
//图文展示
|
||||||
backgroundText().then((res) => {
|
backgroundText().then((res) => {
|
||||||
|
Loading…
Reference in New Issue
Block a user