修改小程序bug

This commit is contained in:
邓洁
2023-02-25 16:32:35 +08:00
parent 8bdb156ec2
commit b439c3dd7a
7 changed files with 36 additions and 31 deletions

View File

@@ -32,7 +32,7 @@
}
},
created() {
this.imgUrl = uni.getStorageSync('img_url')
this.imgUrl = uni.getStorageSync('img_url')
this.getNews()
},
methods: {
@@ -41,8 +41,8 @@
pageSize: 3,
pageNum: 1
}).then(res => {
// console.log('行业新闻', res.data.data)
let newsData = res.data.data
console.log('新闻', newsData);
for (const item of newsData) {
item.pub_time_str = dateFormat(item.pub_time_str)
}