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":"
\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) } } }); } } if('' == '0' || '1' == '0'){ //鏍峰紡1 var ad = new AdMove("u439453"); $('#u439453').css('zIndex','999999'); var times = '' || '10' ad.Run(parseInt(times)); //鍏抽棴鐐瑰嚮浜嬩欢 $("#u439453 #open_page").on('click',function(){ $('#u439453').css("display","none"); }); }; if( parseInt($.browser.version) === 8 ){ console.log('ie8') }else { //鍙湁dom瀛樺湪锛屾墠缁戝畾js if (document.querySelector('#u439453')) { ;var num = 'u439453'; window['indexVm' + num] = new Vue({ el: "#u439453", data: { indexStore: {}, indexShow: false, costomDatas: {} }, watch: { costomDatas: { handler: function (val, oldVal) { console.log('test'); }, deep: true } }, computed: { div: function () { return { overflowX: this.indexStore.w_scrollX_type, overflowY: this.indexStore.w_scrollY_type, wordWrap: this.indexStore.w_word_type }; } }, methods: {}, created: function () { try { var StorageVal = {"w_scrollX_type":"hidden","w_scrollY_type":"hidden","w_word_type":"normal","contents":"
\n\t \n
","msg":"","custom_pos_style":"1","is_hover":"0","custom_pos_style_left":0,"custom_pos_style_top":0,"custom_pos_style_rate":10,"hover_color":"#000","hover_bc_color":"#fff","width":218,"height":65,"fixedLeft":0,"fixedTop":0,"openShow":false,"isShows":false,"editBc":"#fff","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; } } catch (e) { } // 鍏煎 if (!this.indexStore.is_hover) { this.indexStore.is_hover = '0'; this.indexStore.hover_color = "#000"; this.indexStore.hover_bc_color = "#fff"; } console.log('index', this.indexStore.custom_pos_style); //debugger; if (this.indexStore.custom_pos_style == '0') { //鏍峰紡1 } else if (this.indexStore.custom_pos_style == '1') { //鏍峰紡2 } else if (this.indexStore.custom_pos_style == '2') { //鏍峰紡3 try { $('#u439453').css({ 'position': 'fixed', 'zIndex': '999999' }); } catch (e) { } ; } //鎸備欢鍔ㄧ敾 try { $.allWidgetAnimate(this, $('#u439453')); } catch (e) { } ; }, ready: function () { if (this.indexStore.custom_pos_style === '2') { var t = setTimeout(function () { try { $("#u439453").draggable(); $("#u439453").draggable("disable"); } catch (e) { } clearTimeout(t); }, 500); } else if (this.indexStore.custom_pos_style === '1') { setTimeout(function () { try { $("#u439453").draggable("enable"); } catch (e) { } }, 100); } if (typeof templet != "undefined") { templet.checkaction(this); } // 鍏煎 if (!this.indexStore.is_hover) { this.indexStore.is_hover = '0'; this.indexStore.hover_color = "#000"; this.indexStore.hover_bc_color = "#fff"; } } }); } } //