operate.wxml 2.3 KB

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