define(["/Assets/enp/v2/js/vendor/swiper-5.3.6.min.js"], function (s, pub) { //模块数据 var moduleData = { init: function () { var winW = $(window).width(), item = $('.ebg-module-solution-list-four .con ul li'), itemPadB = item.css('padding-bottom').replace('px', ''), liH1 = 0, liH2 = 0, liH3 = 0; item.each(function(i, e) { if(winW > 1200) { if(i === 0) { liH1 = $(e).innerHeight(); } if(i === 3) { liH2 = $(e).innerHeight(); } }else if(winW > 750) { if(i === 0) { liH1 = $(e).innerHeight(); } if(i === 2) { liH2 = $(e).innerHeight(); } }else if(winW <= 750) { if(i === 0) { liH1 = $(e).innerHeight(); } if(i === 1) { liH2 = $(e).innerHeight(); } if(i === 2) { liH3 = $(e).innerHeight() - 10; } } }); if(item.length > 6) { $('.ebg-module-solution-list-four .con').height(liH1 + liH2 + liH3 - itemPadB); } var tag = 0; $('.ebg-module-solution-list-four .more-btn a').on('click', function() { if(!$(this).attr('data-url')){ if(tag == 0) { $('.ebg-module-solution-list-four .con').height($('.ebg-module-solution-list-four .con ul').height()); $(this).addClass('active'); tag = 1; }else { $('.ebg-module-solution-list-four .con').height(liH1 + liH2 + liH3 - itemPadB); $(this).removeClass('active'); tag = 0; } }else { window.open($(this).attr('data-url')); } }) } } return moduleData; });