var w001_index_header_12 = {}; // 鍒ゆ柇鏄惁鏀惧緱涓 w001_index_header_12.nav = { change(el){ if(el.hasClass('hide-active')){ $('.w001_index_header_12').addClass('pc_app') }else{ $('.w001_index_header_12').removeClass('pc_app') } } }; w001_index_header_12.search = { show(el){ ly2.popup2.show(el, '/search-popup', {}, { callback(res){ console.log(res) } }) }, }; var lyuiheader_nav_001 = {}; // 鍒ゆ柇瀵艰埅鏄惁鏀惧緱涓 lyuiheader_nav_001.nav_width = { compare(el){ let nav_width = 0; let auto_width = $(el).width(); $(el).find('.lyuiheader_nav_001-li').each(function(){ nav_width += $(this).outerWidth() }) if(nav_width > auto_width || window.innerWidth < 800){ $(el).addClass('hide-active') }else{ $(el).removeClass('hide-active') } }, go(){ let _thi = this; $('.lyuiheader_nav_001').each(function(e){ _thi.compare(this); }); } }; $$My.setTime(()=>{lyuiheader_nav_001.nav_width.go()}, 10);; ; ; ; var w004_about_us_about_3_num_bord = function(){ var el = $('#w004_about_us_about_3 .info .right .ul'); var parent = $('#w004_about_us_about_3 .info .right'); var n = 0; // 宸﹁竟璺 var lf = 60; // 鍙宠竟璺 var rt = 60; var sum = 0; var sum_wid = parent.width(); // 绉诲嚭鍘熸湁缁撴瀯 $("#w004_about_us_about_3 .li_f").remove(); $('#w004_about_us_about_3 .info .right .ul').removeClass('no_bord_rt'); // 鍘婚櫎宸﹁竟璺 // $('#w004_about_us_about_3 .info .right .ul').removeClass('no_pd_lt'); // 宸﹁竟璺濆浐瀹 el.each(function(i){ n++; let item = $(this); let width = item.width(); sum += width; let total = sum + (lf + rt)*(n-1) + lf; if( total > sum_wid){ item.prev().addClass('no_bord_rt') // item.addClass('no_pd_lt') if(i) item.before('
'); sum = width; n=1; } }); } $(document).ready(function(){ w004_about_us_about_3_num_bord() }) $(window).resize(function(){ w004_about_us_about_3_num_bord() });; ; ; ; $(document).on('click','#temp_wcb_footer_footer04_20_nav_app .dl .dt',function(){ var el = $(this); if(!el.next('.dd').find('a').size()){return} if(el.hasClass('cur')){ el.removeClass('cur') }else{ el.addClass('cur') } el.parent('.dl').find('.dd').slideToggle(500) el.parent('.dl').siblings().find('.dd').slideUp(500) }); ;