欢迎入坑
微信小程序关于合同签字问题。在微信小程序内使用canvas时,为判定是否开始触发签字时使用触发标记
<canvas
bindtouchstart="touchStart"
bindtouchmove="touchMove"
bindtouchend="touchEnd"
bindtouchcancel="touchCancel"
binderror="canvasError" >
</canvas>
这里就开始了你是绑定bindtouchmove事件还是bindtouchstart事件那?
正常情况点击时触发即可,但是ios和android手机的坑就来了,ios当你点击时就会捕捉生成点,可以正常填充,但是android确是毛都没有,就会导致填充签字的时候wx.arrayBufferToBase64(data)传出的图片码解析出来是一片黑,所以还是使用bindtouchmove触发比较适应两种手机系统。