This commit is contained in:
clay
2023-01-04 16:46:46 +08:00
parent 56bf10b47f
commit 27787d3300
2 changed files with 21 additions and 10 deletions

View File

@@ -36,14 +36,9 @@
this.imgUrl = uni.getStorageSync('img_url')
},
methods: {
//获取行业新闻
// {
// pageSize: 2,
// pageNum: 1
// }
getNews() {
this.$apiServe.getNews().then(res => {
// console.log('行业新闻', res.data.data)
console.log('行业新闻', res.data.data)
for (const item of res.data.data) {
item.pub_time_str = dateFormat(item.pub_time_str)
}