Commit d28bbebd by 陈超

T

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