|
@@ -61,6 +61,12 @@
|
|
|
that.searchOther();
|
|
|
that.search();
|
|
|
},
|
|
|
+ onPullDownRefresh: async function() {
|
|
|
+ const that = this;
|
|
|
+ that.clearPage()
|
|
|
+ await that.search();
|
|
|
+ uni.stopPullDownRefresh();
|
|
|
+ },
|
|
|
methods: {
|
|
|
// 查询基本设置
|
|
|
searchConfig() {
|
|
@@ -153,16 +159,16 @@
|
|
|
url: `/pagesHome/order/detail?id=${e._id}`
|
|
|
})
|
|
|
},
|
|
|
+ // 清空列表
|
|
|
+ clearPage() {
|
|
|
+ const that = this;
|
|
|
+ that.$set(that, `list`, [])
|
|
|
+ that.$set(that, `skip`, 0)
|
|
|
+ that.$set(that, `limit`, 6)
|
|
|
+ that.$set(that, `page`, 0)
|
|
|
+ }
|
|
|
},
|
|
|
- onPullDownRefresh: async function() {
|
|
|
- const that = this;
|
|
|
- that.$set(that, `list`, [])
|
|
|
- that.$set(that, `skip`, 0)
|
|
|
- that.$set(that, `limit`, 6)
|
|
|
- that.$set(that, `page`, 0)
|
|
|
- await that.search();
|
|
|
- uni.stopPullDownRefresh();
|
|
|
- }
|
|
|
+
|
|
|
}
|
|
|
</script>
|
|
|
|