form.html 3.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  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-card-body padding-left-40">
  4. <!-- <div class="layui-form-item">-->
  5. <!-- <span class="color-green label-required-prev">商品图片</span>-->
  6. <!-- <table class="layui-table">-->
  7. <!-- <thead>-->
  8. <!-- <tr>-->
  9. <!-- <th class="text-center">商品图</th>-->
  10. <!-- </tr>-->
  11. <!-- <tr>-->
  12. <!-- <td width="90px" class="text-center"><input name="image" type="hidden" value="{$vo.image|default=''}"></td>-->
  13. <!-- </tr>-->
  14. <!-- </thead>-->
  15. <!-- </table>-->
  16. <!-- <script>$('[name="image"]').uploadOneImage()</script>-->
  17. <!-- </div>-->
  18. <div class="layui-form-item">
  19. <span class="color-green label-required-prev">图片组</span>
  20. <table class="layui-table">
  21. <thead>
  22. <tr>
  23. <!-- <th class="text-center">视频</th>-->
  24. <th class="text-left">图片</th>
  25. </tr>
  26. <tr>
  27. <!-- <td width="90px" class="text-center"><input name="video" type="hidden" value="{$vo.video|default=''}"></td>-->
  28. <td width="auto" class="text-left"><input name="image" type="hidden" value="{$vo.image|default=''}"></td>
  29. </tr>
  30. </thead>
  31. </table>
  32. <script> $('[name="image"]').uploadMultipleImage()</script>
  33. </div>
  34. <div class="layui-form-item">
  35. <label class="relative block">
  36. <span class="color-green font-w7">标题</span>
  37. <input type="text" maxlength="20" autocomplete="off" autofocus name="name" value='{$vo.name|default=""}' placeholder="请输入商品标题" class="layui-input">
  38. </label>
  39. </div>
  40. <div class="layui-form-item">
  41. <label class="relative block">
  42. <span class="color-green font-w7">数量</span>
  43. <input type="number" maxlength="11" autocomplete="off" autofocus name="number" value='{$vo.number|default=""}' placeholder="请输入商品数量" class="layui-input">
  44. </label>
  45. </div>
  46. </div>
  47. </div>
  48. {notempty name='vo.id'}<input type='hidden' value='{$vo.id}' name='id'>{/notempty}
  49. <input type='hidden' value='{$vo.uid}' name='uid'>
  50. {notempty name='vo.create_time'}<input type='hidden' value='{$vo.create_time|default=""}' name='create_time'>{/notempty}
  51. <div class="layui-form-item text-center">
  52. <button class="layui-btn" type='submit'>提交</button>
  53. <!-- <button class="layui-btn layui-btn-danger" type='button' data-confirm="确定要取消编辑吗?" data-close>取消编辑</button>-->
  54. </div>
  55. </form>