<!--pages/sign/index.wxml-->
<!-- 电子签名页面 -->
<view class="signature-page">
  <!-- 顶部操作栏 -->
  <!-- <view class="action-bar">
    <van-button type="primary" bind:tap="handleClear">重写</van-button>
    <van-button type="danger" bind:tap="handleUndo">撤销</van-button>
    <van-button type="info" bind:tap="handleSubmit">提交</van-button>
  </view> -->

  <!-- 签名区域 -->
  <view class="signature-area-large">
    <canvas type="2d" id="canvas" class="signature-canvas-large" disable-scroll="{{true}}" bindtouchstart="handleTouchStart" bindtouchmove="handleTouchMove" bindtouchend="handleTouchEnd"></canvas>
  </view>

  <!-- 提示文本 -->
  <view class="signature-tips">请在上方区域书写您的签名</view>

  <view style="display: grid;grid-template-columns: 1fr 1fr;grid-gap: 30rpx;padding: 30rpx 0;">
    <view><van-button type="primary" block bind:tap="handleClear">重写</van-button></view>
    <view><van-button type="danger" block bind:tap="handleUndo">撤销</van-button></view>
  </view>

  <view class="fixedBtn submitBtn">
    <van-button round block type="info" bind:tap="handleSubmit">提交</van-button>
  </view>

</view>