截流自动化的商城平台
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. {layout name="layout2" /}
  2. <style>
  3. .reqRed::before {
  4. content: '*';
  5. color: red;
  6. margin-right: 5px;
  7. }
  8. .layui-form-label {
  9. width: 120px;
  10. }
  11. </style>
  12. <div class="layui-form" lay-filter="layuiadmin-form" id="layuiadmin-form" style="padding: 20px 30px 0 0;">
  13. <div class="layui-form-item">
  14. <label class="layui-form-label reqRed">专区名称:</label>
  15. <div class="layui-input-inline">
  16. <input type="text" name="name" lay-vertype="tips" autocomplete="off" class="layui-input">
  17. </div>
  18. </div>
  19. <!--活动专区封面图-->
  20. <div class="layui-form-item">
  21. <label class="layui-form-label reqRed">封面图:</label>
  22. <div class="layui-input-inline">
  23. <div class="like-upload-image">
  24. <div class="upload-image-elem"><a class="add-upload-image"> + 添加图片</a></div>
  25. </div>
  26. </div>
  27. <div class="layui-form-item">
  28. <label class="layui-form-label"></label>
  29. <label class=" layui-form-mid layui-word-aux">专区封面图。建议尺寸:宽100px*高100px,jpg,jpeg,png格式</label>
  30. </div>
  31. </div>
  32. <div class="layui-form-item">
  33. <label class="layui-form-label reqRed">专区描述:</label>
  34. <div class="layui-input-inline">
  35. <textarea name="synopsis" lay-verify="required" class="layui-textarea"></textarea>
  36. </div>
  37. </div>
  38. <div class="layui-form-item">
  39. <label class="layui-form-label">专区状态:</label>
  40. <div class="layui-input-inline">
  41. <input type="checkbox" lay-filter="disable" name="status" lay-skin="switch" lay-text="显示|隐藏">
  42. <!-- <div class=" layui-form-mid layui-word-aux">显示或者隐藏商品栏目</div>-->
  43. </div>
  44. </div>
  45. <div class="layui-form-item layui-hide">
  46. <input type="button" lay-submit lay-filter="add-submit" id="add-submit" value="确认">
  47. </div>
  48. </div>
  49. <script>
  50. layui.use(['form'], function(){
  51. var $ = layui.$
  52. ,form = layui.form;
  53. like.delUpload();
  54. $(document).on("click", ".add-upload-image", function () {
  55. like.imageUpload({
  56. limit: 1,
  57. field: "image",
  58. that: $(this)
  59. });
  60. });
  61. //删除图片/证书
  62. $(document).on('click', '.pay-img-del-x', function () {
  63. $(this).parent().siblings('input').val('');
  64. $(this).parent().siblings().css('display','block');
  65. $(this).parent().remove();
  66. });
  67. })
  68. </script>