<!--packageH/installationSever/installationSeverApply/installationSeverApply.wxml-->
<view class="income">
	<view class="supplier">
		<!-- <view class="banner">
			<image src="{{is_hotel?'https://mini-app-img-1251768088.cos.ap-guangzhou.myqcloud.com/hotel.png':(top_thumb?top_thumb:'https://mini-app-img-1251768088.cos.ap-guangzhou.myqcloud.com/o2oapply.png')}}" mode='widthFix' />
		</view> -->
		<view class="banner">
			<swiper class="banner_swiper" autoplay interval="3000" circular="{{true}}">
				<swiper-item catchtap='tapUrl' wx:for="{{slideList}}" wx:key="index" data-url="{{item.mini_link}}">
					<image src="{{item.slide}}" mode="aspectFill"></image>
				</swiper-item>
			</swiper>
		</view>
		<view class="main" wx:if="{{o2o_status==1}}">
			<van-cell-group>
				<view class="titlemessage">
					<view class="titleIcon"></view>
					<view>账号信息</view>
				</view>

				<van-field label="姓名 " value="{{applyModel.name}}" placeholder="姓名" border="{{ false }}"
					bind:blur="nameinp" noIs='{{ noIs }}' bor='{{ bor }}' />
				<van-field label="手机号 " type="number" value="{{applyModel.mobile}}" placeholder="手机号"
					border="{{ false }}" bind:blur="mobileinp" noIs='{{ noIs }}' bor='{{ bor }}' />
				<van-cell title="所在城市 " bind:click="addressShowbtn" value="{{addressName?addressName:'选择城市'}}" is-link
					noIs='{{ noIs }}' bor='{{ bor }}' />
				<van-cell wx:if="{{strShow}}" title="所在街道：" bind:click="streetShowbtn" value="{{street?street:'选择街道'}}"
					is-link noIs='{{ noIs }}' bor='{{ bor }}' />
				<van-field label="身份证 " type="number" value="{{applyModel.id_card_number}}" placeholder="身份证"
					border="{{ false }}" bind:blur="idcardnumberinp" noIs='{{ noIs }}' bor='{{ bor }}' />
				<van-field label="详细地址 " value="{{applyModel.address}}" placeholder="填写详细地址" border="{{ false }}"
					bind:blur="addressinp" noIs='{{ noIs }}' bor='{{ bor }}' />
				<view class="mapshow">
					<view class="left">定位位置
						<text>*</text>
						<view>{{mapdata_address}}</view>
					</view>
					<view class="right" catchtap="toGeolocation">
						<view class="bottom">
							<van-icon name="location-o" color="red" />
							{{mapdata_address?'切换':'自动定位'}}
						</view>
					</view>
				</view>
			</van-cell-group>

			<view class="statusSet">
				<view class="titlemessage tittop">
					<view class="titleIcon"></view>
					<view>资质证件</view>
				</view>

				<view class="statusBox">
					<view class="statusTitle">法人身份证人像面 </view>
					<view class="staImg" catchtap='onRead_5'>
						<image class="{{fileList5?'imaborder':''}}"
							src="{{fileList5?fileList5:'https://mini-app-img-1251768088.cos.ap-guangzhou.myqcloud.com/bg_idcard_up@2x.png'}}">
						</image>
					</view>
				</view>
				
				<view class="statusBox">
					<view class="statusTitle">法人身份证国徽面 </view>
					<view class="staImg" catchtap='onRead_4'>
						<image class="{{fileList4?'imaborder':''}}"
							src="{{fileList4?fileList4:'https://mini-app-img-1251768088.cos.ap-guangzhou.myqcloud.com/bg_idcard_down@2x.png'}}">
						</image>
					</view>
				</view>

				<view class="qitaimg">
					<view class="qitaTitle">其他图片</view>
					<view class="qitaimgbox">
						<view class="qitaimage" wx:for="{{showpaths_two}}" wx:key="index">
							<image class="qitaMax" src="{{item}}"></image>
							<view class="icon-cel">
								<van-icon name='close' color="red" catchtap="delIntu_2" id="{{index}}"></van-icon>
							</view>
						</view>
						<view class="qitaimage" catchtap='onRead_6'>
							<image class="qitaMin" src="https://mini-app-img-1251768088.cos.ap-guangzhou.myqcloud.com/up_icon.png"></image>
						</view>
					</view>
				</view>
			</view>

			<view class="textWork">
				<view class="titlemessage tittop">
					<view class="titleIcon"></view>
					<view>备注信息</view>
				</view>
				<view class="area">

					<textarea maxlength='100' placeholder='填写备注信息' value="{{applyModel.user_comment}}"
						bindblur='remarkinp'></textarea>

				</view>
			</view>
			<view class="choosebtn">
				<view class="right">
					<van-checkbox value="{{agreementChoose}}" checked-color="#f15353" shape="square"
						bind:change="Chooseinp"></van-checkbox>
				</view>
				<view class="left">阅读并同意<text catchtap='setExplainFlag'>《商家入驻协议》</text></view>
			</view>
			<view class="submit btn" catchtap="setApplyData">申请</view>

		</view>
		<view class="success" wx:if="{{o2o_status==2}}">
			<view class="ico">
				<van-icon name="passed" size="160rpx" color="#32cd32" />
			</view>
			<view class="text">您的申请已经提交，请等待审核！</view>
			<view class="a" catchtap="cancelApply">
				<view class="sub">取消申请</view>
			</view>
		</view>
		<view class="success" wx:if="{{o2o_status==3}}">
			<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>
