[商品列表刷选一级分类和二级分类要分别处理!]
This commit is contained in:
@@ -68,11 +68,16 @@
|
||||
// })
|
||||
},
|
||||
getList() {
|
||||
list({
|
||||
category_cid: this.$Route.query.id,
|
||||
let data = {
|
||||
order_by: this.tabIndex == 1 ? this.marketType : '',
|
||||
page: this.page
|
||||
}).then(res => {
|
||||
}
|
||||
if (this.$Route.query.type) {
|
||||
data.category_id = this.$Route.query.id
|
||||
} else {
|
||||
data.category_cid = this.$Route.query.id
|
||||
}
|
||||
list(data).then(res => {
|
||||
this.goods = this.goods.concat(res.data)
|
||||
this.has_more = res.page.has_more
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user