张文飞 3 yıl önce
ebeveyn
işleme
2ddeb2de45
2 değiştirilmiş dosya ile 4 ekleme ve 1 silme
  1. 1 1
      pages.json
  2. 3 0
      pages/homePage/homePage.vue

+ 1 - 1
pages.json

@@ -4,7 +4,7 @@
 			"path": "pages/homePage/homePage",
 			"style": {
 				"navigationBarTitleText": "业主工会",
-				"enablePullDownRefresh": false,
+				"enablePullDownRefresh": true,
 				"onReachBottomDistance": 50,
 				"scrollIndicator": "none",
 				"app-plus": {

+ 3 - 0
pages/homePage/homePage.vue

@@ -263,6 +263,9 @@
 				this.goDetailAction(e,2)
 			}
 		},
+		onPullDownRefresh() {
+			this.getData();
+		},
 		onReachBottom() {
 			if(this.houseList.length<this.total){
 				this.pageNo ++;