Zt 2 vuotta sitten
vanhempi
commit
718dc13000
2 muutettua tiedostoa jossa 18 lisäystä ja 24 poistoa
  1. 9 12
      reado-app/pages/message/index.vue
  2. 9 12
      reado-app/pages/reportForm/index.vue

+ 9 - 12
reado-app/pages/message/index.vue

@@ -40,9 +40,11 @@
 			};
 		},
 		onShow() {
+			this.queryParams.limit=10
 			this.getMsgList()
 		},
 		onPullDownRefresh() {
+			this.queryParams.limit += 10
 			this.getMsgList()
 		},
 		methods: {
@@ -84,18 +86,13 @@
 	}
 
 	.empty {
-		height: 80vh;
-		position: relative;
-
-		.empty-icon {
-			width: 400rpx;
-			height: 400rpx;
-			position: absolute;
-			top: 30%;
-			left: 50%;
-			margin-top: -200rpx;
-			margin-left: -200rpx
-		}
+		width: 400rpx;
+		height: 400rpx;
+		position: absolute;
+		top: 30%;
+		left: 50%;
+		margin-top: -200rpx;
+		margin-left: -200rpx
 	}
 
 	.cell {

+ 9 - 12
reado-app/pages/reportForm/index.vue

@@ -33,9 +33,11 @@
 			};
 		},
 		onShow() {
+			this.queryParams.limit=10
 			this.getAllReport()
 		},
 		onPullDownRefresh() {
+			this.queryParams.limit += 10
 			this.getAllReport()
 		},
 		methods: {
@@ -74,17 +76,12 @@
 	}
 
 	.empty {
-		height: 80vh;
-		position: relative;
-
-		.empty-icon {
-			width: 400rpx;
-			height: 400rpx;
-			position: absolute;
-			top: 30%;
-			left: 50%;
-			margin-top: -200rpx;
-			margin-left: -200rpx
-		}
+		width: 400rpx;
+		height: 400rpx;
+		position: absolute;
+		top: 50%;
+		left: 50%;
+		margin-top: -200rpx;
+		margin-left: -200rpx;
 	}
 </style>