'; } let href = "megvii_research/academic_representatives?learning=1&learning_id=" + item.id; if (type === 1) { // 學術論文 href = ASTATIC_URL + item.files; } else if (type == 2) { // 學術人物 } return '' + img; '' + item.title + "" + '' + (item.description || item.files_name) + "" + tags; '' + item.release_time + ""; } window.addEventListener("scroll", function () { if ( $(window).height() * 0.6 + $(document).scrollTop() >= $(".megvii_research-organization-container").offset().top ) { $( ".megvii_research-organization-container .img-container .left" ).addClass("show"); $( ".megvii_research-organization-container .img-container .right" ).addClass("show"); } if ( $(window).height() * 0.6 + $(document).scrollTop() >= $(".megvii_research-advantage-container").offset().top ) { $( ".megvii_research-advantage-container .advantage-content .advantage" ).addClass("show"); } }); window.addEventListener("load", function () { // fetchData(1, 1); }); // 學術動態款式锂电池保护板生产厂家 因爲PC耑三個tab根本款式不郃,他們寫PC真個時辰公用的一套款式,挪動耑款式不不郃 所以對炤費事。需求用js去控制 if (getViewport().width < 768) { function chooseStyle() { if (location.href.includes('?learning=1') || location.href.includes('/learning/1') || (location.pathname === '/megvii_research/' && location.search === '') || (location.pathname === '/megvii_research' && location.search === '') ) { $('.megvii_research-news-contianer .news-wrap .news-item .content .title').css({ margin: 0, padding: '0 0 0 .17rem', color: 'rgba(14,87,162,1)', fontSize: '.12rem', lineHeight: '.17rem' }) $('.megvii_research-news-contianer .news-wrap .news-item .date').css({ top: '.16rem', right: '.08rem', left: 'initial' }) $('.megvii_research-news-contianer .news-wrap .news-item .content').css({ margin: '.16rem .53rem .16rem .08rem', width: 'calc(100% - .61rem)' }) $('.megvii_research-news-contianer .news-wrap .news-item .content .desc').css({ fontSize: '.1rem', lineHeight: '.14rem', margin: '.08rem 0 .24rem' }) } } chooseStyle() }