index.wxml 1.2 KB

12345678910111213141516171819202122232425262728293031
  1. <!-- 内容 -->
  2. <view class="container" style="padding-bottom: {{ safeBottom }}px;">
  3. <!-- 导航栏 -->
  4. <van-nav-bar custom-style="background-color: #407DB8">
  5. <van-icon slot="left" name="arrow-left" size="25px" color="#fff" bind:click="backToParent"/>
  6. <text slot="title" style="color: #fff;">发票信息</text>
  7. </van-nav-bar>
  8. <!-- 数据列表 -->
  9. <view class="list">
  10. <view class="list-item" wx:for="{{ infos }}" wx:for-item="itm" wx:for-index="idx" id="{{ idx }}" wx:key="phonenum" bindtap="onButtonPressed">
  11. <view class="list-item-info">
  12. <van-button size="mini" type="info">{{ itm.receipttype == 1 ? "个人" : "企业" }}</van-button>
  13. <text wx:if="{{ itm.receipttype == 2 }}" class="taxpayerid">税号:{{ itm.taxpayerid }}</text>
  14. <text class="username">{{ itm.username }}</text>
  15. </view>
  16. </view>
  17. </view>
  18. <!-- empty -->
  19. <van-empty wx:if="{{ isEmpty }}" class="custom-image" description="无数据"/>
  20. <!-- 底部视图 -->
  21. <view class="buttom_view">
  22. <van-button id="new" round color="#407DB8" block style="width: 90%; padding-top: 5px; padding-top: 10px;" bind:click="onButtonPressed">新增发票</van-button>
  23. </view>
  24. </view>
  25. <!-- toast -->
  26. <van-toast id="van-toast" />