select2.wxml 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. <van-search class="search" value="{{ params.content.where.condition }}" shape="round" placeholder="请输入搜索关键词" bind:search='startSearch' bind:clear='onClear' />
  2. <view class="div" style="height: 20rpx;" />
  3. <Yl_ListBox id='ListBox' bind:getlist='getList'>
  4. <navigator class="setclient-list-item" url="#" wx:for="{{list}}" wx:key="{{idname}}" data-id="{{item[idname]}}" bindtap="changeResult">
  5. <view class="con">
  6. <van-checkbox wx:if="{{!radio}}" value="{{ handle.isCheck(item[idname],result) }}" shape="square" icon-size='28rpx' />
  7. <view class="mian">
  8. <view class="title">
  9. <text class="projecttype" style="background-color: #3874F6;" wx:if="{{item.projecttype}}">{{item.projecttype}}</text>
  10. <text class="tradefield" style="background-color: #5AB73F;" wx:if="{{item.tradefield}}">{{item.tradefield}}</text>
  11. <view class="line-1">
  12. {{item.projectname}}
  13. </view>
  14. </view>
  15. <view class="row" style="margin-top: 16rpx;">
  16. <view class="left">
  17. 业务员:{{item.name||' --'}}
  18. </view>
  19. <view class="right">
  20. 项目阶段:{{item.stagename||' --'}}
  21. </view>
  22. </view>
  23. <view class="row" style="margin-top: 8rpx;">
  24. <view class="left">
  25. 预计签约金额:{{item.signamount_due||' --'}}
  26. </view>
  27. <view class="right">
  28. 预计签约时间:{{item.signdate_due||' --'}}
  29. </view>
  30. </view>
  31. </view>
  32. </view>
  33. </navigator>
  34. <view style="height: 150rpx;" />
  35. <My_empty wx:if="{{!list.length}}" />
  36. </Yl_ListBox>
  37. <view style="height: 130rpx;" />
  38. <block wx:if="{{!radio}}">
  39. <view class="footer">
  40. <view class="count">
  41. 已选:{{result.length}}
  42. </view>
  43. <van-button custom-class='but' disabled='{{result.length==0}}' bind:click="submit">确定</van-button>
  44. </view>
  45. <wxs module="handle">
  46. module.exports = {
  47. isCheck: function (id, list) {
  48. return list.some(function (v) {
  49. return v == id
  50. });
  51. },
  52. }
  53. </wxs>
  54. </block>