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://img03.71360.com/w3/9op470/20231212/674e75b983dadf36e56d11a368f4d13e.jpg","link":"","alt":"","openMode":"_blank"},{"src":"https://img03.71360.com/file/read/www2/M00/54/34/rBwBEmRsaO6AJjTnAAdu716H2Zw035.jpg","link":"","alt":"","openMode":"_blank"},{"src":"https://img03.71360.com/file/read/www2/M00/99/AD/rBwBEmTKELqACv2XAAt1dUtBWCQ702.jpg","link":"product-item-30.html","alt":"澶у姛鐜囩洿娴佸揩鍏呮々","openMode":"_blank"},{"src":"https://img03.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":"
\n\t\n\n
\n \"鍏抽棴\"\n
\n
","codeCss":"#u357538{\nposition:inherit!important;\n}\n#u494242{\n\t\t position: fixed!important;\n left: 0!important;\n top: 0!important;\n width: 100%!important;\n height: 100%!important;\n background-color: rgba(0,0,0,0.8)!important;\n z-index: 96999999999!important;\n\t\tdisplay:none!important;\n}\n.RCD_MV{\nposition: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n}\n.shut{\nposition:absolute;\nright:-25px;\n top:-25px;\n cursor: pointer;opacity: .8;\n}\n.shut:hover{\ncursor: pointer;opacity: 1;\n}\n.shut img{\n width:25px;\n\n}\n\n\n","codeJs":"var oDiv=document.getElementById(\"RCD_mp4\");\nvar oBg=document.getElementById(\"u494242\");\nvar aOPen=document.getElementsByClassName(\"open\")[0];\nvar oImg=oDiv.getElementsByClassName(\"shut\")[0];\nvar oVid=oDiv.getElementsByTagName(\"video\")[0];\n\noVid.pause();\n\noImg.onclick=function(){\noBg.style=\"display:none!important;\"\n oVid.pause();\n};\naOPen.onclick=function(){\noBg.style=\"display:block!important;\"\n oVid.play();\n}\n","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"}}; if (StorageVal != null) { this.indexStore = StorageVal; } //console.log('ie8',JSON.stringify(this.indexStore)) } catch (e) { } }, ready: function () { var _this = this; try { (function () { if (!_this.indexStore.codeJs) { return; } eval(_this.indexStore.codeJs) })(); } catch (e) { console.log('楂樼骇浠g爜JS閮ㄥ垎鎶ラ敊', e) } } }); } } //