Commit 260470f7 by 陈超

T

parent 5f325060
......@@ -359,6 +359,7 @@
this.$refs.filter.toggle()
this.selected = this.conditions
this.loading = true
this.page = 0
this.onLoad()
},
......@@ -367,6 +368,7 @@
this.onCategory('', '')
this.onBuy('', '')
this.loading = true
this.page = 0
this.onLoad()
},
onLoad: function() {
......@@ -381,7 +383,11 @@
success: function(data) {
that.loading =false
let res = data
that.items = that.items.concat(res.data.map( r => {
let old = []
if(that.page != 0) {
old = that.items
}
that.items = old.concat(res.data.map( r => {
let pi = r.mz_price
return {
id: r.id,
......
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