行业报告上方三个按钮的列表展示
This commit is contained in:
@@ -37,13 +37,16 @@
|
||||
},
|
||||
methods: {
|
||||
getNews() {
|
||||
this.$apiServe.getNews().then(res => {
|
||||
this.$apiServe.getNews({
|
||||
pageSize: 3,
|
||||
pageNum: 1
|
||||
}).then(res => {
|
||||
// console.log('行业新闻', res.data.data)
|
||||
let newsData = res.data.data
|
||||
for (const item of newsData) {
|
||||
item.pub_time_str = dateFormat(item.pub_time_str)
|
||||
}
|
||||
newsData = newsData.slice(0, 3)
|
||||
// newsData = newsData.slice(0, 3)
|
||||
this.newsList = newsData
|
||||
}).finally(_ => {})
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user