getTop5(){
let that = this
that.dataList = res.data.result
that.list = that.getpage(that.page,that.dataList)
}
//获取分页数据
getpage(page,list){
let startindex = (parseInt(page) - 1) * 10
let endindex = parseInt(page) * 10
this.list = list.slice(startindex,endindex)
return this.list
},
// 加载更多
getmore(){
this.page++
this.getTop5()
},