index.html 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. {extend name="public/base"/}
  2. {block name="css"}
  3. <style>
  4. .footer-block{width:100%;height:60px;}
  5. .footer{position:fixed;width:100%;left:0;bottom:0;box-sizing:border-box;padding:5px 20px;background:white;}
  6. </style>
  7. {/block}
  8. {block name="body"}
  9. <van-nav-bar
  10. class="nav-theme"
  11. :fixed="true"
  12. :placeholder="true"
  13. left-text="返回"
  14. left-arrow
  15. @click-left="onBack"
  16. >
  17. <template #title>
  18. <span class="text-white">简历库</span>
  19. </template>
  20. </van-nav-bar>
  21. <van-search
  22. v-model="form.searchKey"
  23. placeholder="请输入姓名或手机号"
  24. @search="onSearch"
  25. @cancel="onCancel"
  26. show-action
  27. >
  28. <template #action>
  29. <div @click="onCancel">重置</div>
  30. </template>
  31. </van-search>
  32. {include file="public/list_load" list="<resume-list @follow='onFollow' @edit='onEdit' :list='list'></resume-list>" /}
  33. <div class="footer-block"></div>
  34. <div class="footer">
  35. <van-button type="primary" @click="onAdd" block>添加</van-button>
  36. </div>
  37. {/block}
  38. {block name="script"}
  39. <script>
  40. function v_setup() {
  41. let base = list_load('resume/listResume',{searchKey:''});
  42. //搜索
  43. base.onSearch = () => {
  44. base.onRefresh();
  45. };
  46. base.onCancel = () => {
  47. base.form.searchKey = "";
  48. base.onRefresh();
  49. };
  50. //列表
  51. base.onFollow = (id) => {
  52. location.href = "{:url('/mobile/resume/follow')}?id=" + id;
  53. };
  54. base.onEdit = (id) => {
  55. location.href = "{:url('/mobile/resume/form')}?id=" + id;
  56. };
  57. base.onAdd = () => {
  58. location.href = "{:url('/mobile/resume/form')}";
  59. };
  60. //头部
  61. base.onBack = () => {
  62. location.href = "{:url('/mobile/my/index')}";
  63. };
  64. return base;
  65. }
  66. </script>
  67. {/block}
  68. {block name="vue"}
  69. <script src="__COMPONENTS__/resumeList.js"></script>
  70. {/block}