行业报告上方三个按钮的列表展示

This commit is contained in:
邓洁
2023-02-03 19:31:50 +08:00
parent ec3c5b8351
commit 4db15d21cf
6 changed files with 126 additions and 19 deletions

View File

@@ -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(_ => {})
},