index.wxml 4.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  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 wx:for="{{list}}" wx:key="sat_orderclueid" class="list-item">
  6. <view class="item" bind:tap="goToDetail" data-id="{{item.sat_orderclueid}}">
  7. <view class="top">
  8. <view class="name-row">
  9. <view class="name">{{item.name || '--'}}</view>
  10. <view class="phone-tag">{{item.phonenumber || '--'}}</view>
  11. </view>
  12. <view class="statu" style="border-color: {{set.color(item.status)}}; color: {{set.color(item.status)}};">
  13. {{item.status || '--'}}
  14. </view>
  15. </view>
  16. <view class="content">
  17. <view class="row">
  18. <view class="exp">来源:{{item.cluesource || '--'}}</view>
  19. </view>
  20. <view class="row">
  21. <view class="exp">负责人:{{item.leadername || '--'}}</view>
  22. <view class="exp">省市县:{{(item.province || '--') + (item.city || '--') + (item.county || '--')}}</view>
  23. </view>
  24. <view class="row">
  25. <view class="exp full-width">地址:{{item.address || '--'}}</view>
  26. </view>
  27. <view class="row">
  28. <view class="exp full-width">最后跟进时间:{{item.followDate || '--'}}</view>
  29. </view>
  30. </view>
  31. </view>
  32. <view class="actions">
  33. <view wx:if="{{item.status !== '已无效' && item.status !== '已转化'}}" bind:tap="convertToCustomer" data-item="{{item}}" class="action-btn convert">
  34. <van-icon name="friends" size="28rpx" color="#fff" custom-style="margin-right: 8rpx;" />
  35. <text>转客户</text>
  36. </view>
  37. <view wx:if="{{item.status !== '已无效' && hasAllotPermission && leader && item.leadername === leader.name}}" catchtap="onAssignTap" data-item="{{item}}" class="action-btn assign">
  38. <van-icon name="share" size="28rpx" color="#fff" custom-style="margin-right: 8rpx;" />
  39. <text>分配</text>
  40. </view>
  41. <view wx:if="{{item.status !== '已无效' && hasAllotPermission && leader && item.leadername !== leader.name}}" catchtap="onWithdrawTap" data-item="{{item}}" class="action-btn withdraw">
  42. <van-icon name="revoke" size="28rpx" color="#fff" custom-style="margin-right: 8rpx;" />
  43. <text>撤回</text>
  44. </view>
  45. <view bind:tap="makeCall" data-item="{{item}}" class="action-btn call">
  46. <van-icon name="phone" size="28rpx" color="#fff" custom-style="margin-right: 8rpx;" />
  47. <text>打电话</text>
  48. </view>
  49. </view>
  50. </view>
  51. <Yl_Empty wx:if="{{list.length==0}}" />
  52. <view style="height:150rpx;" />
  53. </Yl_ListBox>
  54. </view>
  55. <!-- 线索分配动作面板 -->
  56. <van-action-sheet show="{{ showActionSheet }}" title="选择负责人" actions="{{ teamActions }}" cancel-text="取消" zIndex='99999999' bind:cancel='onActionSheetClose' bind:close="onActionSheetClose" bind:select="onActionSheetSelect" />
  57. <!-- 分配确认弹窗 -->
  58. <van-dialog show="{{ showAssignConfirm }}" title="确认分配" message="确定要将此线索分配给所选负责人吗?" show-cancel-button bind:confirm="confirmAssign" bind:cancel="cancelAssign" confirm-button-color="#3874F6" />
  59. <!-- 撤回确认弹窗 -->
  60. <van-dialog show="{{ showWithdrawConfirm }}" title="确认撤回" message="确定要将此线索撤回给团队负责人吗?" show-cancel-button bind:confirm="confirmWithdraw" bind:cancel="cancelWithdraw" confirm-button-color="#3874F6" />
  61. <wxs module="set">
  62. module.exports = {
  63. color: function (statu) {
  64. var color = '#999999';
  65. switch (statu) {
  66. case "待跟进":
  67. color = '#FA8C16';
  68. break;
  69. case "跟进中":
  70. color = '#52C41A';
  71. break;
  72. case "已无效":
  73. color = '#FF4D4F';
  74. break;
  75. case "已转化":
  76. color = '#1890FF';
  77. break;
  78. case "已成交":
  79. color = '#722ED1';
  80. break;
  81. };
  82. return color;
  83. }
  84. }
  85. </wxs>