截流自动化的商城平台
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

add.html 2.8KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. {layout name="layout2" /}
  2. <div class="layui-form" lay-filter="layui-form" id="layui-form" style="padding: 20px 30px 0 0;">
  3. <!--品牌名称-->
  4. <div class="layui-form-item">
  5. <label class="layui-form-label"><font color="red">*</font>品牌名称</label>
  6. <div class="layui-input-inline">
  7. <input type="text" name="name" lay-verify="required" lay-verType="tips" placeholder="请输入品牌名称" autocomplete="off" class="layui-input">
  8. </div>
  9. </div>
  10. <!--品牌首字母-->
  11. <div class="layui-form-item">
  12. <label class="layui-form-label"><font color="red">*</font>品牌首字母</label>
  13. <div class="layui-input-inline">
  14. <select name="initial" id="initial" >
  15. {foreach $capital as $val}
  16. <option value="{$val}">{$val}</option>
  17. {/foreach}
  18. </select>
  19. </div>
  20. </div>
  21. <!--品牌图片-->
  22. <div class="layui-form-item">
  23. <label class="layui-form-label"><span style="color:red;">*</span>品牌图片:</label>
  24. <div class="layui-input-block">
  25. <div class="like-upload-image">
  26. <div class="upload-image-elem"><a class="add-upload-image"> + 添加图片</a></div>
  27. </div>
  28. <div class="layui-form-mid layui-word-aux">建议尺寸:宽200像素*高200像素的jpg,jpeg,png图片</div>
  29. </div>
  30. </div>
  31. <!--品牌排序-->
  32. <div class="layui-form-item">
  33. <label class="layui-form-label">品牌排序</label>
  34. <div class="layui-input-inline">
  35. <input type="number" name="sort" value="255" placeholder="请输入品牌排序" class="layui-input">
  36. </div>
  37. </div>
  38. <!--是否显示-->
  39. <div class="layui-form-item">
  40. <label class="layui-form-label">显示状态</label>
  41. <div class="layui-input-inline">
  42. <input type="radio" name="is_show" value="1" title="显示" checked>
  43. <input type="radio" name="is_show" value="0" title="不显示">
  44. </div>
  45. </div>
  46. <!--品牌描述-->
  47. <div class="layui-form-item">
  48. <label class="layui-form-label">品牌描述</label>
  49. <div class="layui-input-inline">
  50. <textarea name="remark" placeholder="请输入品牌描述" class="layui-textarea"></textarea>
  51. </div>
  52. </div>
  53. <div class="layui-form-item layui-hide">
  54. <input type="button" lay-submit lay-filter="add-submit" id="add-submit" value="确认">
  55. </div>
  56. </div>
  57. <script>
  58. layui.use(function () {
  59. like.delUpload();
  60. $(document).on("click", ".add-upload-image", function () {
  61. like.imageUpload({
  62. limit: 1,
  63. field: "image",
  64. that: $(this)
  65. });
  66. })
  67. });
  68. </script>