<header-nav titleText="" background="transparent" isTransparent="{{ true }}" />
<view class="scan" wx:if="{{ show === 'scan' }}">
  <camera />
  <view class="take-range"></view>
  <view class="take-btn" bindtap="takePhoto" />
  <view class="photo" bindtap="selectPhoto">
    <image src="/assets/images/scan_photo.svg" mode="widthFix"></image>
    <view>相册</view>
  </view>
</view>

<view class="scan" wx:if="{{ show === 'confirm' }}">
  <image class="confirm-image" src="{{ filePath }}"></image>
  <view class="submit-btn" bindtap="recongnize">
    <image src="https://4d-tjw.oss-cn-shenzhen.aliyuncs.com/domain/4dshow/scan_yes%402x.png" mode="widthFix"></image>
    <view class="text">确认</view>
  </view>
  <view class="retake-btn" bindtap="reTake">
    <image src="https://4d-tjw.oss-cn-shenzhen.aliyuncs.com/domain/4dshow/scan_reshot%402x.png" mode="widthFix"></image>
    <view class="text">重新拍摄</view>
  </view>
</view>

