|
@@ -216,6 +216,8 @@
|
|
|
await that.watchLogin();
|
|
|
await that.search();
|
|
|
await that.searchOther();
|
|
|
+ // 下拉刷新
|
|
|
+ uni.startPullDownRefresh();
|
|
|
},
|
|
|
methods: {
|
|
|
// 查询基本设置
|
|
@@ -445,6 +447,17 @@
|
|
|
that.$set(that, `limit`, 5)
|
|
|
that.$set(that, `page`, 0)
|
|
|
}
|
|
|
+ },
|
|
|
+ onPullDownRefresh: async function() {
|
|
|
+ const that = this;
|
|
|
+ that.$set(that, `info`, {})
|
|
|
+ that.$set(that, `shoplist`, [])
|
|
|
+ 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>
|