index.wxml 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <!-- 导航栏 -->
  2. <van-nav-bar custom-style="background-color: #E92020">
  3. <van-icon slot="left" name="arrow-left" size="25px" color="white" bind:click="backToParent"/>
  4. <text slot="title" style="color: white;">发票操作</text>
  5. </van-nav-bar>
  6. <van-cell-group>
  7. <!-- 发票类型 -->
  8. <view class="type">
  9. <text class="label">发票类型</text>
  10. <view class="type-selsct" id="type-selsct" bindtap="onButtonPressed">{{type == 1 ? "个人" : "企业"}}</view>
  11. <van-icon name="arrow" size="10px" color="#666"></van-icon>
  12. </view>
  13. <!-- 发票抬头 -->
  14. <van-field model:value="{{ inname }}" clearable label="发票抬头" placeholder="抬头名称" />
  15. <!-- 税号 -->
  16. <van-field wx:if="{{type != 1}}" model:value="{{ inno }}" type="number" clearable label="税号" placeholder="纳税人识别号"/>
  17. <!-- 开户银行 -->
  18. <van-field wx:if="{{type != 1}}" model:value="{{ bankname }}" type="number" clearable label="开户银行" placeholder="选填"/>
  19. <!-- 银行账号 -->
  20. <van-field wx:if="{{type != 1}}" model:value="{{ bankno }}" type="number" clearable label="银行账号" placeholder="选填"/>
  21. <!-- 企业地址 -->
  22. <van-field wx:if="{{type != 1}}" model:value="{{ inaddress }}" type="number" clearable label="企业地址" placeholder="选填"/>
  23. <!-- 企业电话 -->
  24. <van-field wx:if="{{type != 1}}" model:value="{{ inmobile }}" type="number" clearable autosize label="企业电话" placeholder="选填"/>
  25. </van-cell-group>
  26. <!-- 底部视图 -->
  27. <view class="buttom_view">
  28. <van-button round id = "confirm" color="linear-gradient(to right, #FF7252, #55A154)" block style="width: 90%; padding-top: 5px; padding-top: 10px;" bind:click="onButtonPressed">确定</van-button>
  29. <van-button wx:if="{{autoid != 0}}" id="delete" round color="linear-gradient(to right, #ed213a, #93291e)" block style="width: 90%; padding-top: 5px; padding-top: 10px;" bind:click="onButtonPressed">删除</van-button>
  30. </view>
  31. <!-- 地区选择 -->
  32. <van-popup show="{{ show }}" position="bottom" custom-style="height: 30%" bind:click-overlay="onCancel">
  33. <van-picker show-toolbar title="请选择发票类型" columns="{{ intypes }}" default-index="{{ 0 }}" bind:cancel="onCancel" bind:confirm="onCancel"/>
  34. </van-popup>