Browse Source

左侧导航地图显示问题

wangjiawen 4 năm trước cách đây
mục cha
commit
db12dcc549

+ 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;