detail.wxml 1.4 KB

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