邓洁 : 点击轮播图跳转到详情

This commit is contained in:
dengj
2023-11-17 13:11:30 +08:00
parent 0c1998d09e
commit 1259f1a4c8
3 changed files with 29 additions and 12 deletions

View File

@@ -55,7 +55,11 @@
methods: {
getBanner() {
this.$api.getBanner().then(res => {
this.swiperList = res.data.data.map(item => this.$api.imgUrl + item.img)
res.data.data.forEach(item=>{
item.img =this.$api.imgUrl + item.img
})
this.swiperList = res.data.data
// .map(item => this.$api.imgUrl + item.img)
})
},
getNotice() {