index.wxml 1.5 KB

123456789101112131415161718192021222324252627282930
  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="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:key="index" wx:for-item='tag' color='#3874f6' text-color='#fff' round>{{tag}}</van-tag>
  10. <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>
  11. </view>
  12. <!-- <view class="exp line-1">项目:<text>{{item.projectname||' --'}}</text></view> -->
  13. <view class="exp line-1">客户:<text>{{item.enterprisename||' --'}}</text></view>
  14. <view class="exp line-1">报价日期:<text>{{item.billdate}}</text></view>
  15. <view class="exp line-1">是否特价:<text>{{item.specialoffer==1?'是':'否'}}</text></view>
  16. </navigator>
  17. <wxs module="backColor">
  18. module.exports.getColor = function (status) {
  19. var color = null;
  20. if (status == '新建') {
  21. color = '#3874F6';
  22. } else if (status == '提交') {
  23. color = '#52C41A';
  24. } else {
  25. color = '#FA8C16';
  26. };
  27. return color
  28. }
  29. </wxs>