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

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  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" style="position:relative;">
  38. <span style="position:absolute;left:5px;top:8px;">¥</span>
  39. <input type="number" name="price" id="price" lay-verType="tips" lay-verify="required" autocomplete="off"
  40. class="layui-input" style="padding-left:20px;">
  41. </div>
  42. </div>
  43. <div class="layui-form-item">
  44. <label for="op_count" class="layui-form-label"><span style="color:red;">*</span>作用:</label>
  45. <div class="layui-input-block">
  46. <input type="number" name="op_count" value="1" id="op_count" lay-verType="tips" lay-verify="required"
  47. autocomplete="off" class="layui-input">
  48. <div class="layui-form-mid layui-word-aux">类型选择"包月",这里填赠送月份<br/>类型选择"按量付费",这里填赠送次数</div>
  49. </div>
  50. </div>
  51. <div class="layui-form-item">
  52. <label for="sort" class="layui-form-label">排序:</label>
  53. <div class="layui-input-block">
  54. <input type="number" name="sort" id="sort" value="0" autocomplete="off" class="layui-input">
  55. <div class="layui-form-mid layui-word-aux">排序值必须为整数;数值越大,越靠前</div>
  56. </div>
  57. </div>
  58. <div class="layui-form-item">
  59. <label class="layui-form-label">状态</label>
  60. <div class="layui-input-block">
  61. <input type="radio" name="status" value="0" title="禁用">
  62. <input type="radio" name="status" value="1" title="启用" checked>
  63. </div>
  64. </div>
  65. <div class="layui-form-item layui-hide">
  66. <input type="button" lay-submit lay-filter="addSubmit" id="addSubmit" value="确认">
  67. </div>
  68. </div>
  69. </div>
  70. <script>
  71. layui.use(function () {
  72. like.delUpload();
  73. $(document).on("click", ".add-upload-image", function () {
  74. like.imageUpload({
  75. limit: 1,
  76. field: "image",
  77. that: $(this)
  78. });
  79. })
  80. })
  81. </script>