<view class="areaAgent">
	<view class="banner">
    	<image wx:if="{{upload_flag}}" class="img" style="width:100%;height:307rpx;" src="{{apply_background}}" mode="widthFix" />
    	<image wx:else  class="img" style="width:100%;height:307rpx;" src="https://mini-app-img-1251768088.cos.ap-guangzhou.myqcloud.com/enterprose_apply.jpg" mode="widthFix"  />
	</view>
	<!--已通过-->
	<view class="success" wx:if="{{status=='1'}}">
		<view class="ico">
			<van-icon name="passed" size="160rpx" color="#32cd32" />
		</view>
		<view class="text">恭喜您已通过审核</view>
		<view class="a" catchtap="goEnterproseCentre">
			<view class="sub">去{{title || '招商'}}</view>
		</view>
	</view>
	<!--可申请-->
	<view class="content" wx:if="{{status=='-1'}}">
		<block wx:if="{{config_status=='1'}}">
			<view class="p title">申请{{merchant_people || "招商员"}}</view>
			<!-- <view class="text div">开启会员关系链，如果成为{{merchant_people || "招商员"}}，那么只要您的粉丝成为供应商，即可获得供应商的分红哦，快来申请吧~</view> -->
			<view class="text div">如果成为{{merchant_people || "招商员"}}，那么只要您的粉丝成为供应商，即可获得供应商的分红哦，快来申请吧~</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>
			<view class="button submit" catchtap="submit">申 请</view>
		</block>
		<blcok wx:if="{{config_status=='2'}}">
			<view class="title p">申请{{merchant_people || "招商员"}}</view>
			<view class="text div">会员人数<text class="span">{{config2.total}}</text>人 您还差 <text
					class="span">{{config2.diff}}</text>人，如果成为{{merchant_people || "招商员"}}，那么只要您的粉丝成为供应商，即可获得供应商的分红哦，快来申请吧~</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>
			<view class="button submit" catchtap="submit">申 请</view>
		</blcok>
		<blcok wx:if="{{config_status=='3'}}">
			<view class="p title">申请{{merchant_people || "招商员"}}</view>
			<view class="text div">请购买指定商品 <text class="span">{{config3.goods_title}}</text></view>
			<view class="button submit" data-id="{{config3.goods_id}}" catchtap="goToGoods">购 买</view>
		</blcok>
	</view>
	<!--待审核-->
	<view class="success" wx:if="{{status=='0'}}">
		<view class="ico">
			<van-icon name="passed" size="160rpx" color="#32cd32" />
		</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">
			<van-icon name="close" size="160rpx" color="#32cd32" />
		</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">
				<van-icon name="qr" />
			</view>
			<view class="text">
				<view class="t1">专属二维码</view>
				<view class="t2">拥有专属推广二维码，用于推广客户；</view>
			</view>
		</view>
		<view class="vip">
			<view class="ico2">
				<van-icon name="balance-o" />
			</view>
			<view class="text">
				<view class="t1">推广{{income_name_text}}</view>
				<view class="t2">推广的客户购买商品后，您将获得相应的推广{{income_name_text}}；</view>
			</view>
		</view>
	</view>
</view>
<!-- <shopfoot></shopfoot> -->