- 鸿蒙系统 canvasToTempFilePath失败,提示create bitmap failed
鸿蒙系统 企业微信小程序 wx.canvasToTempFilePath失败,提示create bitmap failed context.draw(false, () => { setTimeout(() => { Taro.canvasToTempFilePath({ canvas: '', x: 0, y: 0, fileType: 'jpg', quality: 1, width: posterWidth * scale * 2, height: posterHeight * scale * 2, destWidth: posterWidth * scale * 2, destHeight: posterHeight * scale * 2, canvasId: 'product-poster-' + info.Id, success: res => { console.log('path - ', res.tempFilePath) ... Taro.hideLoading() }, fail: (res) => { console.log(res) Taro.hideLoading() Taro.showToast({ title: '图片生成失败,请稍候再试!', icon: 'none' }) } }, this) }, 1000) })
2021-09-14 - 鸿蒙系统中的微信小程序组件canvas bindtouchstart等触摸事件无效的问题?
<view class="handWriting" @tap="log(1)"> <canvas class="handWriting-canvas" disable-scroll="true" bindtouchstart="uploadScaleStart" bindtouchmove="uploadScaleMove" bindtouchend="uploadScaleEnd" canvas-id="handWriting" @tap="log(2)"> </canvas> </view> 鸿蒙系统里 画布点击事件log皆有打印,划屏事件则全无打印,父级和子集高宽都有设置,苹果和安卓正常,鸿蒙则划屏无法促发方法
2021-08-23