杜迪迪 3 months ago
parent
commit
953ecb592d
2 changed files with 9 additions and 1 deletions
  1. 2 1
      pages.json
  2. 7 0
      pages/assay/index.vue

+ 2 - 1
pages.json

@@ -98,7 +98,8 @@
 		{
 			"path": "pages/assay/index",
 			"style": {
-				"navigationBarTitleText": "我的备案申请"
+				"navigationBarTitleText": "我的备案申请",
+				"enablePullDownRefresh": true
 			}
 		},
 		{

+ 7 - 0
pages/assay/index.vue

@@ -161,6 +161,13 @@
 				this.record = res;
 			});
 			this.getList();
+			uni.startPullDownRefresh();
+		},
+		onPullDownRefresh() {
+			console.log('refresh');
+			setTimeout(function() {
+				uni.stopPullDownRefresh();
+			}, 1000);
 		},
 		onShow() {
 			// this.getList()