init: import production code mss.nahaichuan.com (exclude Runtime/Uploads/backups/logs)
这个提交包含在:
@@ -0,0 +1,452 @@
|
||||
<!--[1.1.96]-->
|
||||
<link rel="stylesheet" type="text/css" href="__PUBLIC__/Retail/css/goodsClassify.css"/>
|
||||
<link rel="stylesheet" href="__PUBLIC__/font/font/font.css">
|
||||
<link rel="stylesheet" href="__PUBLIC__/paper/css/css/font-awesome.min.css">
|
||||
<style>
|
||||
body, html {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
body{
|
||||
padding-bottom: 30px;
|
||||
}
|
||||
.goods_title {
|
||||
font-size: 14px;
|
||||
box-sizing: border-box;
|
||||
padding: 10px 20px;
|
||||
}
|
||||
|
||||
.goods_title_inner {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
border-left: 2px solid #232b42;
|
||||
box-sizing: border-box;
|
||||
padding-left: 10px;
|
||||
}
|
||||
|
||||
.gA_inner_left {
|
||||
width: 150px;
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
.layui-form {
|
||||
padding: 10px 20px;
|
||||
|
||||
}
|
||||
|
||||
.tree {
|
||||
min-height: 20px;
|
||||
padding: 19px;
|
||||
margin-bottom: 20px;
|
||||
background-color: white;
|
||||
border: 1px solid #999;
|
||||
-webkit-border-radius: 4px;
|
||||
-moz-border-radius: 4px;
|
||||
border-radius: 4px;
|
||||
-webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.05);
|
||||
-moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.05);
|
||||
box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.05)
|
||||
}
|
||||
|
||||
.tree li {
|
||||
list-style-type: none;
|
||||
margin: 0;
|
||||
padding: 10px 5px 0 35px;
|
||||
position: relative
|
||||
}
|
||||
|
||||
.tree li::before, .tree li::after {
|
||||
content: '';
|
||||
left: -20px;
|
||||
position: absolute;
|
||||
right: auto
|
||||
}
|
||||
|
||||
.tree li::before {
|
||||
border-left: 1px solid #999;
|
||||
bottom: 50px;
|
||||
height: 100%;
|
||||
top: 0;
|
||||
width: 1px
|
||||
}
|
||||
|
||||
.tree li::after {
|
||||
border-top: 1px solid #999;
|
||||
height: 20px;
|
||||
top: 25px;
|
||||
width: 50px
|
||||
}
|
||||
|
||||
.lispan {
|
||||
-moz-border-radius: 5px;
|
||||
-webkit-border-radius: 5px;
|
||||
border: 1px solid #999;
|
||||
border-radius: 5px;
|
||||
/*display:inline-block;*/
|
||||
padding: 3px 8px;
|
||||
text-decoration: none;
|
||||
width: 600px;
|
||||
}
|
||||
|
||||
.lispan > * {
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.lispan {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.tree li.parent_li > span {
|
||||
cursor: pointer
|
||||
}
|
||||
|
||||
.tree > ul > li::before, .tree > ul > li::after {
|
||||
border: 0;
|
||||
left: 25px;
|
||||
}
|
||||
|
||||
.tree li:last-child::before {
|
||||
height: 30px
|
||||
}
|
||||
|
||||
.tree li.parent_li > span:hover, .tree li.parent_li > span:hover + ul > li > span {
|
||||
background: #eee;
|
||||
border: 1px solid #94a0b4;
|
||||
color: #000
|
||||
}
|
||||
|
||||
.cate-chose {
|
||||
display: block;
|
||||
width: 100%;
|
||||
height: 40px;
|
||||
border: 1px solid #CCCCCC;
|
||||
border-radius: 5px;
|
||||
box-sizing: border-box;
|
||||
padding: 0 5px;
|
||||
}
|
||||
|
||||
p.tipss {
|
||||
text-align: center;
|
||||
margin: auto;
|
||||
font-size: 12px;
|
||||
color: #009688;
|
||||
margin-top: 10px;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.pagination a {
|
||||
border-color: #009688 !important;
|
||||
color: #009688 !important;
|
||||
}
|
||||
|
||||
.active > a {
|
||||
background-color: #009688 !important;
|
||||
border-color: #009688 !important;
|
||||
color: white !important;
|
||||
}
|
||||
|
||||
.label_checkbox {
|
||||
height: 18px;
|
||||
align-items: center;
|
||||
font-size: 14px;
|
||||
position: relative;
|
||||
cursor: pointer;
|
||||
line-height: 17px;
|
||||
}
|
||||
|
||||
.label_checkbox > input {
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
opacity: 0;
|
||||
margin-right: 2px;
|
||||
}
|
||||
|
||||
.label_checkbox > span {
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
border-radius: 2px;
|
||||
border: 2px solid #bbb;
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
cursor: pointer;
|
||||
transition: 0.5s;
|
||||
}
|
||||
|
||||
.label_checkbox > span::after {
|
||||
position: absolute;
|
||||
content: "";
|
||||
width: 6px;
|
||||
height: 11px;
|
||||
top: 2px;
|
||||
left: 5px;
|
||||
border-right: 3px solid;
|
||||
border-bottom: 3px solid;
|
||||
border-radius: 2px;
|
||||
border-color: transparent;
|
||||
transform: rotate(45deg);
|
||||
transition: 0.5s;
|
||||
}
|
||||
|
||||
.label_checkbox > input:checked + span:after {
|
||||
border-color: #009688;
|
||||
}
|
||||
|
||||
.label_checkbox > input:checked + span {
|
||||
border-color: #009688;
|
||||
}
|
||||
|
||||
.file_label {
|
||||
position: relative;
|
||||
cursor: pointer;
|
||||
font-weight: normal;
|
||||
}
|
||||
|
||||
.file_label:before {
|
||||
display: block;
|
||||
content: '+';
|
||||
font-size: 50px;
|
||||
color: #bbb;
|
||||
border: 1px solid #bbb;
|
||||
width: 60px;
|
||||
height: 60px;
|
||||
border-radius: 50%;
|
||||
text-align: center;
|
||||
line-height: 56px;
|
||||
}
|
||||
|
||||
.file_label > input {
|
||||
width: 100px;
|
||||
opacity: 0;
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
}
|
||||
|
||||
.file_label > img {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
background-color: white;
|
||||
border-radius: 50%;
|
||||
display: none;
|
||||
}
|
||||
|
||||
.is_recommend {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.class-title {
|
||||
width: 664px;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
height: 36px;
|
||||
}
|
||||
|
||||
.class-title > div {
|
||||
flex: 1;
|
||||
font-weight: bold;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.class-ul {
|
||||
width: 220px;
|
||||
box-sizing: border-box;
|
||||
border: 1px solid #ccc;
|
||||
position: relative;
|
||||
margin-bottom: 50px;
|
||||
}
|
||||
|
||||
.class-li {
|
||||
cursor: default;
|
||||
}
|
||||
.class-li:hover {
|
||||
background-color: rgba(0, 0, 0, 0.15);
|
||||
}
|
||||
|
||||
.class-left {
|
||||
width: 100%;
|
||||
box-sizing: border-box;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
line-height: 36px;
|
||||
padding: 0 20px;
|
||||
}
|
||||
|
||||
.class-child-2, .class-child-3 {
|
||||
display: none;
|
||||
left: 220px;
|
||||
position: absolute;
|
||||
top: -1px;
|
||||
}
|
||||
|
||||
.class-li-hover {
|
||||
background-color: rgba(0, 0, 0, 0.15)!important;
|
||||
}
|
||||
|
||||
.add-class {
|
||||
line-height: 36px;
|
||||
text-align: center;
|
||||
font-weight: bold;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.add-class:hover {
|
||||
background-color: #009688;
|
||||
color: white;
|
||||
}
|
||||
</style>
|
||||
<div class="container" style="width: 90%;">
|
||||
<div class="goods_title">
|
||||
<div class="goods_title_inner">
|
||||
商品类别
|
||||
</div>
|
||||
</div>
|
||||
<if condition="$global_store_jurisdiction && ($global_store_jurisdiction['data_export'] eq '2')">
|
||||
<else />
|
||||
<div class="goods_edit">
|
||||
<if condition="$authArr['goodsclass'] eq true">
|
||||
<div class="goods_edit_add" id="export">商品分类导出</div>
|
||||
</if>
|
||||
</div>
|
||||
</if>
|
||||
<hr>
|
||||
<div class="class-title">
|
||||
<div>一级分类-序号</div>
|
||||
<div>二级分类-序号</div>
|
||||
<div>三级分类-序号</div>
|
||||
</div>
|
||||
<hr>
|
||||
<div class="class-child-1">
|
||||
<ul id="rootUL" class="class-ul">
|
||||
<volist name="classAll" id="cl">
|
||||
<li class="class-li">
|
||||
<div class="class-parent">
|
||||
<div class="class-left">
|
||||
<span class="">{$cl['class_name']}</span>
|
||||
<span>{$cl['code']}</span>
|
||||
</div>
|
||||
</div>
|
||||
<if condition="$cl['class_2']">
|
||||
<div class="class-child-2">
|
||||
<ul class="class-ul">
|
||||
<volist name="cl['class_2']" id="cl_2">
|
||||
<li class="class-li" data-code="{$cl_2['code']}">
|
||||
<div class="class-parent">
|
||||
<div class="class-left">
|
||||
<span class="">{$cl_2['class_name']}</span>
|
||||
<span>{$cl_2['code']}</span>
|
||||
</div>
|
||||
</div>
|
||||
<if condition="$cl_2['class_3']">
|
||||
<div class="class-child-3">
|
||||
<ul class="class-ul">
|
||||
<volist name="cl_2['class_3']" id="cl_3">
|
||||
<li class="class-li" data-code="{$cl_3['code']}">
|
||||
<div class="class-parent">
|
||||
<div class="class-left">
|
||||
<span class="">{$cl_3['class_name']}</span>
|
||||
<span>{$cl_3['code']}</span>
|
||||
</div>
|
||||
</div>
|
||||
</li>
|
||||
</volist>
|
||||
</ul>
|
||||
</div>
|
||||
</if>
|
||||
|
||||
</li>
|
||||
</volist>
|
||||
</ul>
|
||||
</div>
|
||||
</if>
|
||||
</li>
|
||||
</volist>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<!--添加分类-->
|
||||
<div class="goodsAlert">
|
||||
<form id="create_cate">
|
||||
<input type="hidden" name="id" id="class_id" value="">
|
||||
<div class="gA_inner">
|
||||
<div class="gA_inner_left">上级分类:</div>
|
||||
<div class="gA_inner_right">
|
||||
<select name="pid" id="cate-chose" class="cate-chose">
|
||||
<option value="0">分类</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="gA_inner">
|
||||
<div class="gA_inner_left">编码:</div>
|
||||
<div class="gA_inner_right">
|
||||
<input type="" name="code" id="code" value="" placeholder="编码仅支持输入纯数字"
|
||||
onkeyup="value=value.replace(/[^\d]/g,'')"/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="gA_inner">
|
||||
<div class="gA_inner_left">名称:</div>
|
||||
<div class="gA_inner_right">
|
||||
<input type="" name="class_name" id="class_name" placeholder="请输入分类名称" value=""/>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<script type="text/javascript">
|
||||
layui.use('layer', function () {
|
||||
var layer = layui.layer;
|
||||
$(function () {
|
||||
$(window).ready(function () {
|
||||
$('.class-child-1>ul>.class-li').eq(0).addClass('class-li-hover');
|
||||
$('.class-child-1>ul>.class-li').eq(0).children('.class-child-2').fadeIn();
|
||||
$('.class-child-1>ul>.class-li').eq(0).find('.class-child-2>ul>.class-li').eq(0).addClass('class-li-hover');
|
||||
$('.class-child-1>ul>.class-li').eq(0).find('.class-child-2>ul>.class-li').eq(0).children('.class-child-3').fadeIn();
|
||||
$('.class-child-1>ul>.class-li').eq(0).find('.class-child-2>ul>.class-li').eq(0).find('.class-child-3>ul>.class-li').eq(0).addClass('class-li-hover');
|
||||
})
|
||||
|
||||
$('#rootUL').on('click', '.class-li', function (e) {
|
||||
var e = e || window.event;
|
||||
if (!$(this).hasClass('class-li-hover')) {
|
||||
if ($(this).parents('.class-child-3').length) {
|
||||
$(this).parents('.class-child-3').find('.class-li').removeClass('class-li-hover');
|
||||
} else if ($(this).parents('.class-child-2').length) {
|
||||
$(this).parents('.class-child-2').find('.class-li').removeClass('class-li-hover');
|
||||
} else {
|
||||
$('.class-li').removeClass('class-li-hover');
|
||||
}
|
||||
$(this).addClass('class-li-hover');
|
||||
if ($(this).eq(0).children('.class-child-2').length) {
|
||||
if ($(this).eq(0).children('.class-child-2').css('display') == 'none') {
|
||||
$('.class-child-2').fadeOut();
|
||||
$('.class-child-3').fadeOut();
|
||||
$(this).eq(0).children('.class-child-2').fadeIn();
|
||||
$(this).eq(0).find('.class-child-2>ul>.class-li').eq(0).children('.class-child-3').fadeIn();
|
||||
}
|
||||
$(this).eq(0).find('.class-child-2>ul>.class-li').eq(0).addClass('class-li-hover');
|
||||
$(this).eq(0).find('.class-child-2>ul>.class-li').eq(0).find('.class-child-3>ul>.class-li').eq(0).addClass('class-li-hover');
|
||||
} else if ($(this).eq(0).children('.class-child-3').length) {
|
||||
if ($(this).eq(0).children('.class-child-3').css('display') == 'none') {
|
||||
$('.class-child-3').fadeOut();
|
||||
$(this).eq(0).children('.class-child-3').fadeIn();
|
||||
}
|
||||
$(this).eq(0).find('.class-child-3>ul>.class-li').eq(0).addClass('class-li-hover');
|
||||
}
|
||||
}
|
||||
e.stopPropagation();
|
||||
})
|
||||
|
||||
//分类导出
|
||||
$('#export').click(function () {
|
||||
window.location.href = "{:U('exporttable/goodsclass')}"
|
||||
})
|
||||
})
|
||||
})
|
||||
</script>
|
||||
在新工单中引用
屏蔽一个用户