<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>
  <view class="res" wx:if="{{!isLoading}}">
    <!-- 认证通过 -->
    <!-- <block wx:if="{{aiState === 1  || (true_state === true && peo_state === 1 )}}"> -->
    <!-- <image class="img" src="/assets/imgs/success/truee.png" bindtap="popup"></image> -->

    <!-- <view class="modal-mask" bindtap="" wx:if="{{showModal}}"></view> -->

    <!-- <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">{{datemill/1000 || peeople_replytime/1000}}s</view>
        </view>
      </view> -->

    <!-- 倒计时出现 -->
    <!-- <view class="modal-dialog" wx:if="{{showModal}}" >
        <p class="gunabi" bindtap="hidepopup" mode="widthFix,heightFix">关闭</p>
        <text class="seconds">{{sendTime}}s</text>
        <image class="img_on" src="https://ai.tj5.cc:35437/static/succes_on.gif"></image>
        <image class="img_down" src="https://ai.tj5.cc:35437/static/succes_down.gif"></image>
      </view> -->

    <!-- <navigator class="bexit" open-type="exit" target="miniProgram">点击按钮返回主页</navigator> -->
    <!-- </block> -->


    <!-- 码不同 -->
    <!-- <block wx:if="{{recognizeLabelCode !== labelCode&& recognizeLabelCode!=='码解析失败' || datajson !== labelCode && datajson!=='码解析失败' }}"> -->

    <!-- <block wx:if="{{sameCodeState ===0 }}"> -->
    <!-- <image class="img" src="/assets/imgs/fail/takephotoo.png" bindtap="back"></image> -->
    <!-- <image class="msg-img" src="/assets/imgs/fail/fialmsgjson.png" bindtap="back"></image> -->
    <!-- <view class="text_text" style="color: aliceblue;" ><text>点击拍照按钮重新认证</text></view> -->
    <!-- <navigator class="bexit" open-type="exit" target="miniProgram">点击按钮返回主页</navigator> -->

    <!-- <text style="color: aliceblue;"> 码不同</text>
      <text style="color: aliceblue;">\n解析号码labelcode：{{recognizeLabelCode}}</text>
      <text style="color: aliceblue;">\n解析号码datajson：{{datajson}}</text>
      <text style="color: aliceblue;">\n标签号码：{{labelCodejson}}</text> -->

    <!-- <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 === 1 && aiState === 0  || recognizeLabelCode ==='码解析失败' && datajson==='码解析失败'}}"> -->

    <!-- <block wx:if="{{ sameCodeState === 2  }}">
      <image class="img" src="/assets/imgs/fail/takephotoo.png" bindtap="back"></image>
      <image class="msg-img" src="/assets/imgs/fail/ffailmsg.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 === 1 &&  aiState === 0 ) || (fail_state === true && sameCodeState === 0 ) }}">
      <image class="img" src="/assets/imgs/fail/takephotoo.png" bindtap="back"></image>
      <image class="msg-img" src="/assets/imgs/fail/ffailmsg.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 ===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 || (sameCodeState === 1 && aiState === 0) || (fail_state === true && sameCodeState === 0)}}">
      <image class="img" src="/assets/imgs/fail/takephotoo.png" bindtap="back"></image>
      <image class="msg-img" src="/assets/imgs/fail/ffailmsg.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) }}">
      <!-- <view wx:if="{{labelInfoUrl === true}}">
        <web-view src="{{h5url}}"></web-view>
      </view> -->
      <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>
<!-- <image src="{{filePath}}" mode="widthFix" style='width: {{windowWidth}}px; height: {{windowWidth}}px;border: 1px solid red; '></image> -->



