<!--pages/qianming/qianming.wxml-->

<view class="sign_div">
  <view class="sign_div_min" style="font-size:34rpx;font-family: UICTFontTextStyleBody;color:#6777aa;background: #212737;line-height: 40rpx;" bindtap="showSign" >
    <text wx:if="{{showimg}}" >点击签名</text>
    <view wx:if="{{type==0}}">
      <image style="margin-left: 60rpx;margin-top: 5rpx;filter: invert(100%)" wx:if="{{!showimg}}" src="{{imageUrl}}" class="qm_img" ></image>
    </view>
    
    <view wx:if="{{type==1}}"> 
      <image style="margin-left: 60rpx;margin-top: 5rpx;filter: invert(100%)" wx:if="{{!showimg}}" src="{{imageUrl}}" class="qm_img_no" ></image>
    </view>
  
  </view>
</view>

<van-popup show="{{ signShow }}" position="bottom" custom-style="height:100%;" bind:close="onClose" >
<view class="popup_view">
  <van-row>
    <van-col span="6">
      <view class="view_btn" style="height:{{btnHeight}}">
        <view class="max_btn">
          <view class="min_btn btn_gb" bindtap="onClose">关闭</view>
        </view>
      </view>
      <view class="view_btn" style="height:{{btnHeight}}">
        <view class="max_btn">
          <view class="min_btn btn_qc" bindtap="cleardraw">清除</view>
        </view>
      </view>
      <view class="view_btn" style="height:{{btnHeight}}">
        <view class="max_btn">
          <view class="min_btn btn_qd" bindtap="getimg">确定</view>
        </view>
      </view>
    </van-col>
     <van-col span="18">
        <view class="canvas_view">
          <canvas class="canvas" style="height:{{height}}" canvas-id="{{canvasId}}" disable-scroll="true" bindtouchstart="canvasStart" bindtouchmove="canvasMove" bindtouchend="canvasEnd" touchcancel="canvasEnd" binderror="canvasIdErrorCallback"></canvas>
        </view>
    </van-col>
  </van-row>
</view>
  
  

  <!-- <van-row>
    <van-col span="8">
      <view class="sign_btn sign_btn_qc">
        <button type="default" bindtap="onClose">关闭</button>
      </view>
    </van-col>
    <van-col span="8">
      <view class="sign_btn sign_btn_qc">
        <button type="default" bindtap="cleardraw">清除</button>
      </view>
    </van-col>
    <van-col span="8">
      <view class="sign_btn sign_btn_qr">
        <button type="default" bindtap="getimg">确定</button> 
      </view>
    </van-col>
  </van-row> -->

</van-popup>
