添加marker,设置marker的id,设置markertap事件,结果返回和h5不同。
- 发布:2022-01-27 19:57
- 更新:2022-02-08 08:29
- 阅读:320
产品分类: uniapp/App
PC开发环境操作系统: Windows
PC开发环境操作系统版本号: 10
HBuilderX类型: 正式
HBuilderX版本号: 3.3.10
手机系统: Android
手机系统版本号: Android 11
手机厂商: 小米
手机机型: Red mi 9 pro
页面类型: nvue
vue版本: vue2
打包方式: 离线
项目创建方式: HBuilderX
操作步骤:
预期结果:
{"type":"markertap","timeStamp":0,"detail":{"markerId":"1346288108538191873"},"target":{"id":"map","offsetLeft":0,"offsetTop":0,"dataset":{},"markerId":"1346288108538191873"},"currentTarget":{"id":"map","offsetLeft":0,"offsetTop":0,"dataset":{}},"mp":{"@warning":"mp is deprecated","type":"markertap","timeStamp":0,"detail":{"markerId":"1346288108538191873"},"target":{"id":"map","offsetLeft":0,"offsetTop":0,"dataset":{},"markerId":"1346288108538191873"},"currentTarget":{"id":"map","offsetLeft":0,"offsetTop":0,"dataset":{}}},"_processed":true}
{"type":"markertap","timeStamp":0,"detail":{"markerId":"1346288108538191873"},"target":{"id":"map","offsetLeft":0,"offsetTop":0,"dataset":{},"markerId":"1346288108538191873"},"currentTarget":{"id":"map","offsetLeft":0,"offsetTop":0,"dataset":{}},"mp":{"@warning":"mp is deprecated","type":"markertap","timeStamp":0,"detail":{"markerId":"1346288108538191873"},"target":{"id":"map","offsetLeft":0,"offsetTop":0,"dataset":{},"markerId":"1346288108538191873"},"currentTarget":{"id":"map","offsetLeft":0,"offsetTop":0,"dataset":{}}},"_processed":true}
实际结果:
{"type":"markertap","timeStamp":1643283978164,"target":{"id":"map","dataset":{},"offsetLeft":0,"offsetTop":0},"currentTarget":{"id":"map","dataset":{},"offsetLeft":0,"offsetTop":0},"detail":{"markerId":2147483647}}
{"type":"markertap","timeStamp":1643283978164,"target":{"id":"map","dataset":{},"offsetLeft":0,"offsetTop":0},"currentTarget":{"id":"map","dataset":{},"offsetLeft":0,"offsetTop":0},"detail":{"markerId":2147483647}}
bug描述:
H5单击marker返回:
{"type":"markertap","timeStamp":0,"detail":{"markerId":"1346288108538191873"},"target":{"id":"map","offsetLeft":0,"offsetTop":0,"dataset":{},"markerId":"1346288108538191873"},"currentTarget":{"id":"map","offsetLeft":0,"offsetTop":0,"dataset":{}},"mp":{"@warning":"mp is deprecated","type":"markertap","timeStamp":0,"detail":{"markerId":"1346288108538191873"},"target":{"id":"map","offsetLeft":0,"offsetTop":0,"dataset":{},"markerId":"1346288108538191873"},"currentTarget":{"id":"map","offsetLeft":0,"offsetTop":0,"dataset":{}}},"_processed":true}
APP单击marker返回:
{"type":"markertap","timeStamp":1643283978164,"target":{"id":"map","dataset":{},"offsetLeft":0,"offsetTop":0},"currentTarget":{"id":"map","dataset":{},"offsetLeft":0,"offsetTop":0},"detail":{"markerId":2147483647}}
同样的代码改成vue后缀就一切正常,但是我需要使用nvue进行排版,请修复。
1 个回复
m***@163.com (作者)
请求官方技术人员帮忙看看,确认一下问题。