<answer id='answer'></answer>
<view class="box">
  <view bindtap='againTicket' class='jilu {{returncode == 0 ? "jilu_1" : ""}}'>{{returncode == 0 ? '已开票' : returncode == 2 ? '开票中' : '开票失败'}}</view>
  <view class='shoup {{returncode == 0 ? "shoup_1" : ""}}' bindtap='goDetail'>
    <!-- **************************** -->
    <text wx:if='{{returncode == 0}}' style='font-size:28rpx;margin-top:35rpx;hegiht:26rpx;'>电子发票已开具</text>
    <text wx:elif='{{returncode == 2}}' style='font-size:28rpx;margin-top:35rpx;hegiht:26rpx;'>开票中</text>
    <text wx:else style='margin-top:40rpx;hegiht:30rpx;'>失败原因</text>
    <!-- ******************************* -->
    <text wx:if='{{returncode == 0 || returncode == 2}}' style='color:#999;font-size:28rpx; display:inline-block;hegiht:26rpx;margin-top:50rpx;'>{{create_time}}</text>
    <text wx:else style='color:#fbb040;font-size:28rpx; display:inline-block;hegiht:26rpx;margin-top:30rpx;width: 530rpx;'>{{returnmsg}}</text>
    <!--  ****************************** -->
    <view wx:if='{{returncode == 0}}' style='color:#999;font-size:28rpx;display:inline-block;border-bottom:none;width:120rpx;height:50rpx;line-height:50rpx;float:right;position:relative;margin-top:39rpx;' bindtap='vieTicket'>
      查看
      <image src="../../images/next.png" style='width:10rpx;height:22rpx;position:absolute;top:50%;margin-top:-12rpx;right:40rpx;'></image>
    </view>
    <view wx:if='{{returncode != 0 && returncode != 2}}' style='color:#999;font-size:28rpx;display:inline-block;border-bottom:none;width:180rpx;height:50rpx;line-height:50rpx;float:right;position:relative;margin-top:20rpx;' bindtap='againTicket'>
      重新开票
      <image src="../../images/next.png" style='width:10rpx;height:22rpx;position:absolute;top:50%;margin-top:-12rpx;right:40rpx;'></image>
    </view>
    <!-- ************************************** -->
  </view>
  <!-- 收件信息  -->
  <view class='fap'>
    <text class="title">收件信息</text>
    <view class='desc'>
      <text style='width: 144rpx;float:left;padding-right:0;'>电子邮箱：</text>
      <!-- <input class='email' bindinput="changeEamil" value='{{email}}' type='text' placeholder='请输入邮箱'  placeholder-class='plac'></input> -->
      <view class='email'>{{email}}</view>
    </view>
  </view>
  <view class='fap'>
    <text class="title">发票信息</text>
    <view class='desc'>
    <text wx:if='{{returncode == 0}}'>订单编号：{{ordernumber}}</text>
      <text class="{{otype == 0 ? 'show' : 'hid'}}">发票抬头：{{mainBody}}</text>
      <text wx:if='{{otype == 0}}'>纳税人识别号：{{taxId}}</text>
      <text>发票内容：{{continer}}</text>
      <view class='txt'>服务金额：
        <text style='color:#fbb040;display:inline-block;padding:0;'>{{money}}</text>元</view>
      <text>检查时间：{{createtime}}</text>
    </view>
  </view>
</view>
<view class='all-btn btn' wx:if='{{returncode == 0}}' bindtap='repeatSend'>重发电子发票</view>
<view class="mask {{maskshow ? 'show' : 'hid'}}"></view>