'''
<u-popup v-model="showPop" mode="center" border-radius="14" :closeable="true">
<view class="pop">
<canvas canvas-id="handWriting" id="handWriting" class="pop-sign" disable-scroll="true" @touchstart="uploadScaleStart" @touchmove="uploadScaleMove"
@touchend="uploadScaleEnd" @tap="mouseDown" >
</canvas>
<view class="u-row sign-btn-box">
<button @click="retDraw" class="delBtn">重写</button>
<button @click="subCanvas" class="subBtn">保存</button>
</view>
</view>
</u-popup>
method:{
uploadScaleStart(event){
that.isWrite = true
that.handwriting.uploadScaleStart(event)
},
uploadScaleMove(event){
that.handwriting.uploadScaleMove(event)
},
uploadScaleEnd(event){
that.handwriting.uploadScaleEnd(event)
},
mouseDown(e){
console.log('mouseDown',e);
},
}
'''
1***@qq.com (作者)
我就是测试 H5下的签名功能,怎么开启移动模式啊?我也不能对每个用户说 你签名时开启一下移动模式啊
2023-12-13 15:56
1***@qq.com (作者)
而且 应该有 鼠标在画布canvas的移动轨迹吧
2023-12-13 15:59
YUANRJ
回复 1***@qq.com: 只有触控设备才会有touch事件,可以看下mdn文档
2023-12-13 16:13