Parcourir la source

停车缴费和停车记录onShow刷新数据

gcz il y a 3 ans
Parent
commit
e4820ef118
2 fichiers modifiés avec 14 ajouts et 2 suppressions
  1. 7 1
      pages/center/order/order.vue
  2. 7 1
      pages/payLists/payLists.vue

+ 7 - 1
pages/center/order/order.vue

@@ -57,11 +57,17 @@ export default {
 		};
 	},
 	onLoad() {
-		this.getOrderList(this.list[0]);
+		// this.getOrderList(this.list[0]);
 		// this.getOrderList(this.list[1]);
 		// this.getOrderList(this.list[2]);
 		// this.getOrderList(this.list[3]);
 	},
+	onShow(){
+		// onShow 刷新数据
+		this.list[0].pageNum = 1;
+		this.orderList=[[], [], [], []];
+		this.getOrderList(this.list[0]);
+	},
 	computed: {
 		// 价格小数
 		priceDecimal() {

+ 7 - 1
pages/payLists/payLists.vue

@@ -104,7 +104,13 @@
 			}
 		},
 		onLoad(){
-
+		},
+		onShow() {
+			// onShow 刷新数据
+			if(this.mescroll){
+				this.mescroll.triggerDownScroll();
+			}
+			
 		},
 		methods: {
 			customBack(){