/** 李鹏扬-v1.0.0 APP License By li.pengyang */ ;$(function () { $('#bs-example-navbar-collapse-1').children('li').removeClass(); $('#bs-example-navbar-collapse-1 ul').children().eq(4).attr('class', 'active'); console.log($('.company')); $('body').on('mouseover', '.swiper-slide', function () { var _this = $(this); _this.addClass('active'); _this.siblings().removeClass('active'); }); $('body').on('mouseout', '.swiper-slide', function () { var _this = $(this); _this.removeClass('active'); }); new Vue({ el: '#industry_investment', data: { maodian: window.location.hash }, mounted: function mounted() { this.initSwiper(); this.initSwiper2(); }, methods: { changeMd: function changeMd(type) { this.maodian = type; console.log(this.maodian); }, initSwiper: function initSwiper() { this.swiper = new Swiper('.swiper-container', { slidesPerView: 6, spaceBetween: 16, breakpoints: { 768: { slidesPerView: 3, spaceBetween: 5 } } }); }, initSwiper2: function initSwiper2() { this.swiper2 = new Swiper('.swiper-container2', { autoplay:true, speed:3000, pagination: '.swiper-pagination', slidesPerView: 7, slidesPerColumn: 3, paginationClickable: true, preventClicksPropagation : false, spaceBetween: 18, breakpoints: { 768: { slidesPerView: 3, slidesPerColumn: 3, spaceBetween: 8 } } }); } } }); }); function tzal(obj){ var name = obj.children[1].textContent; var detail = obj.children[2].textContent; $("#name").text(name); $("#detail").text(detail); }