if( parseInt($.browser.version) === 8 ){ }else{ var num = 'u576931'; //鍙湁dom瀛樺湪锛屾墠缁戝畾js if(document.querySelector('#u576931')){ window['indexVm' + num] = new Vue({ el: "#u576931", data: { indexStore: { }, indexShow: false }, watch: { infor: { handler: function(val, oldVal) { }, deep: true } }, methods: { pageHeight: function() { // 鑾峰彇娴忚鍣ㄩ珮搴 if ($.browser.msie) { return document.compatMode == "CSS1Compat" ? document.documentElement.clientHeight : document.body.clientHeight; } else { return self.innerHeight; } return $(window).height(); }, mouseover:function(e){ var ele = e.target; if(this.indexStore.effectsObj.type == 'scale'){ $(ele).css({ 'transform':'scale(' + this.indexStore.effectsObj.zoom + ')' }) } else if(this.indexStore.effectsObj.type == 'translate'){ if(this.indexStore.effectsObj.direction === 'up-down'){ $(ele).css({ 'transform':'translate(0,' +this.indexStore.effectsObj.distance + 'px)' }) } else{ $(ele).css({ 'transform':'translate(' +this.indexStore.effectsObj.distance + 'px,0)' }) } } else if(this.indexStore.effectsObj.type == 'rotate_new'){ $(ele).css({ 'transform':'rotate(' + this.indexStore.effectsObj.deg +'deg)' }) } else if(this.indexStore.effectsObj.type == 'border'){ $(ele).css({ 'borderStyle':this.indexStore.effectsObj.borderStyle, 'borderWidth':this.indexStore.effectsObj.borderWidth + 'px', 'borderColor':this.indexStore.effectsObj.borderColor, }); } }, mouseout:function(e){ var ele = e.target; if(this.indexStore.effectsObj.type == 'scale'){ $(ele).css({ 'transform':'scale(1)' }) } else if(this.indexStore.effectsObj.type == 'translate'){ $(ele).css({ 'transform':'translate(0,0)' }) } else if(this.indexStore.effectsObj.type == 'rotate_new'){ $(ele).css({ 'transform':'rotate(0deg)' }) } else if(this.indexStore.effectsObj.type == 'border'){ $(ele).css({ 'borderStyle':'not specified', 'borderWidth':0, 'borderColor':'', }); } } }, computed: { imgstyle: function() { return { width:this.indexStore.picture_width + 'px', height:this.indexStore.picture_height + 'px', borderRadius:this.indexStore.picture_border_radius + 'px', }; } }, created: function() { try{ var StorageVal = {"img_title":"鑻忓窞鍗氭磱鍖栧鑲′唤鏈夐檺鍏徃","allwidth":200,"allheight":200,"isNewPage":true,"picStyle":"0","picture_width":202,"picture_height":61,"picture_border_radius":0,"imgUrl":"https://img01.71360.com/file/read/www/M00/7E/44/wKj0iWEZvXeAByxJAAAgw9hJ3rw271.png","imgUrl_hover":"","effectNum":0,"animatedType":"stylejs","linksStyle":"self","linksUrl":"/","openStyle":"_self","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","time":300}}; if (StorageVal != null) { this.indexStore = StorageVal; } }catch(e){} }, ready: function() { if (typeof templet != "undefined") { templet.checkaction(this); } // 鎮诞 $('#u576931 div.graphic_position').hover(function () { $('#u576931 div.graphic_position img').eq(0).hide(); $('#u576931 div.graphic_position img').stop().eq(1).fadeIn(300); },function () { $('#u576931 div.graphic_position img').eq(1).hide(); $('#u576931 div.graphic_position img').stop().eq(0).fadeIn(300); }); } }); } } if( parseInt($.browser.version) === 8 ){ }else{ //鍙湁dom瀛樺湪锛屾墠缁戝畾js if(document.querySelector('#u546788')){ var num = 'u546788'; window['indexNavVm'+num] = new Vue({ el: '#u546788', data:{ editVal:{}, listArr:[], url:'', indexShow:true,//鍒ゆ柇娓叉煋index杩樻槸edit }, methods:{ iconFourStyle:function (fontSize,navIconPosition,tweLevelFontSize,color) { var liHeight = $('#u546788').find('.indexNav').children('.indexNavChild').height(); var liWidth = $('#u546788').find('.indexNav').children('li').width(); var dropDownMenuHeight = $('#u546788').find('.indexNavChild').children('ul').children('li').height(); var fontSize = parseInt(fontSize); if(navIconPosition == 'top-left'){ $('#u546788').find('.indexNav').children('li').children('i').css({ top:'3%', bottom:'', left:'7%', right:'', fontSize:fontSize+'px', color:color }); } else if(navIconPosition == 'top-center'){ $('#u546788').find('.indexNav').children('li').children('i').css({ top:'3%', bottom:'', left:(liWidth - fontSize)/2+'px', right:'', fontSize:fontSize+'px', color:color }); } else if(navIconPosition == 'top-right'){ $('#u546788').find('.indexNav').children('li').children('i').css({ top:'3%', bottom:'', left:'', right:'7%', fontSize:fontSize+'px', color:color }); } else if(navIconPosition == 'center-left'){ $('#u546788').find('.indexNav').children('li').children('i').css({ top:(liHeight - fontSize)/2+'px', bottom:'', left:'7%', right:'', fontSize:fontSize+'px', color:color }); } else if(navIconPosition == 'center-center'){ $('#u546788').find('.indexNav').children('li').children('i').css({ top:(liHeight - fontSize)/2+'px', bottom:'', left:(liWidth - fontSize)/2+'px', right:'', fontSize:fontSize+'px', color:color }); } else if(navIconPosition == 'center-right'){ $('#u546788').find('.indexNav').children('li').children('i').css({ top:(liHeight - fontSize)/2+'px', bottom:'', left:'', right:'7%', fontSize:fontSize+'px', color:color }); } else if(navIconPosition == 'bottom-left'){ $('#u546788').find('.indexNav').children('li').children('i').css({ top:'', bottom:'3%', left:'7%', right:'', fontSize:fontSize+'px', color:color }); } else if(navIconPosition == 'bottom-center'){ $('#u546788').find('.indexNav').children('li').children('i').css({ top:'', bottom:'3%', left:(liWidth - fontSize)/2+'px', right:'', fontSize:fontSize+'px', color:color }); } else if(navIconPosition == 'bottom-right'){ $('#u546788').find('.indexNav').children('li').children('i').css({ top:'68%', bottom:'3%', left:'', right:'7%', fontSize:fontSize+'px', color:color }); } //涓嬫媺鑿滃崟鏍峰紡 $('#u546788').find('.indexNavChild').children('ul').find('i').css({ top:(dropDownMenuHeight - fontSize)/2+'px', bottom:'', left:'7%', right:'', fontSize:fontSize+'px', color:color }); //鎵€鏈夋牱寮忓姞杞藉畬鎴愶紝瀵艰埅鍑虹幇 $('#u546788').find('.indexCustom').find('i').css('display','block'); $('#u546788').find('.menumenu').find('i').css('display','block'); }, hoverUlShow:function () { var that = this; $('#u546788').find('.indexNav').on('mouseenter','.indexNavChild',function () { var page = $(this).attr('data-page'); if(that.editVal.full_screen_drop_down){ if(that.editVal.full_screen_drop_down.full_screen_drop_down && that.editVal.full_screen_drop_down.full_screen_drop_down.indexOf(page) > -1){ that.full_screen_drop_down($(this)); } else{ $(this).children('ul').stop(false,false).slideDown(150); } } else{ $(this).children('ul').stop(false,false).slideDown(150); } }); $('#u546788').find('.indexNav').on('mouseleave','.indexNavChild',function () { $(this).children('ul').stop(false,false).slideUp(150); var drop = $(this).find('.full_screen_drop_down'); if(drop.length > 0){ drop.removeClass('full_screen_drop_down_clone'); } }) }, full_screen_drop_down:function(li){ var w = $(window).width(); var dom = li.find('.full_screen_drop_down'); var l = li.offset().left; dom.css({ width:w + 'px', 'margin-left':l * -1 + 'px' }) dom.addClass('full_screen_drop_down_clone'); } }, created:function () { //鍒濆鍖栨暟鎹簮璧 try{ var style = JSON.stringify({"navCustomStyle":true,"styleId":"nav1","styleChoicIndex":"","style":{"navBackground":"#f00","navLiBackground":"rgba(255, 102, 0, 0)","navColor":"rgba(255, 255, 255, 1)","navBorderStyle":"none","navBorderColor":"#f00","navFontFamily":"Microsoft YaHei","navFontWeight":"normal","navFontAlign":"center","navOneWidth":120,"navWidth":880,"navHeight":74,"navFontSize":16,"navBorderRadius":0,"navMarginRight":0},"navSelectStyle":{"navSelectBackground":"rgba(123, 100, 100, 0)","navSelectColor":"rgba(255, 102, 0, 1)","navSelectFontSize":16},"dropDownStyle":{"dropDownBackground":"rgba(0, 0, 0, 1)","dropDownColor":"rgba(255, 255, 255, 1)","dropDownHeight":40,"dropDownFontSize":14,"dropDownBackgroundImage":"","isRepeat":"repeat","opacity":0.6,"navMarginTopHeight":10,"navMarginBottomHeight":10},"dropDownSelectStyle":{"dropDownSelectBackground":"rgba(255, 102, 0, 1)","dropDownSelectColor":"rgba(255, 255, 255, 1)","dropDownSelectFontSize":14,"height":40,"opacity":0.5},"icon":{"position":"center-left","fontSize":16,"dropDownFontSize":12,"childIcon":"fa-anchor","color":"#f00"},"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"},"full_screen_drop_down":{"height":300,"background":"#f00","background_globalColor":"","col":6,"col_width":170,"class_title":{"color":"#fff","color_globalColor":"","select_color":"#666","select_color_globalColor":"","fontSize":16,"fontWeight":"normal","fontStyle":"normal","textDecoration":"none"},"list_title":{"num":6,"color":"#fff","color_globalColor":"","select_color":"#333","select_color_globalColor":"","fontSize":16,"fontWeight":"normal","fontStyle":"normal","textDecoration":"none"},"full_screen_drop_down":[]}}); if(style){ this.editVal = JSON.parse(style); } var listArr = JSON.stringify(); if(listArr){ this.listArr = JSON.parse(listArr); console.log('瀵艰埅鑿滃崟',this.listArr) } } catch(err){} //鑾峰彇閾炬帴锛屽尮閰?鍒嗗壊瀛楃涓 var urlId = window.location.pathname; }, ready:function () { var fontSize = this.editVal.icon.fontSize; var navIconPosition = this.editVal.icon.position; var tweLevelFontSize = this.editVal.icon.dropDownFontSize; var color = this.editVal.icon.color; this.iconFourStyle(fontSize,navIconPosition,tweLevelFontSize,color); this.hoverUlShow(); if(typeof templet!="undefined") { templet.checkaction(this); } } }); } } //