index_search.html 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <fieldset>
  2. <legend>条件搜索</legend>
  3. <form id="form" class="layui-form layui-form-pane form-search" action="{:request()->url()}" style="display: inline" onsubmit="return false" method="get" autocomplete="off">
  4. <div class="layui-form-item layui-inline">
  5. <label class="layui-form-label">用户名</label>
  6. <div class="layui-input-inline">
  7. <input name="name" value="{$Think.get.name|default=''}" placeholder="请输入用户名" class="layui-input">
  8. </div>
  9. </div>
  10. <div class="layui-form-item layui-inline">
  11. <label class="layui-form-label">手机号</label>
  12. <div class="layui-input-inline">
  13. <input name="phone" value="{$Think.get.phone|default=''}" placeholder="请输入手机号" class="layui-input">
  14. </div>
  15. </div>
  16. <div class="layui-form-item layui-inline">
  17. <label class="layui-form-label">HASH</label>
  18. <div class="layui-input-inline">
  19. <input name="hash" value="{$Think.get.hash|default=''}" placeholder="请输入HASH" class="layui-input">
  20. </div>
  21. </div>
  22. <input name="goods_id" value="{$Think.get.goods_id|default=''}" type="hidden"/>
  23. <div class="layui-form-item layui-inline">
  24. <button class="layui-btn layui-btn-primary"><i class="layui-icon">&#xe615;</i> 搜 索</button>
  25. </div>
  26. </form>
  27. <form action="" id="exportForm" method="post" style="display: inline;" >
  28. <button class="layui-btn layui-btn-primary layui-btn-sm" id="exportButton" type="submit" style="height: 32px;width: 73.69px;margin-left:3px; margin-bottom: 15px">
  29. <i class="layui-icon">&#xe608;</i>导 出
  30. </button>
  31. </form>
  32. <script>
  33. form.render();
  34. laydate.render({range: true, elem: '[name="create_at"]'})
  35. $('#exportButton').click(function () {
  36. $("#exportForm").attr('action', '/store/collect_info/get_excl?' + $('#form').serialize())
  37. })
  38. </script>
  39. <script>form.render()</script>
  40. </fieldset>