|
@@ -305,8 +305,6 @@ $(function () {
|
|
$('.objList div').eq(index).find('span').addClass('active');
|
|
$('.objList div').eq(index).find('span').addClass('active');
|
|
}
|
|
}
|
|
$('.productionType ol').html('<li class="active" data-id=" ">不限</li>')
|
|
$('.productionType ol').html('<li class="active" data-id=" ">不限</li>')
|
|
- $('.productionType ol').css({'height':'50px','line-height':'50px'});
|
|
|
|
- $('.productionType p').css({'height':'50px','line-height':'50px'});
|
|
|
|
$('.preFirst').show();
|
|
$('.preFirst').show();
|
|
$('.preFirst').html($(this).text());
|
|
$('.preFirst').html($(this).text());
|
|
$('.next').css('display', 'none')
|
|
$('.next').css('display', 'none')
|
|
@@ -315,6 +313,7 @@ $(function () {
|
|
dataList.secondId='';
|
|
dataList.secondId='';
|
|
dataList.module=$(this).attr('data-module');
|
|
dataList.module=$(this).attr('data-module');
|
|
loadDate();
|
|
loadDate();
|
|
|
|
+ secH();
|
|
})
|
|
})
|
|
$('.objList div span').on('click', function () {
|
|
$('.objList div span').on('click', function () {
|
|
let secondTxt = [],
|
|
let secondTxt = [],
|
|
@@ -349,20 +348,25 @@ $(function () {
|
|
scondHtml = ['<li>不限</li>'];
|
|
scondHtml = ['<li>不限</li>'];
|
|
}
|
|
}
|
|
$('.productionType ol').html(scondHtml);
|
|
$('.productionType ol').html(scondHtml);
|
|
- let proH = $('.productionType ol').height();
|
|
|
|
- if(proH>50){
|
|
|
|
- $('.productionType p').css({'height':proH,'line-height':proH+'px'})
|
|
|
|
- }else{
|
|
|
|
- $('.productionType p').css({'height':'50px','line-height':'50px'})
|
|
|
|
- }
|
|
|
|
let txt = $(this).text();
|
|
let txt = $(this).text();
|
|
$('.onSelect .preFirst').css('display', 'block').html(`
|
|
$('.onSelect .preFirst').css('display', 'block').html(`
|
|
<span>${txt}</span>
|
|
<span>${txt}</span>
|
|
`)
|
|
`)
|
|
loadDate();
|
|
loadDate();
|
|
secSelect();
|
|
secSelect();
|
|
|
|
+ secH();
|
|
});
|
|
});
|
|
secSelect();
|
|
secSelect();
|
|
|
|
+ secH()
|
|
|
|
+ }
|
|
|
|
+ //二级菜单高度处理
|
|
|
|
+ function secH(){
|
|
|
|
+ let proH = $('.productionType ol').height();
|
|
|
|
+ if(proH>50){
|
|
|
|
+ $('.productionType p').css({'height':proH,'line-height':proH+'px'})
|
|
|
|
+ }else{
|
|
|
|
+ $('.productionType p').css({'height':'50px','line-height':'50px'})
|
|
|
|
+ }
|
|
}
|
|
}
|
|
function secSelect(){
|
|
function secSelect(){
|
|
$('.productionType ol li').on('click', function () {
|
|
$('.productionType ol li').on('click', function () {
|