select.wxml 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <van-search class="search" value="{{ params.content.where.condition }}" shape="round" placeholder="请输入搜索关键词" bind:search='startSearch' bind:clear='onClear' />
  2. <view class="total">共{{params.content.total}}个</view>
  3. <Yl_ListBox id='ListBox' bind:getlist='getList'>
  4. <navigator class="offer-list" url="#" wx:for="{{list}}" wx:key="billno" data-id="{{item[idname]}}" bindtap="changeResult">
  5. <van-checkbox wx:if="{{!radio}}" value="{{ handle.isCheck(item[idname],result) }}" shape="square" icon-size='28rpx' />
  6. <view class="box">
  7. <view class="title">
  8. <text class="line-1">单号:{{item.billno}}</text>
  9. </view>
  10. <view class="tag-box">
  11. <van-tag custom-class='tag' wx:for="{{item.tags.systemtag}}" wx:for-item='tag' color='#FA8C16' text-color='#fff' round>{{tag}}</van-tag>
  12. <van-tag custom-class='tag' wx:for="{{item.tags.datatag}}" wx:for-item='tag' color='#FAAB16' text-color='#fff' round>{{tag}}</van-tag>
  13. </view>
  14. <view class="exp line-1">客户:<text>{{item.enterprisename||" --"}}</text></view>
  15. <view class="exp line-1">报价日期:<text>{{item.billdate}}</text></view>
  16. <view class="exp line-1">特价:<text>{{item.specialoffer==1?'是':'否'}}</text></view>
  17. </view>
  18. </navigator>
  19. <view style="height: 230rpx;" />
  20. <My_empty wx:if="{{!list.length}}" />
  21. </Yl_ListBox>
  22. <block wx:if="{{!radio}}">
  23. <view style="height: 130rpx;" />
  24. <view class="footer">
  25. <view class="count">
  26. 已选:{{result.length}}
  27. </view>
  28. <van-button custom-class='but' disabled='{{result.length==0}}' bind:click="submit">确定</van-button>
  29. </view>
  30. </block>
  31. <wxs module="handle">
  32. module.exports = {
  33. isCheck: function (id, list) {
  34. return list.some(function (v) {
  35. return v == id
  36. });
  37. },
  38. }
  39. </wxs>