张文飞 il y a 3 ans
Parent
commit
42fa7e289e
2 fichiers modifiés avec 2 ajouts et 3 suppressions
  1. 1 1
      pages/homePage/homePage.vue
  2. 1 2
      pages/houseDetail/houseDetail.vue

+ 1 - 1
pages/homePage/homePage.vue

@@ -281,7 +281,7 @@
 			this.toPage(projectId);
 			this.toPage(projectId);
 		},
 		},
 		onShow() {
 		onShow() {
-			
+			this.getSingle();
 		},
 		},
 		onPullDownRefresh() {
 		onPullDownRefresh() {
 			this.getData();
 			this.getData();

+ 1 - 2
pages/houseDetail/houseDetail.vue

@@ -131,7 +131,7 @@
 			this.projectId = param.projectId;
 			this.projectId = param.projectId;
 		},
 		},
 		onShow() {
 		onShow() {
-			
+			this.detailDatahandle();
 		},
 		},
 		components: {
 		components: {
 			backHome
 			backHome
@@ -141,7 +141,6 @@
 			this.color2 = app.globalData.color2;
 			this.color2 = app.globalData.color2;
 			this.color3 = app.globalData.color3;
 			this.color3 = app.globalData.color3;
 			this.color6 = app.globalData.color6;
 			this.color6 = app.globalData.color6;
-			this.detailDatahandle()
 			uni.$on("request", () => {
 			uni.$on("request", () => {
 				this.detailDatahandle()
 				this.detailDatahandle()
 			})
 			})