截流自动化的商城平台
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

edit.html 2.5KB

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