<!--pages/beiyinmei/beiyinmei.wxml-->
<view wx:if="{{!showPage}}" style="height: 100vh;width: 100vw;position: relative;z-index: 99;">
  <camera device-position="back" frame-size="medium" flash="off" style="width: 100%; height: 100%;" mode="normal">
    <view class="prompt">
      <image src="/assets/imgs/拍照框.png" style="width: 40%;" mode="widthFix" />
      <text>请把二维码放置拍照框内</text>
    </view>
  </camera>
</view>

<view wx:if="{{showPage == 'success'}}" class="success-content full">
  <view class="content-text">
    <image src="/assets/imgs/成功.png" mode="widthFix" style="width: 40%;" />
    <image src="/assets/imgs/通过.png" mode="widthFix" style="width: 50%;" />
  </view>
</view>

<view wx:if="{{showPage == 'error'}}" class="success-content full">
  <view class="content-text" style="padding-top: 40rpx;">
    <!-- <image src="/assets/imgs/成功.png" mode="widthFix" style="width: 40%;" /> -->
    <image src="/assets/imgs/未通过.png" mode="widthFix" style="width: 30%;" />
    <view style="color: #FFAF38;margin-top: 24rpx;">认证未通过，请扫描实物标签重新认证</view>
  </view>
</view>

<view style="visibility: hidden;position: fixed;top: 9999px;left: 0px;">
  <canvas canvas-id="myCanvas" id="myCanvas" style="width:400px;height: 400px;" />
</view>
