index.wxml 1.6 KB

12345678910111213141516171819202122232425262728293031
  1. <van-tabs bindchange="tabChange" color='var(--assist)' custom-class='custom-class'>
  2. <van-tab title="客户" />
  3. <van-tab title="经销商" />
  4. </van-tabs>
  5. <van-search class="search" value="{{ content.where.condition }}" shape="round" placeholder="请输入搜索关键词" bind:search='startSearch' bind:clear='onClear' />
  6. <Yl_ListBox id='ListBox' bind:getlist='getList'>
  7. <view class="total">共{{content.total}}个</view>
  8. <navigator class="setclient-list-item" url="#" wx:for="{{list}}" wx:key="sys_enterpriseid" data-item="{{item}}" bindtap="changeResult">
  9. <view class="con">
  10. <view class="portrait {{item.enterprisename <=2?'min-portrait':''}}">
  11. {{handle.getName(item.enterprisename)}}
  12. </view>
  13. <view class="mian">
  14. <view class="label line-1">{{item.enterprisename}}</view>
  15. <view class="tag-box">
  16. <van-tag custom-class='tag' color='#E7EEFF' wx:if="{{item.type}}" text-color='#3874F6' round>{{item.type}}</van-tag>
  17. <van-tag custom-class='tag' wx:for="{{item.tags.systemtag}}" wx:for-item='tag' wx:key="index" color='#E7EEFF' text-color='#3874F6' round>{{tag}}</van-tag>
  18. <van-tag custom-class='tag' wx:for="{{item.tags.datatag}}" wx:for-item='tag' wx:key="index" color='#FFEFD9' text-color='#FA8C16' round>{{tag}}</van-tag>
  19. </view>
  20. </view>
  21. </view>
  22. </navigator>
  23. <My_empty wx:if="{{!list.length}}" />
  24. </Yl_ListBox>
  25. <wxs module="handle">
  26. module.exports = {
  27. getName: function (name) {
  28. return name.substring(0, 4)
  29. }
  30. }
  31. </wxs>