</view>

<!-- <van-popup show="{{categoryShow}}" custom-style="width:100%;height:100%;overflow: auto;" position="right" bind:close="onClose">
	<van-nav-bar title="选择类别" left-text="" right-text="" left-arrow bind:click-left="onClickLeft" />
	<view class="content">
		<block wx:for="{{categoryList}}" wx:key="index">
			<van-cell title="{{item.name}}" data-item="{{item}}" bind:click="chooseCategory" is-link />
		</block>
	</view>
</van-popup> -->
<view class="b-mask {{addressShow}}" bindtap="_closeDateLw"></view>
<view class="dateBe {{addressShow}}">
	<view class="head">
		<view class="ll" bindtap="_closeDateLw">取消</view>
		<view class="rr" bindtap="resultAdd">确定</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>
<van-popup show="{{streetShow}}" custom-style="width:100%;height:100%;overflow:auto" position="right"
	bind:close="onClose">
	<van-nav-bar title="选择街道" left-text="" right-text="" left-arrow bind:click-left="treetShowLeft" />
	<view class="content">
		<block wx:for="{{districtVal}}" wx:key="index">
			<van-cell title="{{item.areaname}}" data-item="{{item}}" bind:click="streetConfirm" is-link />
		</block>
	</view>
</van-popup>



<van-popup show="{{ explainFlag }}" custom-style="background:transparent;">
	<view class="explainWrapper">
		<view class="explainTextWrapper">
			<view class="explainTextTitle">协议说明</view>
			<view class="explainTextContent">
				<view class="notice-main">
					<rich-text nodes="{{apply_text}}"></rich-text>
				</view>
			</view>
		</view>
		<icon bindtap="setExplainFlag" class="close iconfont icon-adsystem_icon_cancle"></icon>
	</view>
</van-popup>


<!-- <van-popup show="{{shenqShow}}" custom-style="width:100%;height:100%;overflow:auto;" position="right" bind:close="onClose">
	<van-nav-bar title="申请协议" left-text="" right-text="" left-arrow bind:click-left="onClicksQ" />
	<view class="vip_main">
		
		<view class="vip">
			<view class="text">
				<view class="t1">
					<rich-text nodes="{{o2o_info}}"></rich-text>
				</view>
			</view>
		</view>
	</view>
</van-popup> -->