二手车交易,首页列表和我的发布加加载分页功能
This commit is contained in:
@ -170,19 +170,13 @@ export default {
|
||||
pageSize:this.pageSize,
|
||||
queryType:this.activeIndex+1,
|
||||
})
|
||||
// this.pageList=res.data
|
||||
// console.log("===",this.pageList)
|
||||
this.total=res.total
|
||||
if(this.pageNum == 1){// 第一页直接赋值
|
||||
this.pageList=res.data
|
||||
}else{// 第二页数据拼接
|
||||
console.log("第二页数据拼接")
|
||||
let preList = this.pageList;
|
||||
// console.log("preList",preList)
|
||||
let arr = res.data;
|
||||
// console.log("arr",arr)
|
||||
this.pageList = preList.concat(arr)
|
||||
console.log("this.pageList====",this.pageList)
|
||||
}
|
||||
},
|
||||
goPageDetail(item){
|
||||
|
Reference in New Issue
Block a user