detail.wxml 1.3 KB

12345678910111213141516171819202122
  1. <van-search id='Search' value="{{ condition }}" shape="round" background="var(--primary)" bind:search='startSearch' bind:clear='cancelSearch' placeholder="搜索" />
  2. <My_listBox id='ListBox' height='{{scrollHeight}}' bind:getlist='getList'>
  3. <view class="total">总共{{total}}个</view>
  4. <block wx:if="{{myProject}}">
  5. <van-swipe-cell wx:for="{{list}}" wx:key="item.billnum" right-width="{{ 60 }}" id="swipe-cell" async-close bind:close="onClose">
  6. <van-cell-group>
  7. <project item="{{item}}" data-item="{{item}}" catchtap="toReportForms" />
  8. </van-cell-group>
  9. <view slot="right" class="slide">
  10. <van-button custom-class='but' color="#FF3B30" bindtap="deleteProject" data-item="{{item}}">删除</van-button>
  11. </view>
  12. </van-swipe-cell>
  13. </block>
  14. <block wx:else>
  15. <project wx:for="{{list}}" item="{{item}}" data-item="{{item}}" wx:key="item.billnum" bindtap="toReportForms" />
  16. </block>
  17. <My_empty wx:if="{{list.length==0}}" />
  18. </My_listBox>
  19. <view class="footer" wx:if="{{myProject}}">
  20. <van-button custom-class='but' bindtap="addProjece">添加项目</van-button>
  21. </view>
  22. <projectList id='Plist' list='{{projectList}}' showList='{{projectList}}' bindgetResult="getResult" />