小程序map组件bug
- 当前 Bug 的表现(可附上截图) 手机上点击地图上的markers跳转之后,下级页面的map组件显示不正常 - 预期表现 点击地图上的不同markers跳转到不同的详情页 - 复现路径 - 提供一个最简复现 Demo 上级页面 [代码]wxml[代码][代码] [代码][代码]<[代码][代码]view[代码] [代码]class[代码][代码]=[代码][代码]"map-container"[代码][代码]>[代码][代码] [代码][代码]<[代码][代码]map[代码] [代码]id[代码][代码]=[代码][代码]"map"[代码] [代码]class[代码][代码]=[代码][代码]"map"[代码] [代码]show-location[代码][代码]=[代码][代码]"true"[代码] [代码]longitude[代码][代码]=[代码][代码]"{{userLng}}"[代码] [代码]latitude[代码][代码]=[代码][代码]"{{userLat}}"[代码] [代码]markers[代码][代码]=[代码][代码]"{{Markers}}"[代码] [代码]bindmarkertap[代码][代码]=[代码][代码]"toDetail"[代码] [代码]/>[代码][代码] [代码][代码]</[代码][代码]view[代码][代码]>[代码][代码]js:[代码][代码]data: {[代码][代码] [代码][代码]// 用户当前位置[代码][代码] [代码][代码]userLat: '22.5132',[代码][代码] [代码][代码]userLng: '113.9377',[代码][代码] [代码][代码]// 活动[代码][代码] [代码] [代码] [代码][代码]Markers: [[代码][代码] [代码][代码]{[代码][代码] [代码][代码]iconPath : '../../img/bql.png',[代码][代码] [代码][代码]id : '001',[代码][代码] [代码][代码]latitude : '22.5132',[代码][代码] [代码][代码]longitude : '113.9377',[代码][代码] [代码][代码]width : 50,[代码][代码] [代码][代码]height : 50,[代码][代码] [代码][代码]callout : {[代码][代码] [代码][代码]content: '测试',[代码][代码] [代码][代码]display: 'BYCLICK'[代码][代码] [代码][代码]}[代码][代码] [代码][代码]}[代码][代码] [代码][代码]],[代码][代码]}[代码][代码]toDetail: function(e) {[代码][代码] [代码][代码]wx.navigateTo({[代码][代码] [代码][代码]url: '../logs/logs',[代码][代码] [代码][代码]})[代码][代码] [代码][代码]}[代码]下级页面 [代码]wxml:[代码][代码]<[代码][代码]view[代码] [代码]class[代码][代码]=[代码][代码]'mapview'[代码][代码]>[代码][代码] [代码][代码]<[代码][代码]map[代码] [代码]class[代码][代码]=[代码][代码]'map'[代码] [代码]show-location[代码][代码]=[代码][代码]"true"[代码] [代码]longitude[代码][代码]=[代码][代码]'{{longitude}}'[代码] [代码]latitude[代码][代码]=[代码][代码]'{{latitude}}'[代码] [代码]markers[代码][代码]=[代码][代码]'{{markers}}'[代码][代码]></[代码][代码]map[代码][代码]>[代码][代码]</[代码][代码]view[代码][代码]>[代码][代码]js:[代码][代码]data: {[代码][代码] [代码][代码]latitude: '22.5132',[代码][代码] [代码][代码]longitude: '113.9377',[代码][代码] [代码][代码]markers:[[代码][代码] [代码][代码]{[代码][代码] [代码][代码]iconPath: '../../img/bql.png',[代码][代码] [代码][代码]id: '001',[代码][代码] [代码][代码]latitude: '22.5132',[代码][代码] [代码][代码]longitude: '113.9377',[代码][代码] [代码][代码]width: 50,[代码][代码] [代码][代码]height: 50,[代码][代码] [代码][代码]callout: {[代码][代码] [代码][代码]content: '测试详情',[代码][代码] [代码][代码]display: 'BYCLICK'[代码][代码] [代码][代码]}[代码][代码] [代码][代码]}[代码][代码] [代码][代码]][代码][代码] [代码][代码]},[代码]