<view class="areaAgent">
  <view class="banner">
    <image style="width:100%;height:318rpx;" src="https://mini-app-img-1251768088.cos.ap-guangzhou.myqcloud.com/enterprose_center_apply.jpg"
      mode="aspectFill" />
  </view>
  <!-- 已通过 -->
  <view class="success" wx:if="{{status=='1'}}">
    <view class="ico">
      <icon class="iconfont icon-record_go"></icon>
    </view>
    <view class="text">恭喜您已通过审核</view>
    <view class="a" catchtap="goEnterproseCentre">
      <view class="sub">去{{ merchant_center||"招商中心"}}</view>
    </view>
  </view>
  <!-- 可申请 -->
  <view class="content" wx:if="{{status=='-1'}}">
    <view wx:if="{{config_status=='1'}}">
      <view class="title p">申请{{ merchant_center||"招商中心"}}</view>
      <!-- <view class="text">开启会员关系链，如果成为{{ merchant_center||"招商中心"}}，那么只要您的粉丝成为供应商，即可获得供应商的分红哦，快来申请吧~</view> -->
      <view class="text">如果成为{{ merchant_center||"招商中心"}}，那么只要您的粉丝成为供应商，即可获得供应商的分红哦，快来申请吧~</view>
      <block wx:if="{{independent_backend == 1}}">
        <van-field value="{{ username }}" placeholder="请输入登录账号" label="登录账号" border="{{ false }}"
          bind:change="onChange">
        </van-field>
        <van-field bind:change="onChange_p" value="{{ password }}" type="password" label="登录密码" placeholder="请输入登录密码"
          border="{{ false }}">
        </van-field>
        <van-field bind:change="onChange_p2" value="{{ password_again }}" type="password" label="确认登录密码"
          placeholder="请输入登录密码" border="{{ false }}">
        </van-field>
      </block>
      <button type="button" catchtap="submit" class="submit">申 请</button>
    </view>
    <view wx:if="{{config_status=='2'}}">
      <view class="title p">申请{{ merchant_center||"招商中心"}}</view>
      <view class="text">
        团队会员人数
        <text class="span">{{config2.total}}</text> 人 您还差
        <text class="span">{{config2.diff}}</text> 人，如果成为{{ merchant_center||"招商中心"}}，那么只要您的粉丝成为供应商，即可获得供应商的分红哦，快来申请吧~
      </view>
      <block wx:if="{{independent_backend == 1}}">
        <van-field value="{{ username }}" placeholder="请输入登录账号" label="登录账号" border="{{ false }}"
          bind:change="onChange">
        </van-field>
        <van-field bind:change="onChange_p" value="{{ password }}" type="password" label="登录密码" placeholder="请输入登录密码"
          border="{{ false }}">
        </van-field>
        <van-field bind:change="onChange_p2" value="{{ password_again }}" type="password" label="确认登录密码"
          placeholder="请输入登录密码" border="{{ false }}">
        </van-field>
      </block>
      <button type="button" catchtap="submit" class="submit">申 请</button>
    </view>
    <view wx:if="{{config_status=='3'}}">
      <view class="title p">申请{{ merchant_center||"招商中心"}}</view>
      <view class="text">
        请购买指定商品
        <text class="span">{{config3.goods_title}}</text>
      </view>
      <button type="button" data-id="{{config3.goods_id}}" catchtap="goToGoods" class="submit">购 买</button>
    </view>
    <view wx:if="{{config_status=='4'}}">
      <view class="title p">申请{{ merchant_center||"招商中心"}}</view>
      <view class="text">
        自购订单金额
        <text class="span">{{config2.total}}</text> 元 您还差
        <text class="span">{{config2.diff}}</text> 元，如果成为{{ merchant_center||"招商中心"}}，那么只要您的粉丝成为供应商，即可获得供应商的分红哦，快来申请吧~
      </view>
      <block wx:if="{{independent_backend == 1}}">
        <van-field value="{{ username }}" placeholder="请输入登录账号" label="登录账号" border="{{ false }}"
          bind:change="onChange">
        </van-field>
        <van-field bind:change="onChange_p" value="{{ password }}" type="password" label="登录密码" placeholder="请输入登录密码"
          border="{{ false }}">
        </van-field>
        <van-field bind:change="onChange_p2" value="{{ password_again }}" type="password" label="确认登录密码"
          placeholder="请输入登录密码" border="{{ false }}">
        </van-field>
      </block>
      <button type="button" catchtap="submit" class="submit">申 请</button>
    </view>
    <view wx:if="{{config_status=='5'}}">
      <view class="title p">申请{{ merchant_center||"招商中心"}}</view>
      <view class="text">
        团队总消费金额
        <text class="span">{{config2.total}}</text> 元 您还差
        <text class="span">{{config2.diff}}</text> 元，如果成为{{ merchant_center||"招商中心"}}，那么只要您的粉丝成为供应商，即可获得供应商的分红哦，快来申请吧~
      </view>
      <block wx:if="{{independent_backend == 1}}">
        <van-field value="{{ username }}" placeholder="请输入登录账号" label="登录账号" border="{{ false }}"
          bind:change="onChange">
        </van-field>
        <van-field bind:change="onChange_p" value="{{ password }}" type="password" label="登录密码" placeholder="请输入登录密码"
          border="{{ false }}">
        </van-field>
        <van-field bind:change="onChange_p2" value="{{ password_again }}" type="password" label="确认登录密码"
          placeholder="请输入登录密码" border="{{ false }}">
        </van-field>
      </block>
      <button type="button" catchtap="submit" class="submit">申 请</button>
    </view>
  </view>
  <!-- 待审核 -->
  <view class="success" wx:if="{{status=='0'}}">
    <view class="ico">
      <icon class="iconfont icon-record_go"></icon>
    </view>
    <view class="text">申请已提交，请等待审核！</view>
    <view class="a" catchtap="goHome">
      <view class="sub">去商城逛逛</view>
    </view>
  </view>
  <!-- 驳回申请 -->
  <view class="success" wx:if="{{status=='-2'}}">
    <view class="ico">
      <icon class="iconfont icon-record_go"></icon>
    </view>
    <view class="text">您的申请被驳回，请继续努力！</view>
    <view class="a" catchtap="goHome">
      <view class="sub">去商城逛逛</view>
    </view>
  </view>
  <view class="vip_main" wx:if="{{status=='-1'}}">
    <view class="title">推广特权</view>
    <view class="vip vip1">
      <view class="ico1">
        <icon class="iconfont  icon-extension_code"></icon>
      </view>
      <view class="text">
        <view class="t1">专属二维码</view>
        <view class="t2">拥有专属推广二维码，用于推广客户；</view>
      </view>
    </view>
    <view class="vip">
      <view class="ico2">
        <icon class="iconfont  icon-pay_a"></icon>
      </view>
      <view class="text">
        <view class="t1">推广收入</view>
        <view class="t2">推广的客户购买商品后，您将获得相应的推广收入；</view>
      </view>
    </view>
  </view>
</view>
<!-- <shopfoot></shopfoot> -->