|
@@ -50,8 +50,12 @@
|
|
const that = this;
|
|
const that = this;
|
|
that.searchConfig();
|
|
that.searchConfig();
|
|
that.search();
|
|
that.search();
|
|
- // 下拉刷新
|
|
|
|
-
|
|
|
|
|
|
+ },
|
|
|
|
+ onPullDownRefresh: async function() {
|
|
|
|
+ const that = this;
|
|
|
|
+ that.clearPage();
|
|
|
|
+ await that.search();
|
|
|
|
+ uni.stopPullDownRefresh();
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
// 查询基本设置
|
|
// 查询基本设置
|
|
@@ -116,6 +120,12 @@
|
|
that.clearPage();
|
|
that.clearPage();
|
|
that.search();
|
|
that.search();
|
|
},
|
|
},
|
|
|
|
+ toInfo(e) {
|
|
|
|
+ const that = this;
|
|
|
|
+ uni.navigateTo({
|
|
|
|
+ url: `/pagesRest/activity/info?id=${e._id}`
|
|
|
|
+ })
|
|
|
|
+ },
|
|
// 清空列表
|
|
// 清空列表
|
|
clearPage() {
|
|
clearPage() {
|
|
const that = this;
|
|
const that = this;
|
|
@@ -123,23 +133,9 @@
|
|
that.$set(that, `skip`, 0)
|
|
that.$set(that, `skip`, 0)
|
|
that.$set(that, `limit`, 6)
|
|
that.$set(that, `limit`, 6)
|
|
that.$set(that, `page`, 0)
|
|
that.$set(that, `page`, 0)
|
|
- },
|
|
|
|
- toInfo(e) {
|
|
|
|
- const that = this;
|
|
|
|
- uni.navigateTo({
|
|
|
|
- url: `/pagesRest/activity/info?id=${e._id}`
|
|
|
|
- })
|
|
|
|
}
|
|
}
|
|
- },
|
|
|
|
- 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>
|
|
</script>
|
|
|
|
|