<form catchsubmit="pay">
  <!-- <view class="item">
      <label>单位全称</label>
      <input name='company' placeholder="请输入您的单位名称"></input>
  </view> -->
  <view class="item">
      <label class="">发票类型</label>
      <picker name='account' data-name='account' bindchange="pickerChange"  range="{{accountArray}}">
        <view class="picker">
        <!-- <text wx:if="{{account<0}}">请选择</text> -->
          {{accountArray[account]}}
        </view>
      </picker>
      <image src="../../images/arrow-bottom.png" mode="widthFix"></image>
  </view>
  <view class="item" wx:if='{{account == 2}}'>
      <label class="">公司全称</label>
      <input name='bill_name' placeholder-class="blue" placeholder="请填写后仔细核对,开票后将不能更改"></input>
  </view>
  <view class="item" wx:if='{{account == 2}}'>
      <label >税号</label>
      <input name='bill_no' placeholder-class="blue" placeholder="请填写后仔细核对,开票后将不能更改"></input>
  </view>
  <view class="item"  wx:if='{{account >= 1}}'>
      <label class="">发票方式</label>
      <picker name='account_type' data-name='account_type' bindchange="pickerChange"  range="{{accountTypeArray}}">
        <view class="picker">
        <!-- <text wx:if="{{account_type<0}}">请选择</text> -->
          {{accountTypeArray[account_type]}}
        </view>
      </picker>
      <image src="../../images/arrow-bottom.png" mode="widthFix"></image>
  </view>

  <view class="item fee" style="margin-top:12px;padding-bottom:0;">
      <label>培训费用</label><text>¥{{data.price}}</text>
  </view>
  <view class="item fee" style="margin-bottom:12px;">
      <label>总金额</label><text>¥{{data.price}}</text>
  </view>

  <view class="item">
      <label>状态</label>
      <text>已审核，待付款</text>
  </view>
  <view class="item">
      <label>报名身份</label>
      <text>{{data.subject_item}}</text>
  </view>
  <view class="item">
      <label>姓名</label>
      <text>{{data.name}}</text>
  </view>
  <view class="item">
      <label>性别</label>
      <text>{{data.sex}}</text>
  </view>
  <view class="item">
      <label>身份证号</label>
      <text>{{data.idno}}</text>
  </view>
  <view class="item">
      <label>文化程度</label>
      <text>{{data.education}}</text>
  </view>
  <view class="item">
      <label>手机号</label>
      <text>{{data.phone}}</text>
  </view>

  <view class="bottom">
    实付款  <text>¥{{data.price}}</text>
    <button formType="submit">立即支付</button>
  </view>
</form>