index.wxml 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. <van-search value="{{ params.content.where.condition }}" shape='round' placeholder="请输入搜索关键词" use-action-slot bind:clear='onClear' bind:search="startSearch">
  2. </van-search>
  3. <view class="global-total">总共{{params.content.total}}个</view>
  4. <Yl_ListBox id='ListBox' bind:getlist='getList'>
  5. <navigator url="#" class="project-item global-card" data-id="{{item.sa_agentsid}}" bind:tap="changeResult" wx:for="{{list}}" wx:key="sa_agentsid">
  6. <view class="label">
  7. <view class="title line-1">{{item.enterprisename}}</view>
  8. <view class="state" style="background-color: {{sColors[item.status]}}">{{item.status}}</view>
  9. </view>
  10. <view class="tag-box">
  11. <view class="systemtag" wx:for="{{item.tag_sys}}" wx:key="item">{{language[item]||item}}</view>
  12. <view class="datatag" wx:for="{{item.tag}}" wx:key="item">{{language[item]||item}}</view>
  13. </view>
  14. <view class="replenish">
  15. <text style="color: #666;">编号:</text>
  16. <text>{{item.agentnum || ' --'}}</text>
  17. </view>
  18. <view class="replenish">
  19. <text style="color: #666;">合作状态:</text>
  20. <text>{{item.cooperatetype || ' --'}}</text>
  21. </view>
  22. <view class="replenish">
  23. <text style="color: #666;">营销区域:</text>
  24. <text>{{item.areanames || ' --'}}</text>
  25. </view>
  26. <view class="replenish">
  27. <text style="color: #666;">省市县:</text>
  28. <text>{{item.province + item.city +item.county || ' --'}}</text>
  29. </view>
  30. <view class="replenish">
  31. <text style="color: #666;">总经理:</text>
  32. <text>{{item.gmname || ' --'}}</text>
  33. </view>
  34. <view class="replenish">
  35. <text style="color: #666;">业务员:</text>
  36. <text>{{item.salernames || ' --'}}</text>
  37. </view>
  38. <view class="replenish">
  39. <text style="color: #666;">备注:</text>
  40. <text>{{item.remarks || ' --'}}</text>
  41. </view>
  42. </navigator>
  43. <view wx:if="{{!radio}}" style="height: 70rpx;" />
  44. <My_empty wx:if="{{!list.length}}" />
  45. </Yl_ListBox>
  46. <block wx:if="{{!radio}}">
  47. <view class="footer">
  48. <view class="count">
  49. 已选:{{result.length}}
  50. </view>
  51. <van-button custom-class='but' disabled='{{result.length==0}}' bind:click="submit">确定</van-button>
  52. </view>
  53. <wxs module="handle">
  54. module.exports = {
  55. isCheck: function (id, list) {
  56. return list.some(function (v) {
  57. return v == id
  58. });
  59. },
  60. }
  61. </wxs>
  62. </block>