index.wxml 467 B

12345678910111213
  1. <!-- 签名画布 -->
  2. <canvas class="canvas" id="canvas" canvas-id="canvas" disable-scroll="true"
  3. bindtouchstart="canvasStart" bindtouchmove="canvasMove" bindtouchend="canvasEnd"
  4. touchcancel="canvasEnd" binderror="canvasIdErrorCallback">
  5. </canvas>
  6. <view class='buttonBox'>
  7. <button bindtap='clickMe' class='addbutton' bindtap="getimg">确定</button>
  8. <button type="default" class='delbutton' bindtap="cleardraw">重签</button>
  9. </view>