<view class="anchorApply">
	<view class="show_photo">
		<view class="img">
			<image src="{{banner}}" mode='widthFix' />
		</view>
	</view>
	<view class="application_information">
		<view class="tilie">
			<view class="tilie_left"></view>
			<view class="tilie_right">
				申请信息
			</view>
		</view>
		<view class="information_list">
			<view class="li">
				<view class="li_left">
					姓名<text>*</text>
				</view>
				<view class="li_right">
					<input type="text" value="{{form.name}}" placeholder="姓名" bindinput="nameinp" />
				</view>
			</view>
			<view class="li">
				<view class="li_left">
					手机号<text>*</text>
				</view>
				<view class="li_right">
					<input type="number" value="{{telephoneNumber}}" placeholder="手机号" bindinput="telephoneInp" />
				</view>
			</view>
			<view class="li">
				<view class="li_left">
					所在城市<text>*</text>
				</view>
				<view class="li_right" catchtap="openDateLwtbtn">
					<view class="message">{{addressName?addressName:'请选择城市'}}</view>
					<van-icon name="arrow" size="24rpx" color="#cccccc" />
				</view>
			</view>
			<view class="li" wx:if="{{strShow}}">
				<view class="li_left">
					街道<text>*</text>
				</view>
				<view class="li_right" catchtap="streetChoose">
					<view class="message">{{form.street?form.street:'请选择街道'}}</view>
					<van-icon name="arrow" size="24rpx" color="#cccccc" />
				</view>
			</view>
			<view class="li">
				<view class="li_left">
					详细地址<text>*</text>
				</view>
				<view class="li_right">
					<input type="text" placeholder="请填写详细地址" value="{{addressContent}}" bindinput="addressInp" />
					<!-- <view class="message">白云区</view>
					<van-icon name="arrow" size="24rpx" color="#cccccc" /> -->
				</view>
			</view>
		</view>
	</view>
	<view class="remarks_information">
		<view class="tilie">
			<view class="tilie_left"></view>
			<view class="tilie_right">
				备注信息
			</view>
		</view>
		<view class="remarks">
			<block wx:if="{{!show1&&!show2&&!show3&&!show4&&!show5&&!streetShow&&!openDateLw}}">
				<textarea class="textarea" placeholder="请填写备注信息" value="{{form.remarksContent}}" placeholder-style="color:#999999;" maxlength="100"
				 bindinput="remarksInp" >
				 	<text class="currentWordNumber">{{currentWordNumber|0}}/100</text>
				 </textarea>
			</block>
			<block wx:else>
					<view class="textarea">{{form.remarksContent?form.remarksContent:'请填写备注信息'}}</view>
			</block>
		</view>
		<view class="user_protocol">
			<van-checkbox icon-size="20px" checked-color="#ef3e3e" value="{{form.checked }}" bind:change="protocolBtn">阅读并同意<text
				 class="us_color" catchtap="openProtocol">《申请协议》</text></van-checkbox>
		</view>
	</view>
	<!-- 	<view class="application_agreement">
		<view class="tilie">
			<view class="tilie_left"></view>
			<view class="tilie_right">
				申请协议
			</view>
		</view>
		<view class="content">
			
		</view>
	</view> -->
	<view class="submit" catchtap="submit">
		提交
	</view>
	<van-popup show="{{show1}}" custom-style="width: 599rpx;height: 309rpx;background-color: #ffffff;border-radius: 31rpx;"
	 position="center" bind:close="show1CloseBtn">
		<view class="mobilebindingTips">
			<view class="tipsTop">
				申请成为主播需绑定手机号！
			</view>
			<view class="tipsBottom">
				<view class="tipsBottomLeft" catchtap="show1CloseBtn">
					取消
				</view>
				<view class="line"></view>
				<view class="tipsBottomRight" catchtap="goEditMobile">
					去绑定
				</view>
			</view>
		</view>
	</van-popup>
	<van-popup show="{{show2}}" custom-style="width: 599rpx;height: 521rpx;background-color: #ffffff;border-radius: 31rpx;"
	 position="center" bind:close="show2CloseBtn">
		<view class="successfulSubmissionTips">
			<view class="top">
				<van-icon name="checked" color="#ef3e3e" size="111rpx" />
			</view>
			<view class="title">提交成功</view>
			<view class="tips">请等待管理员审核！</view>
			<view class="homepage" catchtap = "goLiveList">
				去直播首页逛逛
			</view>
		</view>
	</van-popup>
	<van-popup show="{{show3}}" custom-style="width: 599rpx;height: 521rpx;background-color: #ffffff;border-radius: 31rpx;"
	 position="center" bind:close="show3CloseBtn">
		<view class="successfulSubmissionTips">
			<view class="top">
				<block wx:if="{{status==2}}">
						<van-icon name="clock" color="#ef3e3e" size="111rpx"/>
				</block>
				<block wx:if="{{status==4}}">
						<van-icon name="checked" color="#ef3e3e" size="111rpx" />
				</block>
			</view>
			<block wx:if="{{status==2}}">
					<view class="title">等待审核</view>
			</block>
			<block wx:if="{{status==4}}">
					<view class="title">审核通过</view>
					<view class="tips">恭喜您成为主播！</view>
			</block>
			<view class="homepage" catchtap = "goLiveList">
				去直播首页逛逛
			</view>
		</view>
	</van-popup>
	<van-popup show="{{show4}}" custom-style="width: 620rpx;height: 541rpx;background-color: #ffffff;border-radius: 16rpx;"
	 position="center" bind:close="show4CloseBtn">
		<view class="applicationContent">
			<view class="top">
				申请协议
			</view>
			<view class="bottom">
					<rich-text nodes="{{agreementData}}"></rich-text>
			</view>
			<view class="close" catchtap="show4CloseBtn">
				<view class="iconfont icon-close11"></view>
			</view>
		</view>
	</van-popup>
	<van-popup show="{{show5}}" custom-style="width: 599rpx;height: 720rpx;background-color: #ffffff;border-radius: 31rpx;"
	 position="center" bind:close="show5CloseBtn">
		<view class="applicationConditions">
			<view class="close">
				<view class="iconfont icon-close11"></view>
			</view>
			<view class="center">
				<view class="title">申请条件不满足</view>
				<view class="tips">您不满足申请条件，不能申请成为主播！</view>
			</view>
			<view class="bottom" wx:if="{{condition}}">
				<view class="title">获取申请资格</view>
				<view class="ul">
					<view class="li" wx:if="{{condition.agent&&condition.agent==1}}">
						<view class="left">成为推广员</view>
						<view class="right" catchtap="goExtensionApply">前往</view>
					</view>
					<view class="li" wx:if="{{condition.store&&condition.store==1}}">
						<view class="left">成为门店店主/店员</view>
						<view class="right" catchtap="goStoreApply">前往</view>
					</view>
					<view class="li" wx:if="{{condition.supplier&&condition.supplier==1}}">
						<view class="left">成为供应商</view>
						<view class="right" catchtap="goSupplier">前往</view>
					</view>
					<view class="li" wx:if="{{condition.hotel&&condition.hotel==1}}">
						<view class="left">成为酒店店主</view>
						<view class="right" catchtap="gohotel">前往</view>
					</view>
				</view>
				<view class="tips">满足其中一种身份即可申请</view>
			</view>
		</view>
	</van-popup>
	<van-popup custom-style="width:100%;height:100%;overflow:auto;" show="{{streetShow}}" position="right" overlay="{{false}}">
		<view class="streetContent">
			<van-nav-bar title="选择街道" left-text="" right-text="" left-arrow bind:click-left="streetClose" />
			<van-cell-group>
				<van-cell wx:for="{{districtVal}}" wx:for-index="districtValindex" wx:key="{{districtValindex}}" title="{{item.areaname}}"
				 data-strname="{{item.areaname}}" data-strid="{{item.id}}"  is-link bindtap="streetConfirm" />
			</van-cell-group>
		</view>
	</van-popup>
	<van-popup show="{{showBuyGoods}}" round custom-style="border-radius: 16rpx;">
		<view class="BuyGoods-popup-class">
			<view class="BuyGoods-popup-title">
				购买指定商品
				<view class="iconfont icon-close11" bindtap="closedBuyGoodsPopup"></view>
			</view>
			<view class="BuyGoods-popup-text">购买以下商品获取申请主播资格</view>
			<view class="BuyGoods-popup-list">
				<view
					class="BuyGoods-popup-child"
					wx:for="{{showBuyGoodslist}}"
					bindtap="gotoGoods"
					data-id="{{item.id}}"
				>
					<image src="{{item.thumb}}" alt="" />
					<view class="BuyGoods-popup-child-title">{{ item.title }}</view>
					<view class="BuyGoods-popup-child-price">{{ $i18n.t('money') }} {{ item.price }}</view>
				</view>
			</view>
		</view>
	</van-popup>
	<view class="b-mask {{openDateLw}}" bindtap="_closeDateLw"></view>
	<view class="dateBe {{openDateLw}}">
		<view class="head">
			<view class="ll" bindtap="_closeDateLw">取消</view>
			<view class="rr" bindtap="_okAddress">确定</view>
		</view>
		<view class="main">
			<picker-view indicator-style="height: 50px;" style="width: 100%; height: 300px;" value="{{[pickerValue[0],pickerValue[1],pickerValue[2]]}}"
			 bindchange="bindChange">
				<picker-view-column id="provinceData">
					<view wx:for="{{provinceData}}" wx:key="index" style="line-height: 50px">
						{{item.areaname}}
					</view>
				</picker-view-column>
				<picker-view-column id="cityData">
					<view wx:for="{{cityData}}" wx:key="index" style="line-height: 50px">
						{{item.areaname}}
					</view>
				</picker-view-column>
				<picker-view-column id="districtData">
					<view wx:for="{{districtData}}" wx:key="index" style="line-height: 50px">
						{{item.areaname}}
					</view>
				</picker-view-column>
			</picker-view>
		</view>
	</view>
</view>
