index.wxml 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. <view class="container">
  2. <van-search use-action-slot placeholder='请输入搜索关键词' shape='round' bind:search="onSearch" bind:clear="onSearch" />
  3. <view class="header" style="height: 20rpx;"></view>
  4. <Yl_ListBox id='ListBox' bind:getlist='getList'>
  5. <view class="item" wx:for="{{list}}" wx:key="sa_esign_contract_taskmxid" bindtap="onItemClick" data-item="{{item}}">
  6. <view class="reconfirm-btn" wx:if="{{item._status === '待签署'}}" catchtap="onReconfirm" data-item="{{item}}">变更签署信息</view>
  7. <view class="top">
  8. <view class="name">{{item.taskname || '--'}}</view>
  9. <view class="statu" style="border-color: {{set.color(item._status)}}; color: {{set.color(item._status)}};">
  10. {{item._status || '--'}}
  11. </view>
  12. </view>
  13. <view class="content">
  14. <view class="row">
  15. <view class="exp">合同模版:{{item.name || '--'}}</view>
  16. </view>
  17. <view class="row">
  18. <view class="exp">年度:{{item.year || '--'}}</view>
  19. <view class="exp">合同类型:{{item.type || '--'}}</view>
  20. </view>
  21. <view class="row">
  22. <view class="exp">发布时间:{{item.senddate || '--'}}</view>
  23. </view>
  24. <view class="row">
  25. <view class="exp full-width">备注:{{item.remarks || '--'}}</view>
  26. </view>
  27. </view>
  28. </view>
  29. <Yl_Empty wx:if="{{list.length==0}}" />
  30. <view style="height:150rpx;" />
  31. </Yl_ListBox>
  32. </view>
  33. <wxs module="set">
  34. module.exports = {
  35. color: function (statu) {
  36. var color = '#999999';
  37. switch (statu) {
  38. case "待开始":
  39. color = '#909399';
  40. break;
  41. case "待签署":
  42. color = '#3874F6';
  43. break;
  44. case "部分签署":
  45. color = '#E6A23C';
  46. break;
  47. case "合同签署完成":
  48. case "已签署":
  49. case "已完成":
  50. color = '#67C23A';
  51. break;
  52. case "已拒签":
  53. color = '#F56C6C';
  54. break;
  55. };
  56. return color;
  57. }
  58. }
  59. </wxs>