index.wxml 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. <navigator url="#" class="item" wx:for="{{list}}" wx:key="sonum">
  2. <view class="top">
  3. 单据日期 : {{item.billdate || ' --'}} <text style="color:{{set.color(item.status)}}">{{item.status}}</text>
  4. </view>
  5. <view class="content">
  6. <view class="num">
  7. 单号:{{item.sonum}}
  8. </view>
  9. <view class="exp">
  10. 单据号(订单/退货单):{{item.billno || '--'}}
  11. </view>
  12. <view class="exp">
  13. 居间合同号:{{item.billno_contract || '--'}}
  14. </view>
  15. <view class="amount">
  16. 居间费:¥{{item.rebate || '--'}}元
  17. </view>
  18. <view class="exp">
  19. 备注{{item.remarks || '--'}}
  20. </view>
  21. </view>
  22. <view wx:if="{{item.contacts.length}}" class="bottom line-1">
  23. <text style="margin-right: 10rpx;">{{item.contacts[0].name}}</text>
  24. <text style="margin-right: 10rpx;">{{item.contacts[0].phonenumber}}</text>
  25. <text style="margin-right: 10rpx;">{{item.contacts[0].address}}</text>
  26. </view>
  27. <view wx:else class="bottom">
  28. 暂无更多信息
  29. </view>
  30. </navigator>
  31. <Yl_Empty wx:if="{{list.length==0}}" />
  32. <wxs module="set">
  33. module.exports = {
  34. color: function (statu) {
  35. var color = '#999999';
  36. switch (statu) {
  37. case "审核":
  38. color = '#FA8C16';
  39. break;
  40. case "提交":
  41. color = '#52C41A';
  42. break;
  43. case "新建":
  44. color = '#333333';
  45. break;
  46. };
  47. return color;
  48. }
  49. }
  50. </wxs>