<!--pages/buyerAdd/buyerAdd.wxml-->
<view class="formTitle">如要开具增值税专用发票，需全部填写</view>
<view class="formArea noMargin">
	<view class="lineGroup">
		<view class="chooseWrap" style="padding:0;">
			<view bindtap="choose" data-index="{{index}}" wx:for="{{list}}" wx:key="*this" class="item">
				<i wx:if="{{!item.selected}}" class="iconfont icon-select"></i>
				<i wx:if="{{item.selected}}" class="iconfont icon-selected"></i>
				<text class="text">{{item.text}}</text>
			</view>
		</view>
	</view>
	<view class="lineGroup">
		<view class="lineInner">
			<view class="label middle">
				<text class="star">*</text><text>购方名称</text>
			</view>
			<view class="content">
				<input bindinput="getcustomerName" value="{{customerName}}" class="input" type="text" placeholder="请输入" placeholder-class="placeholderStyle"></input>
			</view>
		</view>
	</view>
	<view wx:if="{{currentIndex===0}}" class="lineGroup">
		<view class="lineInner">
			<view class="label middle">
				<text class="star">*</text><text>税号</text>
			</view>
			<view class="content">
				<input bindinput="getentTaxId" value="{{entTaxId}}" class="input" type="text" placeholder="请输入纳税人识别号" placeholder-class="placeholderStyle"></input>
			</view>
		</view>
	</view>
	<!-- <view class="lineGroup">
		<view class="lineInner">
			<view class="label hasWidth">
				<text class="text">默认抬头</text>
			</view>
			<view class="content">
				<switch bindchange="changeHead" checked="{{head}}" class="switch" />
			</view>
		</view>
	</view> -->
	<block wx:if="{{currentIndex===0}}">
		<view class="lineGroup">
			<view class="lineInner">
				<view class="label middle">公司地址</view>
				<view class="content">
					<input bindinput="getaddress" value="{{address}}" class="input" type="text" placeholder="请输入公司地址" placeholder-class="placeholderStyle"></input>
				</view>
			</view>
		</view>
		<view class="lineGroup">
			<view class="lineInner">
				<view class="label middle">电话号码</view>
				<view class="content">
					<input bindinput="getcontactPhone" value="{{contactPhone}}" class="input" type="text" placeholder="请输入公司电话号码" placeholder-class="placeholderStyle"></input>
				</view>
			</view>
		</view>
		<view class="lineGroup">
			<view class="lineInner">
				<view class="label middle">开户银行</view>
				<view class="content">
					<input bindinput="getbankName" value="{{bankName}}" maxlength="-1" class="input" type="text" placeholder="请输入开户银行" placeholder-class="placeholderStyle"></input>
				</view>
			</view>
		</view>
    <view class="lineGroup">
			<view class="lineInner">
				<view class="label middle">银行账号</view>
				<view class="content">
					<input bindinput="getbankAccountNumber" value="{{bankAccountNumber}}" maxlength="-1" class="input" type="text" placeholder="请输入银行账号" placeholder-class="placeholderStyle"></input>
				</view>
			</view>
		</view>
	</block>
</view>
<view class="formTitle">填写联系方式，向购方同步电子发票信息</view>
<view class="formArea noMargin">
	<view class="lineGroup">
		<view class="lineInner">
			<view class="label middle">手机号</view>
			<view class="content">
				<input bindinput="getcustomerMobile" value="{{customerMobile}}" class="input" type="number" maxlength="11" placeholder="请输入个人手机号码" placeholder-class="placeholderStyle"></input>
			</view>
		</view>
	</view>
	<view class="lineGroup">
		<view class="lineInner">
			<view class="label middle">邮箱</view>
			<view class="content">
				<input bindinput="getemail" value="{{email}}" class="input" type="text" placeholder="请输入个人邮箱" placeholder-class="placeholderStyle"></input>
			</view>
		</view>
	</view>
</view>
<view class="bottomPlaceholder"></view>
<ipx-placeholder></ipx-placeholder>
<customer-bottom>
	<view class="btnGroup shadow">
		<button bindtap="submitData" class="btn">保存</button>
	</view>
</customer-bottom>