if( parseInt($.browser.version) === 8 ){ }else{ if(document.querySelector('#u957906')) { var num = 'u957906'; window['indexBannerVm' + num] = new Vue({ el: '#u957906', data: { editVal: {}, listArr: { picList: [] }, index: 0 }, methods: { bannerEditSwiper: function () { var that = this; var element = $('#u957906').find('.swiper-container'); var page = $('#u957906').find('.swiper-pagination'); var nextButton = $('#u957906').find('.swiper-button-next'); var prevButton = $('#u957906').find('.swiper-button-prev'); var indexSwiper = new Swiper(element, { loop: this.editVal.bannerSet.animation === 'cube' ? false : true, direction: this.editVal.bannerSet.animation === 'coverflow' ? 'horizontal' : this.editVal.bannerSet.pattern, effect: this.editVal.bannerSet.animation, autoplay: this.editVal.bannerSet.time, speed: this.editVal.bannerSet.speed, autoplayDisableOnInteraction: false, grabCursor: this.editVal.bannerSet.animation === 'coverflow' ? true : false, centeredSlides: this.editVal.bannerSet.animation === 'coverflow' ? true : false, slidesPerView: this.editVal.bannerSet.animation === 'coverflow' ? 'auto' : 1, cube: { slideShadows: false, shadow: true, shadowOffset: 100, shadowScale: 0.6 }, coverflow: { rotate: 0, stretch: 0, depth: 200, modifier: this.editVal.bannerSet.slideModifier, slideShadows: true }, pagination: page, nextButton: nextButton, prevButton: prevButton, paginationClickable: true, observer: true, observeParents: true, //鏃舵椂鐩戝惉 onSlideChangeEnd: function (swiper) { that.index = swiper.realIndex; }, lazyLoading : this.editVal.is_lazy === 'true' ? true : false, }) $('#u957906').find('.thumbnail-page').children().hover( function () { var i = $(this).index(); //濡傛灉鏄?锛屼唬琛ㄦ兂璺冲線绗竴寮狅紝swiper鐗规€ф墍鏈塱ndex瑕佸姞1 that.index = i; indexSwiper.slideTo(i + 1, 1000, true); }, function () { } ) }, indexTextEffect: function (obj) { var log = function (msg) { return function () { } } $('code').each(function () { var $this = $(this); $this.text($this.html()); }) } }, created: function () { try { //鍒濆鍖栨暟鎹簮璧 //var style = ''; var style = '{"bannerSet":{"btn":"none","pagination":"block","time":3000,"speed":1000,"animation":"fade","pattern":"horizontal","width":1920,"height":800},"textEffect":{"color":"#666","fontSize":20,"in":"flash","out":"bounce","display":"none","left":0,"top":0},"btnStyle":{"leftIcon":"fa-angle-double-left","rightIcon":"fa-angle-double-right","background":"rgba(255, 255, 255, 0)","fontSize":16,"color":"rgba(204, 204, 204, 1)","width":50,"height":80},"pageStyle":{"background":"rgba(255, 255, 255, 1)","selectbackground":"rgba(28, 98, 176, 1)","width":18,"height":18,"margin":5,"borderColor":"rgba(51, 51, 51, 0)","textAlign":"center","type":"point","left":100,"bottom":10,"borderWidth":5,"borderRadius":9},"effectsObj":{"type":"","icon":"fa-adjust","iconSize":50,"iconColor":"#fff","changeSrc":"","borderStyle":"solid","borderWidth":1,"borderColor":"#ccc","deg":90,"zoom":1.5,"distance":20,"direction":"left-right"}}'; var listArr = {"picList":[{"src":"https://img01.71360.com/file/read/www2/M00/54/24/rBwBEmRsZAGABDqZAAamwftYlnY198.jpg","link":"https://mp.weixin.qq.com/s/yu-T_QIsqDrYzJ5pEnYTZA","alt":"","openMode":"_blank"},{"src":"https://img01.71360.com/file/read/www/M00/00/E7/rBBiSGOgLx2AYeQ-AA4pHLPs6LU644.jpg","link":"/p-about.html","alt":"娑﹁瘹杈惧厖鐢垫々","openMode":"_blank"},{"src":"https://img01.71360.com/file/read/www2/M00/54/34/rBwBEmRsaO6AJjTnAAdu716H2Zw035.jpg","link":"","alt":"","openMode":"_blank"},{"src":"https://img01.71360.com/file/read/www2/M00/54/49/rBwBEmRsb5mADFNNAAsH6BGMT0A421.jpg","link":"product-item-30.html","alt":"澶у姛鐜囩洿娴佸揩鍏呮々","openMode":"_blank"},{"src":"https://img01.71360.com/file/read/www2/M00/54/4A/rBwBEmRsb6SAHY5jAAWaNFKyDeA371.jpg","link":"/product-item-27.html","alt":"鍏呯數妗?,"openMode":"_blank"}],"textEffect":{"content":""}}; this.editVal = JSON.parse(style); this.listArr = JSON.parse(listArr); } catch (err) { } }, ready: function () { this.bannerEditSwiper() //鏂囧瓧鐗规晥缁戝畾 var textObj = { loop: true, in: { effect: this.editVal.textEffect.in, shuffle: false, reverse: false, sync: false }, out: { effect: this.editVal.textEffect.out, shuffle: true, reverse: false, sync: false } }; this.indexTextEffect(textObj); //棰滆壊淇敼 $('#u957906').find('.tlt').children('span').css('color', this.editVal.textEffect.color); //鏂囧瓧澶у皬 $('#u957906').find('.tlt').children('span').css('font-size', this.editVal.textEffect.fontSize + 'px'); if (typeof templet != "undefined") { templet.checkaction(this); } } }); } } if( parseInt($.browser.version) === 8 ){ console.log('ie8') }else{ //鍙湁dom瀛樺湪锛屾墠缁戝畾js if(document.querySelector('#u494242')) { var num = 'u494242'; window['indexVm' + num] = new Vue({ el: "#u494242", data: { indexStore: {} }, watch: {}, computed: {}, methods: {}, created: function () { try { var StorageVal = {"allwidth":643,"allheight":370,"themes":"monokai","codeHtml":"