<!--pages/order/invoicingDetail/index.wxml-->
<view>
  <!-- 开票详情 -->
  <!-- 开票中 -->
  <view class="invoicDetail">
    <view class="invoicTop">
      <!-- <view class="invoicTopLeft"></view> -->
      <view class="invoicTopInfo">开票信息</view>
    </view>
    <!-- 发票类型 -->
    <view class="invoicType">
      <view class="type">发票类型</view>
      <view class="typeInfo">电子普通发票</view>
    </view>
    <!-- 消费码信息 -->
    <view class="{{invoiceInfo.length<=2?'invoicTypeInfoOne':'invoicTypeInfo'}}">
      <view class="type">
        消费码信息<view>（发票上不展示）</view>
      </view>
      <view class="typeInfoTitle">
        <!-- {{invoiceInfo.length==1?'typeInfoOne':'typeInfo'}} -->
        <text wx:for="{{invoiceInfo}}" wx:key="index" class="{{invoiceInfo.length==1?'typeInfoOne':'typeInfo'}}">{{item.attendantNames}}({{item.password}})
        </text>
      </view>
    </view>
    <!-- 开票金额 -->
    <view class="invoicType">
      <view class="type">开票金额</view>
      <view class="typeInfo">共{{sumPrice}}元</view>
    </view>
    <!-- 公司名称 -->
    <view class="invoicType">
      <view class="type">公司名称</view>
      <label for="">
        <input bindinput="bindinput" data-type="company" class="typeInput" type="text" value="{{company?company:''}}" placeholder="请输入公司名称" placeholder-style="font-size:22rpx;color: #959595;" />
      </label>
    </view>
    <!-- 税号 -->
    <view class="invoicType">
      <view class="type">税号</view>
      <input bindinput="bindinput" data-type="dutyNumber" class="typeInput" type="text" value="{{dutyNumber?dutyNumber:''}}" placeholder="请输入税号" placeholder-style="font-size:22rpx;color: #959595;" />
    </view>
    <!-- 接收邮箱 -->
    <view class="invoicEmail">
      <view class="type">接收邮箱</view>
      <input bindinput="bindinput" data-type="email" class="typeInput" type="text" value="{{email?email:''}}" placeholder="请填写电子邮箱" placeholder-style="font-size:22rpx;color: #959595;" />
    </view>
    <view style="padding: 60rpx 20rpx 0;">
      <image src="https://img.bbztx.com/miniProgram/teamLeader/invoiceSample.jpg" bindtap='preImg' style="width: 100%;" mode="widthFix" />
    </view>
    <view class="invoiceSample">(发票样例)</view>
  </view>

  <!-- 提示说明 -->
  <!-- <view class="tipInfo">
    <view class="tip">
      <view class="tipTitle">提示说明</view>
    </view>
    <view class="prompt">文案待定</view>
  </view> -->
  <consumptionCode type="{{type}}" show="{{showconsumptionCode}}" bind:close="closeTips"></consumptionCode>
  <!-- 底部提交 -->
  <view>
    <view class="editInfo">
      <!-- 修改开票信息按钮 -->
      <view class="infobtn" bindtap="submit">提交</view>
    </view>
  </view>
</view>