|
@@ -149,14 +149,27 @@ $(function () {
|
|
|
})
|
|
|
theArrs.push(`
|
|
|
</ul>
|
|
|
- ${item.children.length>7?'<a href="javascript:void(0);" class="more">更多+</a>':''}
|
|
|
+
|
|
|
</div>
|
|
|
</div>
|
|
|
`)
|
|
|
}
|
|
|
|
|
|
})
|
|
|
+
|
|
|
$('.serviceList').html(theArrs.join(''));
|
|
|
+ let ind = $('.serviceList .industry'),
|
|
|
+ ulW = $('.industryList ul').width();
|
|
|
+ for(let i=0;i<ind.length;i++){
|
|
|
+ let thisUl=ind[i],totalW=0,
|
|
|
+ othLis = $(thisUl).find('.industryList ul li');
|
|
|
+ for(let j =0;j<othLis.length;j++){
|
|
|
+ totalW+=othLis[j].offsetWidth;
|
|
|
+ }
|
|
|
+ if(totalW>ulW){
|
|
|
+ $(thisUl).find('.industryList').append(`<a href="javascript:void(0);" class="more">更多+</a>`)
|
|
|
+ }
|
|
|
+ }
|
|
|
onSelect(thisdata);
|
|
|
jump();
|
|
|
$('footer').show();
|