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.
92 lines
3.9 KiB
92 lines
3.9 KiB
<?php /*a:2:{s:84:"D:\waibao\ahbcqz\server\app\admin\view\decoration\menu_decorate\category_layout.html";i:1679478874;s:51:"D:\waibao\ahbcqz\server\app\admin\view\layout1.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?v=<?php echo htmlentities($front_version); ?>">
|
|
<link rel="stylesheet" href="/static/admin/css/like.css?v=<?php echo htmlentities($front_version); ?>">
|
|
<script src="/static/lib/layui/layui.js?v=<?php echo htmlentities($front_version); ?>"></script>
|
|
<script src="/static/admin/js/app.js"></script>
|
|
</head>
|
|
|
|
<body>
|
|
<?php echo $js_code; ?>
|
|
<script src="/static/admin/js/jquery.min.js"></script>
|
|
<script src="/static/admin/js/function.js"></script>
|
|
|
|
|
|
<style>
|
|
.layui-table-cell {
|
|
height: auto;
|
|
}
|
|
.layui-form-radio * {
|
|
font-size: 14px;
|
|
}
|
|
</style>
|
|
<div class="wrapper">
|
|
<div class="layui-card">
|
|
<div class="layui-card-body">
|
|
<div class="layui-collapse like-layui-collapse" lay-accordion="" style="border:1px dashed #c4c4c4">
|
|
<div class="layui-colla-item">
|
|
<h2 class="layui-colla-title like-layui-colla-title" style="background-color: #fff">操作提示</h2>
|
|
<div class="layui-colla-content layui-show tips">
|
|
<p>*商品分类页可以选择布局,不同布局适应不同层级的商品分类。最多显示三级分类</p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="layui-form" style="margin-top: 15px;">
|
|
<div class="layui-form-item" >
|
|
<label class="layui-form-label" >分类页布局</label>
|
|
<?php foreach($category_layouts as $k => $v): ?>
|
|
<div class="layui-inline" style="margin-right: 15px;">
|
|
<img src="<?php echo htmlentities($v); ?>" style="width:220px;border: 5px solid #ccc" /><br />
|
|
<input type="radio" name="layout_no" value="<?php echo htmlentities($k); ?>" class="layui-input" title="<?php echo htmlentities($category_layouts_tips[$k]); ?>" <?php if($k == $layout_no): ?>checked<?php endif; ?> />
|
|
</div>
|
|
<?php endforeach; ?>
|
|
</div>
|
|
<div class="layui-form-item">
|
|
<label class="layui-form-label"></label>
|
|
<div>
|
|
<button class="layui-btn layui-btn-normal layui-btn-sm" lay-submit lay-filter="category_layout_submit">确定</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<script>
|
|
layui.config({
|
|
version:"<?php echo htmlentities($front_version); ?>",
|
|
base: '/static/lib/' //静态资源所在路径
|
|
}).use(['form'], function(){
|
|
var $ = layui.$
|
|
, form = layui.form;
|
|
|
|
// 监听提交
|
|
form.on('submit(category_layout_submit)', function(obj) {
|
|
like.ajax({
|
|
url:'<?php echo url("decoration.menu_decorate/categoryLayout"); ?>',
|
|
data: obj.field,
|
|
type:"post",
|
|
success:function(res)
|
|
{
|
|
if(res.code == 1)
|
|
{
|
|
layui.layer.msg(res.msg, {
|
|
offset: '15px'
|
|
, icon: 1
|
|
, time: 1000
|
|
});
|
|
}
|
|
}
|
|
});
|
|
});
|
|
});
|
|
</script>
|
|
</body>
|
|
</html>
|