let blogList = await blogCollection.skip(event.start).limit(event.count)
.orderBy('createTime', 'desc').get().then((res) => {
return res.data
})
ctx.body = blogList
})
_loadBlogList(){
wx.cloud.callFunction({
name: ‘blog’,
data:{
$url:‘list’,
start: 0,
count:10,
}
}).then((res)=>{
this.setData({
blogList: this.data.blogList.concat(res.result)
})
})
},