截流自动化的商城平台
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.

add.html 3.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. {layout name="layout2" /}
  2. <div class="layui-card layui-form" style="box-shadow:none;">
  3. <div class="layui-card-body">
  4. <div class="layui-form-item">
  5. <label for="name" class="layui-form-label"><span style="color:red;">*</span>续费套餐:</label>
  6. <div class="layui-input-block">
  7. <input type="text" name="name" id="name" lay-verType="tips" lay-verify="required" autocomplete="off"
  8. class="layui-input">
  9. </div>
  10. </div>
  11. <div class="layui-form-item">
  12. <label class="layui-form-label"><span style="color:red;">*</span>套餐图片:</label>
  13. <div class="layui-input-block">
  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>
  19. <div class="layui-form-item">
  20. <label for="desc" class="layui-form-label">描述:</label>
  21. <div class="layui-input-block">
  22. <input type="text" name="desc" id="desc" autocomplete="off" class="layui-input">
  23. </div>
  24. </div>
  25. <div class="layui-form-item">
  26. <label class="layui-form-label">类型</label>
  27. <div class="layui-input-block">
  28. <select name="type_id" lay-verify="required">
  29. <option value=""></option>
  30. <option value="0">包月</option>
  31. <option value="1">按量付费</option>
  32. </select>
  33. </div>
  34. </div>
  35. <div class="layui-form-item">
  36. <label for="price" class="layui-form-label"><span style="color:red;">*</span>价格:</label>
  37. <div class="layui-input-block">
  38. <input type="number" name="price" id="price" lay-verType="tips" lay-verify="required" autocomplete="off"
  39. class="layui-input">
  40. </div>
  41. </div>
  42. <div class="layui-form-item">
  43. <label for="op_count" class="layui-form-label"><span style="color:red;">*</span>月份数/操作数:</label>
  44. <div class="layui-input-block">
  45. <input type="number" name="op_count" value="1" id="op_count" lay-verType="tips" lay-verify="required"
  46. autocomplete="off" class="layui-input">
  47. </div>
  48. </div>
  49. <div class="layui-form-item">
  50. <label for="sort" class="layui-form-label">排序:</label>
  51. <div class="layui-input-block">
  52. <input type="number" name="sort" id="sort" value="0" autocomplete="off" class="layui-input">
  53. <div class="layui-form-mid layui-word-aux">排序值必须为整数;数值越大,越靠前</div>
  54. </div>
  55. </div>
  56. <div class="layui-form-item">
  57. <label class="layui-form-label">状态</label>
  58. <div class="layui-input-block">
  59. <input type="radio" name="status" value="0" title="禁用">
  60. <input type="radio" name="status" value="1" title="启用" checked>
  61. </div>
  62. </div>
  63. <div class="layui-form-item layui-hide">
  64. <input type="button" lay-submit lay-filter="addSubmit" id="addSubmit" value="确认">
  65. </div>
  66. </div>
  67. </div>
  68. <script>
  69. layui.use(function () {
  70. like.delUpload();
  71. $(document).on("click", ".add-upload-image", function () {
  72. like.imageUpload({
  73. limit: 1,
  74. field: "image",
  75. that: $(this)
  76. });
  77. })
  78. })
  79. </script>