<mp-toptips msg="{{error}}" type="error" show="{{error}}" ext-class='toptips' ></mp-toptips>
<answer id='answer'></answer>
<block wx:if="{{qy}}">
	<view class="box">
		<view class='title'>发票详情</view>
		<!-- <view class='con'> -->
		<view class='list'>
			<view class="title1">抬头类型</view>
			<view bindtap='goPer'>
				<image src='/images/on2x.png' style='width:24rpx;height:24rpx;'></image> 企业抬头
			</view>
			<view bindtap='goQi'>
				<image src='/images/off.png' style='width:24rpx;height:24rpx;'></image> 个人/非企业单位
			</view>
			<!-- <view class='line'></view> -->
		</view>
		<view class='inp'>
			<view class="partyone">
				<view class="title1">发票抬头</view>
				<input type='text' confirm-type='搜索' placeholder='请输入公司全称' value='{{tickValue ? tickValue : ""}}' bindinput='titckInput'></input>
			</view>
		</view>
		<!-- <view class='list'> -->
		<view class='inp'>
			<view class="partyone">
				<view class="title1">纳税人识别号</view>
				<input type='text' class="tick" placeholder='纳税人识别号' value='{{taxpayerValue ? taxpayerValue : ""}}' bindblur='taxpayerBlur'>
				</input><text bindtap="titckConfirm" class="text1">自动获取</text>
			</view>
		</view>
		<!-- <text class='title_1'>填写纳税人识别号</text>
      <input placeholder="纳税人识别号" type='number'/> -->
		<!-- </view> -->
		<view class='inp'>
			<view class="partyone">
				<view class="title1">发票内容</view>
				<view>{{descs}}</view>
			</view>
		</view>
		<view class='inp'>
			<view class="partyone">
				<view class="title1">开票金额</view>
				<input type='number' disabled='{{true}}' placeholder='可开金额{{money}}元' value="{{money}}元" bindinput='Amount' bindblur='moneyBlur'></input>
			</view>
		</view>
	</view>
	<view class='con' style='background:#f2f2f2;'>电子发票预计在1-2个工作日发送到您的邮箱</view>
	<view class='box'>
		<view class='inp'>
			<view class="partyone" style='border-top:none;'>
				<view class="title1">电子邮箱</view>
				<input type='text' placeholder='填写电子邮箱' value='{{emailValue ? emailValue : ""}}' bindinput='emailInput' bindblur='emailBlur'></input>
			</view>
		</view>
	</view>
	<!-- <view class='lishi' bindtap='goLishi'>开票历史</view> -->
	<view class='btn active {{btnFlag == 0?active:""}}' bindtap='goBtn' wx:if='{{btnFlag == 0}}'>提交</view>
	<view class='btn {{btnFlag == 1?"no-ac":""}}' wx:if='{{btnFlag == 1}}'>提交</view>

	<modal hidden="{{hidden}}" title="" confirm-text="确认提交" cancel-text="取消" bindcancel="cancel" bindconfirm="confirm">
		<view class='desc desc_1'>
			<view>发票类型：
				<text>{{}}电子发票</text>
			</view>
			<view>发票抬头：
				<text>{{tickValue}}</text>
			</view>
			<view>发票内容：
				<text>{{descs}}</text>
			</view>
			<view>纳税人识别号：
				<text>{{taxpayerValue}}</text>
			</view>
			<view>电子邮箱：
				<text>{{emailValue}}</text>
			</view>
		</view>
		<view class='tishi'>请确认开票信息及邮箱无误，电子发票将在系统开具后发送至您的邮箱，请注意查收。</view>
	</modal>
</block>
<block wx:else>
	<view class="box">
		<view class='title'>发票详情</view>
		<!-- <view class='con'> -->
		<!-- <view class='list'>
			<view>抬头类型</view>
			<view bindtap='goPer'>
				<image src='/images/off.png' style='width:24rpx;height:24rpx;'></image> 企业抬头
			</view>
			<view bindtap='goQi'>
				<image src='/images/on2x.png' style='width:24rpx;height:24rpx;'></image> 个人/非企业单位
			</view>
			<view class='line'></view>
		</view> -->
		<!-- </view> -->
		<view class='inp'>
			<view class="partyone">
				<view class="title1">抬头类型</view>
				<view>个人/非企业单位</view>
			</view>
		</view>
		<view class='inp'>
			<view class="partyone">
				<view class="title1">发票抬头</view>
				<input type='text' placeholder="请输入个人或单位名称" bindinput="partyone" value="{{tickValue}}"></input>
			</view>
		</view>
		<view class='inp'>
			<view class="partyone">
				<view class="title1">发票内容</view>
				<view>{{descs}}</view>
			</view>
		</view>
		<view class='inp'>
			<view class="partyone">
				<view class="title1">开票金额</view>
				<input type='number' disabled='{{true}}' placeholder='可开金额{{money}}元' value="{{money}}元" bindinput='Amount'></input>
			</view>
		</view>
	</view>
	<view class='con' style='background:#f2f2f2;'>电子发票预计在1-2个工作日发送到您的邮箱</view>
	<view class='box'>
		<view class='inp'>
			<view class="partyone" style='border-top:none;'>
				<view class="title1">电子邮箱</view>
				<input type='text' placeholder='填写电子邮箱' value='{{emailValue ? emailValue : ""}}' bindinput='emailInput' bindblur='emailBlur'></input>
			</view>
		</view>

	</view>
	<view class='btn active {{btnFlag == 0?active:""}}' bindtap='goBtn' wx:if='{{btnFlag == 0}}'>提交</view>
	<view class='btn {{btnFlag == 1?"no-ac":""}}' wx:if='{{btnFlag == 1}}'>提交</view>
	<modal hidden="{{hidden}}" title="" confirm-text="确认提交" cancel-text="取消" bindcancel="cancel" bindconfirm="confirm">
		<view class='desc desc_1'>
			<view>发票类型：
				<text>电子发票</text>
			</view>
			<view>发票抬头：
				<text>{{tickValue}}</text>
			</view>
			<view>发票内容：
				<text>{{descs}}</text>
			</view>
			<view>电子邮箱：
				<text>{{emailValue}}</text>
			</view>
		</view>
		<view class='tishi'>请确认开票信息及邮箱无误，电子发票将在系统开具后发送至您的邮箱，请注意查收。</view>
	</modal>
</block>