index.wxml 1.4 KB

1234567891011121314151617181920212223242526272829
  1. <My_empty wx:if="{{list.length==0}}" />
  2. <navigator class="offer-list" url="/packageA/offers/detail?sa_quotedpriceid={{item.sa_quotedpriceid}}" wx:for="{{list}}" wx:key="item.billno">
  3. <view class="title">
  4. <text class="line-1">单号:{{item.billno}}</text>
  5. <view class="status" style="background-color: {{backColor.getColor(item.status)}};">{{item.status}}</view>
  6. </view>
  7. <view class="tag-box">
  8. <van-tag custom-class='tag' color='#FA8C16' text-color='#fff' round>{{item.quotedpricetype}}</van-tag>
  9. <van-tag custom-class='tag' wx:for="{{item.tags.systemtag}}" wx:for-item='tag' color='#FA8C16' text-color='#fff' round>{{tag}}</van-tag>
  10. <van-tag custom-class='tag' wx:for="{{item.tags.datatag}}" wx:for-item='tag' color='#FAAB16' text-color='#fff' round>{{tag}}</van-tag>
  11. </view>
  12. <view class="exp line-1">客户:<text>{{item.enterprisename}}</text></view>
  13. <view class="exp line-1">报价日期:<text>{{item.billdate}}</text></view>
  14. <view class="exp line-1">特价:<text>{{item.specialoffer==1?'是':'否'}}</text></view>
  15. </navigator>
  16. <wxs module="backColor">
  17. module.exports.getColor = function (status) {
  18. var color = null;
  19. if (status == '新建') {
  20. color = '#3874F6';
  21. } else if (status == '提交') {
  22. color = '#52C41A';
  23. } else {
  24. color = '#FA8C16';
  25. };
  26. return color
  27. }
  28. </wxs>