follow.html 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. {extend name="public/base"/}
  2. {block name="css"}
  3. {/block}
  4. {block name="body"}
  5. <van-nav-bar
  6. class="nav-theme"
  7. :fixed="true"
  8. :placeholder="true"
  9. left-text="返回"
  10. left-arrow
  11. @click-left="onBack"
  12. >
  13. <template #title>
  14. <span class="text-white">跟进记录</span>
  15. </template>
  16. </van-nav-bar>
  17. <van-form @submit="onSubmit">
  18. <van-field
  19. required
  20. v-model="remark"
  21. rows="3"
  22. autosize
  23. label="跟进记录"
  24. type="textarea"
  25. placeholder="请填写跟进记录"
  26. :rules="[{ required: true, message: '请填写跟进记录' }]"
  27. ></van-field>
  28. <div style="margin: 16px;">
  29. <van-button round block type="primary" native-type="submit">
  30. 提交
  31. </van-button>
  32. </div>
  33. </van-form>
  34. <van-steps direction="vertical" :active="0">
  35. {volist name="list" id="vo"}
  36. <van-step>
  37. <h4>
  38. {$vo.create_time} 【{$vo.type_text}】
  39. <span style="color:#FF5722;">({$vo.user_type_text})</span>
  40. </h4>
  41. <p>{$vo.remark} </p>
  42. </van-step>
  43. {/volist}
  44. </van-steps>
  45. {/block}
  46. {block name="script"}
  47. <script>
  48. function v_setup() {
  49. let base = {};
  50. base.onBack = () => {
  51. location.href = "{:url('info/index')}";
  52. };
  53. //表单
  54. base.remark = Vue.ref('');
  55. base.onSubmit = (form) => {
  56. postJson("{:url('info/followPost')}",{remark:base.remark.value,id:{$id}}).then(({data}) => {
  57. location.reload();
  58. });
  59. };
  60. return base;
  61. }
  62. </script>
  63. {/block}