follow.html 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. <div class="layui-fluid">
  2. <div class="layui-card">
  3. <div class="layui-card-header">用户授权信息</div>
  4. <div class="layui-card-body">
  5. <div class="layui-form layui-form-pane" lay-filter="{$lay_table}">
  6. <input type="hidden" name="id" value="{$user.id}">
  7. <div class="layui-form-item">
  8. <label class="layui-form-label">用户信息</label>
  9. <div class="layui-input-block">
  10. <input type="text" value="{$user.nickname} - {$user.mobile}" readonly
  11. class="layui-input">
  12. </div>
  13. </div>
  14. <div class="layui-form-item" pane>
  15. <label class="layui-form-label">跟进方式</label>
  16. <div class="layui-input-block">
  17. {volist name="type_list" id="v"}
  18. <input type="radio" name="type" value="{$key}" title="{$v}" {eq name="key" value="1" }checked{/eq} />
  19. {/volist}
  20. </div>
  21. </div>
  22. <div class="layui-form-item">
  23. <label class="layui-form-label"><span style="color:#f90c05;">*</span>跟进备注</label>
  24. <div class="layui-input-block">
  25. <textarea name="remark" lay-verify="required" placeholder="请输入..."
  26. class="layui-textarea"></textarea>
  27. </div>
  28. </div>
  29. <div class="layui-form-item">
  30. <div class="layui-input-block">
  31. <input type="button" lay-submit lay-filter="{$lay_btn}" value="确认"
  32. class="layui-btn">
  33. </div>
  34. </div>
  35. </div>
  36. <fieldset class="layui-elem-field layui-field-title" style="margin-top: 30px;">
  37. <legend>以往跟进记录</legend>
  38. </fieldset>
  39. <ul class="layui-timeline">
  40. {volist name="list" id="vo"}
  41. <li class="layui-timeline-item">
  42. <i class="layui-icon layui-timeline-axis"></i>
  43. <div class="layui-timeline-content layui-text">
  44. <h3 class="layui-timeline-title">
  45. {$vo.create_time} 【{$vo.type_text}】
  46. <span style="color:#FF5722;">({$vo.user_type_text})</span>
  47. </h3>
  48. <p>{$vo.remark}</p>
  49. </div>
  50. </li>
  51. {/volist}
  52. <li class="layui-timeline-item">
  53. <i class="layui-icon layui-timeline-axis"></i>
  54. <div class="layui-timeline-content layui-text">
  55. <div class="layui-timeline-title">已加载完 ( 最多显示最近100条跟进记录 )</div>
  56. </div>
  57. </li>
  58. </ul>
  59. </div>
  60. </div>
  61. </div>
  62. <script>
  63. layui.use(['index', 'form', 'set', 'table'], function () {
  64. const admin = layui.admin;
  65. const form = layui.form;
  66. form.render();
  67. form.on('submit({$lay_btn})', function (obj) {
  68. admin.req({
  69. url: "{:url('user/editFollow')}",
  70. data: obj.field,
  71. done: function (res) {
  72. location.reload();
  73. }
  74. });
  75. });
  76. });
  77. </script>