123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102 |
- {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" value="{$detail.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">
- {if $detail.image}
- <div class="upload-image-div">
- <img src="{$detail.image}" alt="img">
- <input type="hidden" name="image" value="{$detail.image}">
- <div class="del-upload-btn">x</div>
- </div>
- <div class="upload-image-elem" style="display:none;"><a class="add-upload-image"> + 添加图片</a></div>
- {else}
- <div class="upload-image-elem"><a class="add-upload-image"> + 添加图片</a></div>
- {/if}
- </div>
- </div>
- </div>
-
-
- <div class="layui-form-item">
- <label for="name" class="layui-form-label">描述:</label>
- <div class="layui-input-block">
- <input type="text" name="desc" id="desc" autocomplete="off" class="layui-input" value="{$detail.desc}">
- </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" {eq name="detail.type_id" value="0"}selected{/eq}>包月</option>
- <option value="1" {eq name="detail.type_id" value="1"}selected{/eq}>按量付费</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">
- <input type="number" name="price" id="price" lay-verType="tips" lay-verify="required" autocomplete="off"
- class="layui-input" value="{$detail.price}">
- </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" id="op_count" lay-verType="tips" lay-verify="required"
- autocomplete="off" class="layui-input" value="{$detail.op_count}">
- </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="{$detail.sort}" 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="禁用" {eq name="detail.status" value="0"}checked{/eq}>
- <input type="radio" name="status" value="1" title="启用" {eq name="detail.status" value="1"}checked{/eq}>
- </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>
|