<!--packageE/video_question/apply/apply.wxml-->
<import src="../../../wxParse/wxParse.wxml" />
<view id="apply">
  <view class="topbox"></view>
  <view class="contenbox">
    <view class="conrt">
      <block wx:if="{{application_audit_status == 2}}">
        <view class="headline">填写申请信息</view>
        <view class="inp" style="margin-bottom: 40rpx">
          <input type="text" name="" id="" placeholder="姓名" bindinput="user" />
        </view>
        <view class="inp" style="margin-bottom:76.16rpx">
          <input type="password" name="" id="" placeholder="手机" bindinput="mobile" />
        </view>
        <view class="agreement">
          <icon class="iconfont icon-all_select_active" style="color:{{status?'red':''}}" catchtap="tapAgeSta"></icon>
          我已详细阅读并同意《 <view class='span' catchtap="tap_agreement">{{info.agreement_name}}</view>》
        </view>
        <view class="agreement" style="margin-top: 32rpx">
          若您的手机号未注册，将为你自动注册，注册或登录即代表您同 意我们的 <view class='span' catchtap="tap_agreement">《{{info.agreement_name}}》</view>
        </view>
        <view catchtap="submit" class="submit" style="margin-top: 46.08rpx">提交</view>
      </block>
      <block wx:if="{{application_audit_status == 0}}">
        <view>提交成功，等待平台审核！</view>
        <view catchtap="goHome" class="submit" style="margin-top: 46.08rpx">知道了</view>
      </block>
      <block wx:if="{{application_audit_status == 1}}">
        <view>您的推广员申请审核通过！</view>
        <view catchtap="goHome" class="submit" style="margin-top: 46.08rpx">知道了</view>
      </block>
    </view>
  </view>
  <block wx:if="{{application_audit_status == 1 || application_audit_status == 0}}">
    <view class="agreementBox">
      <view class="agreement">
        <icon class="iconfont icon-all_select_active" style="color:{{status?'red':''}}" catchtap="tapAgeSta"></icon>
        我已详细阅读并同意 <view class='textage' catchtap="tap_agreement">《{{info.agreement_name}}》</view>
      </view>
      <view class="agreement">
        <icon class="iconfont icon-all_select_active" catchtap="tapAgr" style="color:{{status?'red':''}}"></icon>
        <view class="textage" catchtap="toRecord"> {{info.my_answer_name}}记录></view>
      </view>
    </view>

  </block>
  <van-popup show="{{is_agreement}}">
    <view class="pop_agreement">
      <view style="margin-bottom: 38.08rpx;text-align: center;">{{info.agreement_name}}</view>
      <view class="pop_conten">
        <!-- <rich-text nodes="{{agreement}}"></rich-text> -->
        <template is="wxParse" data="{{wxParseData:article.nodes}}" />
      </view>
    </view>
    <view class="close_icon" catchtap="close_agreement">
      <icon class="iconfont icon-adsystem_icon_cancle"></icon>
    </view>
  </van-popup>
  <van-popup show="{{submit_status}}">
    <view class="success">
      <view style="font-size: 36.16rpx; margin-bottom: 9.92rpx">提交成功</view>
      <view style="margin-bottom: 64rpx; font-size: 24rpx"></view>
      <view class="confirm" catchtap="tapSubmit_status">知道了</view>
    </view>
  </van-popup>
</view>