form.html 3.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. <form class="layui-form layui-card" action="{:request()->url()}" data-auto="true" method="post" autocomplete="off">
  2. <div class="layui-card-body padding-left-40">
  3. <div class="layui-form-item">
  4. <label class="relative block">
  5. <span class="color-green font-w7">众筹标题</span>
  6. <input name="title" autocomplete="off" value="{$vo.title|default=''}" class="layui-input" type="text" >
  7. </label>
  8. </div>
  9. <div class="layui-form-item">
  10. <label class="relative block">
  11. <span class="color-green font-w7">众筹单价</span>
  12. <input name="price" autocomplete="off" value="{$vo.price|default='0'}" class="layui-input" type="number">
  13. </label>
  14. </div>
  15. <div class="layui-form-item">
  16. <label class="relative block">
  17. <span class="color-green font-w7">众筹份数</span>
  18. <input name="number" autocomplete="off" value="{$vo.number|default=1}" class="layui-input" type="number">
  19. </label>
  20. </div>
  21. <div class="layui-form-item">
  22. <label class="relative block">
  23. <span class="color-green font-w7">众筹时间</span>
  24. <input name="time" autocomplete="off" value="{$vo.time|default=''}" class="layui-input" type="text">
  25. </label>
  26. </div>
  27. <div class="layui-form-item">
  28. <span class="color-green label-required-prev">众筹LOGO及轮播展示图片</span>
  29. <table class="layui-table">
  30. <thead>
  31. <tr>
  32. <th class="text-center">LOGO</th>
  33. <th class="text-left">展示图片</th>
  34. </tr>
  35. <tr>
  36. <td width="90px" class="text-center"><input name="logo" type="hidden" value="{$vo.logo|default=''}"></td>
  37. <td width="auto" class="text-left"><input name="image" type="hidden" value="{$vo.image|default=''}"></td>
  38. </tr>
  39. </thead>
  40. </table>
  41. <script>$('[name="logo"]').uploadOneImage(), $('[name="image"]').uploadMultipleImage()</script>
  42. </div>
  43. <div class="layui-form-item block">
  44. <span class="label-required-prev color-green">众筹详细内容</span>
  45. <textarea name="content">{$vo.content|default=''|raw}</textarea>
  46. </div>
  47. </div>
  48. <div class="hr-line-dashed"></div>
  49. {notempty name='vo.id'}<input type='hidden' value='{$vo.id}' name='id'>{/notempty}
  50. <div class="layui-form-item text-center">
  51. <button class="layui-btn" type='submit'>保存数据</button>
  52. <!-- <button class="layui-btn layui-btn-danger" type='button' data-confirm="确定要取消编辑吗?" data-close>取消编辑</button>-->
  53. </div>
  54. </form>
  55. <script>
  56. window.form.render();
  57. require(['ckeditor', 'angular'], function () {
  58. window.createEditor('[name="content"]', {height: 500});
  59. })
  60. </script>