12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394 |
- {layout name="layout2" /}
- <div class="layui-card layui-form" style="box-shadow:none;">
- <div class="layui-card-body">
- <div class="layui-form-item">
- <label for="name" class="layui-form-label"><span style="color:red;">*</span>续费套餐:</label>
- <div class="layui-input-block">
- <input type="text" name="name" id="name" lay-verType="tips" lay-verify="required" autocomplete="off"
- class="layui-input">
- </div>
- </div>
-
- <div class="layui-form-item">
- <label class="layui-form-label"><span style="color:red;">*</span>套餐图片:</label>
- <div class="layui-input-block">
- <div class="like-upload-image">
- <div class="upload-image-elem"><a class="add-upload-image"> + 添加图片</a></div>
- </div>
- </div>
- </div>
-
- <div class="layui-form-item">
- <label for="desc" class="layui-form-label">描述:</label>
- <div class="layui-input-block">
- <input type="text" name="desc" id="desc" autocomplete="off" class="layui-input">
- </div>
- </div>
-
- <div class="layui-form-item">
- <label class="layui-form-label">类型:</label>
- <div class="layui-input-block">
- <select name="type_id" lay-verify="required">
- <option value=""></option>
- <option value="0">包月</option>
- <option value="1">按量付费</option>
- </select>
- </div>
- </div>
-
- <div class="layui-form-item">
- <label for="price" class="layui-form-label"><span style="color:red;">*</span>价格:</label>
- <div class="layui-input-block" style="position:relative;">
- <span style="position:absolute;left:5px;top:8px;">¥</span>
- <input type="number" name="price" id="price" lay-verType="tips" lay-verify="required" autocomplete="off"
- class="layui-input" style="padding-left:20px;">
- </div>
- </div>
-
- <div class="layui-form-item">
- <label for="op_count" class="layui-form-label"><span style="color:red;">*</span>作用:</label>
- <div class="layui-input-block">
- <input type="number" name="op_count" value="1" id="op_count" lay-verType="tips" lay-verify="required"
- autocomplete="off" class="layui-input">
-
- <div class="layui-form-mid layui-word-aux">类型选择"包月",这里填赠送月份<br/>类型选择"按量付费",这里填赠送次数</div>
-
- </div>
- </div>
-
- <div class="layui-form-item">
- <label for="sort" class="layui-form-label">排序:</label>
- <div class="layui-input-block">
- <input type="number" name="sort" id="sort" value="0" autocomplete="off" class="layui-input">
- <div class="layui-form-mid layui-word-aux">排序值必须为整数;数值越大,越靠前</div>
- </div>
- </div>
-
- <div class="layui-form-item">
- <label class="layui-form-label">状态</label>
- <div class="layui-input-block">
- <input type="radio" name="status" value="0" title="禁用">
- <input type="radio" name="status" value="1" title="启用" checked>
- </div>
- </div>
-
- <div class="layui-form-item layui-hide">
- <input type="button" lay-submit lay-filter="addSubmit" id="addSubmit" value="确认">
- </div>
- </div>
- </div>
-
- <script>
- layui.use(function () {
-
- like.delUpload();
- $(document).on("click", ".add-upload-image", function () {
- like.imageUpload({
- limit: 1,
- field: "image",
- that: $(this)
- });
- })
-
- })
- </script>
|