index.wxml 1.4 KB

1234567891011121314151617181920212223242526
  1. <view class="setclient-list-item" wx:for="{{list}}" wx:key="sys_enterpriseid">
  2. <navigator url="/packageA/setclient/detail?id={{item.sa_customersid}}" class="con">
  3. <view class="portrait {{item.enterprisename <=2?'min-portrait':''}}">
  4. {{handle.getName(item.enterprisename)}}
  5. </view>
  6. <view class="mian">
  7. <view class="label line-1">{{item.enterprisename}}</view>
  8. <view class="tag-box">
  9. <!-- <van-tag custom-class='tag' wx:if="{{item.type}}" wx:for-item='tag' color='#FA8C16' text-color='#fff' round>{{item.type}}</van-tag> -->
  10. <van-tag custom-class='tag' wx:for="{{item.tag_sys}}" wx:key="index" wx:for-item='tag' color='#3874f6' text-color='#fff' round>{{tag}}</van-tag>
  11. <!-- <van-tag custom-class='tag' wx:for="{{item.tags.systemtag}}" wx:key="index" wx:for-item='tag' color='#3874f6' text-color='#fff' round>{{tag}}</van-tag> -->
  12. <van-tag custom-class='tag' wx:for="{{item.tags.datatag}}" wx:key="index" wx:for-item='tag' color='#FAAB16' text-color='#fff' round>{{tag}}</van-tag>
  13. </view>
  14. </view>
  15. <view class="icon">
  16. <van-icon name="arrow" />
  17. </view>
  18. </navigator>
  19. </view>
  20. <My_empty wx:if="{{!list.length}}" />
  21. <wxs module="handle">
  22. module.exports.getName = function (name) {
  23. return name.substring(0, 4)
  24. };
  25. </wxs>