- 鸿蒙next版本的微信小程序在使用map时缩放、滑动会导致点击事件失效?
当快速在map组件上使用手势或点击进行缩放时,会导致整个页面的点击事件无效,无法恢复,只能通过重新进入小程序解决。
03-07 - wx.createVKSession 无法唤起摄像头?
[图片] 直接把文档测试代码拷贝使用, 右上角提示摄像头已经打开,可以实际并没有打开 const session = wx.createVKSession({ track: { OCR: { mode: 1 } // mode: 1 - 使用摄像头;2 - 手动传入图像 }, }) console.log(session) // 摄像头实时检测模式下,监测到文字时,updateAnchors 事件会连续触发 (每帧触发一次) session.on('updateAnchors', anchors => { console.log('anchors.text',"".concat(anchors.map(anchor=>anchor.text))) }) // 当文字区域从相机中离开时,会触发 removeAnchors 事件 session.on('removeAnchors', () => { console.log('removeAnchors') }) // 需要调用一次 start 以启动 session.start(errno => { if (errno) { // 如果失败,将返回 errno console.log(errno,'如果失败,将返回 errno') } else { // 否则,返回null,表示成功 console.log('否则,返回null,表示成功') } })
2024-09-19 - 使用map组件 根据定位动态绘制polylin安卓系统路径轨迹会闪烁 苹果的不会
动态操作polyline中的points数组,逐渐擦除路线,在安卓上闪动严重,在ios上不闪
2024-08-22