Commit d970e41b authored by 刘用法's avatar 刘用法

列表页pagenumber=1清空列表

parent f121adc8
...@@ -196,7 +196,7 @@ ...@@ -196,7 +196,7 @@
return this.orderType == 5 return this.orderType == 5
}, },
showDistance() { showDistance() {
return this.orderType == 0 && this.location.length >= 2 return this.orderType == 0 && this.location.length >= 2 && (this.location[0] || this.location[1])
}, },
types() { types() {
return { return {
......
...@@ -256,6 +256,9 @@ ...@@ -256,6 +256,9 @@
if (res.data.type != self.orderType) return if (res.data.type != self.orderType) return
self.triggered = false; self.triggered = false;
self._freshing = false; self._freshing = false;
if (self.pageNumber == 1) {
self.orderList = []
}
if (res.data.list) { if (res.data.list) {
self.orderList.push(...res.data.list) self.orderList.push(...res.data.list)
if (self.list[self.types[res.data.type]]) { if (self.list[self.types[res.data.type]]) {
......
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