加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
type_edit.html 1.74 KB
一键复制 编辑 原始数据 按行查看 历史
BaiSu 提交于 2023-03-02 21:49 . 修复bug
<div class="component-main" id="component_type_edit" style="display: none;">
<div class="title">
编辑分类
</div>
<form class="layui-form list-w" lay-filter="type_edit">
<input type="hidden" name="id" id="id" value="" />
<input type="hidden" name="fid" id="fid" value="0" />
<div class="list">
<span class="icon"><i class="layui-icon layui-icon-edit"></i></span>
<input type="text" class="text" name="name" id="name" lay-verify="required" placeholder="请输入分类名称" autocomplete="off">
</div>
<div class="list list-icons">
<span class="icon font_icon_show"><i class="fa fa-book"></i></span>
<input type="text" class="text" name="font_icon" id="font_icon" required="" lay-verify="required" placeholder="请输入分类图标" autocomplete="off" value="fa fa-book">
<div class="select_icons">选择图标</div>
</div>
<div class="list-type" id="categoryList">
<span class="hover" data-fid = "0">一级分类</span>
<?php foreach ($category_parent as $key => $category) { ?>
<span data-fid="<?php echo $category['id']; ?>"><?php echo $category['name']; ?></span>
<?php } ?>
</div>
<div class="list list-2">
<div class="li">
<span>权重:</span>
<input type="text" class="num" name="weight" min="0" max="999" value="0" required="" lay-verify="required|number" autocomplete="off">
</div>
<div class="li">
私有:
<input type="checkbox" name="property" id="property" lay-skin="switch" lay-text="是|否">
</div>
</div>
<div class="list">
<textarea name="description" id="description" placeholder="请输入分类描述(选填)"></textarea>
</div>
<div class="list">
<button lay-submit="" lay-filter="type_edit">保存</button>
</div>
</form>
</div>
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化