@@ -198,9 +198,11 @@
}
})
},
+ // 重置
reset() {
context.draw()
+ // 签字版触屏开始
handleTouchStart(e) {
this.canvasData = []
const a = e.changedTouches[0]
@@ -209,6 +211,7 @@
y: a.y
+ // 签字版触屏移动
handleTouchMove(e) {
this.canvasData.push({
@@ -216,6 +219,7 @@
+ // 签字版触屏结束
handleTouchEnd(e) {
@@ -227,6 +231,7 @@
context.stroke()
context.draw(true)
+ // 提交签字
submitContract() {
if (!this.studentId) {
this.$refs.uTips.show({