Commit 260470f7 by 陈超

T

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