当前位置:   article > 正文

vue 电子签名_movey

movey

  1. <template>
  2. <div>
  3. <button id="btn" @click="nameFun">点击签字</button>
  4. <div class="mask" v-show="mask"></div>
  5.         <div :class="canvasShow==true? 'canvasBox1 show1':'canvasBox1'">
  6.             <div class="canvasBox" ref="canvasHW">
  7.                 <canvas ref="canvasF" @touchstart='touchStart' @touchmove='touchMove' @touchend='touchEnd' @mousedown="mouseDown" @mousemove="mouseMove" @mouseup="mouseUp"></canvas>
  8.             </div>
  9.             <div class="btnBox">
  10.                 <p @click="overwrite">重写</p>
  11.                 <p @click="close">关闭</p>
  12.                 <p @click="commit">提交</p>
  13.             </div>
  14.         </div>
  15. </div>
  16. </template>
  17. <script>
  18. import { Dialog } from 'vant';
  19. import { Toast } from 'vant';
  20. export default {
  21. data() {
  22. return {
  23. canvasShow: false,
  24. client: {},
  25. points: [],
  26. canvasTxt: null,
  27. startX: 0,
  28. startY: 0,
  29. moveY: 0,
  30. moveX: 0,
  31. endY: 0,
  32. endX: 0,
  33. w: null,
  34. h: null,
声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/IT小白/article/detail/893579
推荐阅读
相关标签
  

闽ICP备14008679号