You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
109 lines
4.4 KiB
109 lines
4.4 KiB
<?php /*a:2:{s:62:"E:\waibao\ahbcqz\server\app\shop\view\goods\category\edit.html";i:1679478874;s:50:"E:\waibao\ahbcqz\server\app\shop\view\layout2.html";i:1679478874;}*/ ?>
|
|
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<title><?php echo url(); ?></title>
|
|
<meta name="renderer" content="webkit">
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
|
|
<link rel="stylesheet" href="/static/lib/layui/css/layui.css?v=<?php echo htmlentities($front_version); ?>">
|
|
<link rel="stylesheet" href="/static/admin/css/app.css">
|
|
<link rel="stylesheet" href="/static/admin/css/like.css">
|
|
<script src="/static/lib/layui/layui.js?v=<?php echo htmlentities($front_version); ?>"></script>
|
|
<script src="/static/admin/js/app.js"></script>
|
|
</head>
|
|
<body style="background-color: #FFFFFF">
|
|
<?php echo $js_code; ?>
|
|
<script src="/static/admin/js/jquery.min.js"></script>
|
|
<script src="/static/admin/js/function.js"></script>
|
|
|
|
<style>
|
|
.layui-form-label {
|
|
color: #6a6f6c;
|
|
width: 140px;
|
|
}
|
|
.layui-input-block{
|
|
margin-left:170px;
|
|
}
|
|
.reqRed::before {
|
|
content: '*';
|
|
color: red;
|
|
}
|
|
</style>
|
|
<div class="layui-form" lay-filter="layuiadmin-form-category" id="layuiadmin-form-category" style="padding: 20px 30px 0 0;">
|
|
<input type="hidden" name="id" value="<?php echo htmlentities($detail['id']); ?>" />
|
|
<div class="layui-form-item">
|
|
<label class="layui-form-label reqRed">分类名称:</label>
|
|
<div class="layui-input-inline">
|
|
<input type="text" name="name" value="<?php echo htmlentities($detail['name']); ?>" lay-verify="required" lay-verType="tips" autocomplete="off" class="layui-input">
|
|
</div>
|
|
</div>
|
|
<div class="layui-form-item">
|
|
<label class="layui-form-label">分类图标:</label>
|
|
<div class="layui-input-inline">
|
|
<?php if($detail['image']): ?>
|
|
<div class="upload-image-div">
|
|
<img src="<?php echo htmlentities($detail['image']); ?>" alt="img">
|
|
<input type="hidden" name="image" value="<?php echo htmlentities($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>
|
|
<?php else: ?>
|
|
<div class="upload-image-elem"><a class="add-upload-image"> + 添加图片</a></div>
|
|
<?php endif; ?>
|
|
</div>
|
|
</div>
|
|
<div class="layui-form-item">
|
|
<label class="layui-form-label"></label>
|
|
<span style="color: #a3a3a3;font-size: 9px">建议尺寸:宽200像素*高200像素的jpg,jpeg,png图片</span>
|
|
</div>
|
|
<div class="layui-form-item">
|
|
<label class="layui-form-label">排序:</label>
|
|
<div class="layui-input-inline">
|
|
<input type="number" name="sort" value="<?php echo htmlentities($detail['sort']); ?>" class="layui-input">
|
|
</div>
|
|
</div>
|
|
<div class="layui-form-item">
|
|
<label class="layui-form-label"></label>
|
|
<span style="color: #a3a3a3;font-size: 9px">排序值必须为整数;数值越小,越靠前</span>
|
|
</div>
|
|
<div class="layui-form-item">
|
|
<label class="layui-form-label">显示状态:</label>
|
|
<div class="layui-input-inline">
|
|
<input type="radio" name="is_show" value="1" <?php if($detail['is_show'] == 1): ?>checked<?php endif; ?> title="显示">
|
|
<input type="radio" name="is_show" value="0" <?php if($detail['is_show'] == 0): ?>checked<?php endif; ?> title="不显示">
|
|
</div>
|
|
</div>
|
|
<div class="layui-form-item">
|
|
<label class="layui-form-label">分类描述:</label>
|
|
<div class="layui-input-inline">
|
|
<textarea name="remark" autocomplete="off" class="layui-textarea"><?php echo htmlentities($detail['remark']); ?></textarea>
|
|
</div>
|
|
</div>
|
|
<div class="layui-form-item layui-hide">
|
|
<input type="button" lay-submit lay-filter="edit-goods_category-submit" id="edit-goods_category-submit" value="确认">
|
|
</div>
|
|
</div>
|
|
<script>
|
|
layui.config({
|
|
version:"<?php echo htmlentities($front_version); ?>",
|
|
base: '/static/lib' //静态资源所在路径
|
|
}).use(['form'], function(){
|
|
var $ = layui.$
|
|
,form = layui.form;
|
|
|
|
// 图片上传
|
|
like.delUpload();
|
|
$(document).on("click", ".add-upload-image", function () {
|
|
like.imageUpload({
|
|
limit: 1,
|
|
field: "image",
|
|
that: $(this),
|
|
content: '/shop/file/lists?type=10'
|
|
});
|
|
})
|
|
})
|
|
</script>
|
|
</body>
|
|
</html>
|