<view class="page">
  <image class="bg" src="/assets/imgs/wating/loadingbg.jpg"></image>
  <view wx:if="{{isLoading  }}" speed="{{180}}">
    <image class="loadings" src="/assets/imgs/wating/loadingg.gif" style="width:420rpx; height: 420rpx;"></image>
    <image class="loadingtrue" src="/assets/imgs/wating/truee.png" style="width: 260rpx; height: 50rpx;"></image>
  </view>
  <!-- wx:if="{{!isLoading}}" -->
  <view class="res" wx:if="{{false}}">
    <!-- 码不同 -->
    <block wx:if="{{sameCodeState ===0 }}">
      <image class="img" src="/assets/imgs/fail/takephotoo.png" bindtap="back"></image>
      <image class="msg-img" src="/assets/imgs/different/different.png" bindtap="back"></image>
      <view class="text_text" style="color: aliceblue;"><text>点击拍照按钮重新认证</text></view>
      <navigator class="bexit" open-type="exit" target="miniProgram">点击按钮返回主页</navigator>
    </block>
    <!-- 未通过 -->
    <block wx:if="{{sameCodeState === 2 || (fail_state === true && sameCodeState === 1) }}">
      <image class="img" src="/assets/imgs/fail/takephotoo.png" bindtap="back"></image>
      <block wx:if="{{aiState === 0 ||  (fail_state === true && sameCodeState === 0 ) }}">
        <image class="msg-img" src="/assets/imgs/fail/ffailmsg.png" bindtap="back"></image>
      </block>
      <block wx:if="{{aiState === 2}}">
        <image class="msg-img" src="/assets/imgs/fail/slur.png" bindtap="back"></image>
      </block>
      <!-- <block wx:if="{{aiState === 3}}">
        <image class="msg-img" src="/assets/imgs/fail/incomplete.png" bindtap="back"></image>
      </block> -->
      <view class="text_text" style="color: aliceblue;"><text>点击拍照按钮重新认证</text></view>
      <navigator class="bexit" open-type="exit" target="miniProgram">点击按钮返回主页</navigator>
    </block>
    <!-- 通过 -->
    <block wx:if="{{aiState ===1 || (true_state === true && peo_state === 1) }}">
      <image class="img" src="/assets/imgs/success/truee.png" bindtap="popup"></image>
      <image class="msg-img" src="/assets/imgs/success/successmag.png" bindtap="back"></image>
      <view class="detail">
        <view class="left">
          <view class="title">本次认证时间</view>
          <view class="value">{{dtime || people_time}}</view>
        </view>
        <view class="right">
          <view class="title">本次认证耗时</view>
          <view class="value">{{ people_replytime/1000 || datemill/1000}}s</view>
        </view>
      </view>
      <navigator class="bexit" open-type="exit" target="miniProgram">点击按钮返回主页</navigator>
    </block>
  </view>
</view>



