Commit d1fdbe36 authored by liwei's avatar liwei

修改了分页查询接口返参

parent f266c402
......@@ -158,7 +158,7 @@ export default {
}
bannerList(query).then(res =>{
//将res.data.rows集合里的bannerPicture取出来,放到集合中
this.bannerList = res.data.rows.map(item => item.bannerPicture)
this.bannerList = res.data.data.map(item => item.bannerPicture)
}).catch(e => {
console.log(e)
})
......@@ -170,7 +170,7 @@ export default {
rows:this.queryParam.rows
}
activityList(query).then(res =>{
this.activityList = res.data.rows
this.activityList = res.data.data
}).catch(e => {
console.log(e)
})
......
......@@ -270,7 +270,7 @@
}
bannerList(query).then(res =>{
//将res.data.rows集合里的bannerPicture取出来,放到集合中
this.bannerList = res.data.rows.map(item => item.bannerPicture)
this.bannerList = res.data.data.map(item => item.bannerPicture)
}).catch(e => {
console.log(e)
})
......@@ -282,8 +282,7 @@
rows:this.queryParam.rows
}
noticeList(query).then(res =>{
this.notice = res.data.rows[0]
console.log('this.notice:',this.notice)
this.notice = res.data.data[0]
}).catch(e => {
console.log(e)
})
......
......@@ -24,20 +24,7 @@
page: 1,
rows: 10
},
noticeList: [
{
businessId:'1',
title:'通知公告1通知公告1通知公告1通知公告1通知公告1通知公告1通知公告1',
publishDate:'2021-07-07',
viewNum: 10
},
{
businessId:'2',
title:'通知公告通知公告1通知公告1通知公告1通知公告1通知公告1通知公告12',
publishDate:'2021-07-07',
viewNum: 10
}
],
noticeList: [],
}
},
onLoad(){
......@@ -68,7 +55,7 @@
rows:this.queryParam.rows
}
noticeList(query).then(res =>{
this.noticeList = res.data.rows
this.noticeList = res.data.data
}).catch(e => {
console.log(e)
})
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment