Bladeren bron

左侧导航地图显示问题

wangjiawen 4 jaren geleden
bovenliggende
commit
db12dcc549
2 gewijzigde bestanden met toevoegingen van 18 en 2 verwijderingen
  1. 8 1
      components/drawer/forecastThreeLineDrawer.vue
  2. 10 1
      components/drawer/threeLineDrawer.vue

+ 8 - 1
components/drawer/forecastThreeLineDrawer.vue

@@ -77,7 +77,14 @@
 			closeDrawer: function() {
 				
 				this.drawerIsShow = false;
-				this.$parent.leftbar();
+				//#ifdef H5
+				   this.$emit("leftbar");
+				//#endif
+				
+				//#ifdef APP-PLUS
+				   this.$parent.leftbar();
+				//#endif
+				
 			},
 			clickChangeColor: function(index) {
 				this.changeGary = index;

+ 10 - 1
components/drawer/threeLineDrawer.vue

@@ -66,7 +66,16 @@
 			},
 			closeDrawer: function() {
 				this.drawerIsShow = false;
-				this.$parent.leftbar();
+				this.drawerIsShow = false;
+				debugger;
+				//#ifdef H5
+				   this.$root.leftbar();
+				//#endif
+				
+				//#ifdef APP-PLUS
+				   this.$parent.leftbar();
+				//#endif
+		
 			},
 			clickChangeColor: function(index) {
 				this.changeGary = index;