index.wxml 1.4 KB

1234567891011121314151617181920212223242526272829
  1. <My_empty wx:if="{{list.length==0}}" />
  2. <navigator class="offer-list" url="/packageA/salesForecasting/detail?sa_salesforecastbillid={{item.sa_salesforecastbillid}}" wx:for="{{list}}" wx:key="billnum">
  3. <view class="title">
  4. <text class="line-1">单号:{{item.billnum}}</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' wx:for="{{item.tags.systemtag}}" wx:key="index" wx:for-item='tag' color='#FA8C16' text-color='#fff' round>{{tag}}</van-tag>
  9. <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>
  10. </view>
  11. <view class="exp line-1">提报要求:<text>{{item.remarks}}</text></view>
  12. <view class="exp line-1">提报开始时间:<text>{{item.periodstart}}</text></view>
  13. <view class="exp line-1">提报截止时间:<text>{{item.periodend||' --'}}</text></view>
  14. <view class="exp line-1">预测金额:<text>{{item.amount}}</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 = '#BBBBBB';
  25. };
  26. return color
  27. }
  28. </wxs>