Commit e1de88e5 by 陈超

T

parent 71cbfbdc
......@@ -203,20 +203,16 @@
that.loading = false
let res = data
let opt = that.options[2]
console.log(res)
that.finished = true
if(res.status) {
opt.items.push(res.data.map( r => { return {
uid: r.uid,
title: r.title,
cover: r.cover,
price: r.price
}}))
opt.page = res.nowPage
opt.finished = res.nowPage == res.totalPages
that.finished = res.nowPage == res.totalPages
console.log(that.finished)
}
opt.items.push(res.data.map( r => { return {
uid: r.uid,
title: r.title,
cover: r.cover,
price: r.price
}}))
opt.page = res.nowPage
opt.finished = res.nowPage == res.totalPages
that.finished = res.nowPage == res.totalPages
console.log(that.finished)
}
})
}
......
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