if('' == '0' || '1' == '0'){ //样式1 var ad = new AdMove("u3664"); $('#u3664').css('zIndex','999999'); var times = '' || '10' ad.Run(parseInt(times)); //关闭点击事件 $("#u3664 #open_page").on('click',function(){ $('#u3664').css("display","none"); }); }; if( parseInt($.browser.version) === 8 ){ console.log('ie8') }else { //只有dom存在,才绑定js if (document.querySelector('#u3664')) { ;var num = 'u3664'; window['indexVm' + num] = new Vue({ el: "#u3664", 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\t\t智 · 为你 \n\t

\n\t

\n\t\t可租可售 \n\t

\n
\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":121,"height":60,"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 { $('#u3664').css({ 'position': 'fixed', 'zIndex': '999999' }); } catch (e) { } ; } //挂件动画 try { $.allWidgetAnimate(this, $('#u3664')); } catch (e) { } ; }, ready: function () { if (this.indexStore.custom_pos_style === '2') { var t = setTimeout(function () { try { $("#u3664").draggable(); $("#u3664").draggable("disable"); } catch (e) { } clearTimeout(t); }, 500); } else if (this.indexStore.custom_pos_style === '1') { setTimeout(function () { try { $("#u3664").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"; } } }); } } if( parseInt($.browser.version) === 8 ){ }else{ var num = 'u262064'; //只有dom存在,才绑定js if(document.querySelector('#u262064')){ window['indexVm' + num] = new Vue({ el: "#u262064", 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":"无锡151amjs澳金沙门科技有限公司","allwidth":200,"allheight":200,"isNewPage":true,"picStyle":0,"picture_width":150.15,"picture_height":39,"picture_border_radius":0,"imgUrl":"https://cmsimg01.71360.com/data/20190806/11u2184/public/2019080614572031797.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); } // 悬浮 $('#u262064 div.graphic_position').hover(function () { $('#u262064 div.graphic_position img').eq(0).hide(); $('#u262064 div.graphic_position img').stop().eq(1).fadeIn(300); },function () { $('#u262064 div.graphic_position img').eq(1).hide(); $('#u262064 div.graphic_position img').stop().eq(0).fadeIn(300); }); } }); } } if( parseInt($.browser.version) === 8 ){ console.log('ie8') }else{ //只有dom存在,才绑定js if(document.querySelector('#u636496')) { var num = 'u636496'; window['indexVm' + num] = new Vue({ el: "#u636496", data: { indexStore: {} }, watch: {}, computed: {}, methods: {}, created: function () { try { var StorageVal = {"allwidth":129,"allheight":42,"themes":"monokai","codeHtml":"","codeCss":".swiper-slide{margin-bottom:0!important;}\nbody{min-width:1200px;overflow:hidden;}\n.list_index_Prompt{font-size: 14px!important; margin-top: 20px!important;}\n.jjz5{ border: 1px solid #e7eaf1;height:50px;\n border-radius: 5px;\n box-shadow: 0 1px 3px rgba(0, 37, 55, 0.05);}\n.jjz00{ border: 1px solid #e7eaf1;height:80px;\n border-radius: 5px;\n box-shadow: 0 1px 3px rgba(0, 37, 55, 0.05);}","codeJs":"$(\"body\").prepend(\"\");\n$(\"div,p,a,span,strong\").css(\"word-break\",\"\");\n$(\".jjz5\").parent().css(\"overflow\",\"\");","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"},"styleId":2036}; 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('高级代码JS部分报错', e) } } }); } } if( parseInt($.browser.version) === 8 ){ }else{ //只有dom存在,才绑定js if(document.querySelector('#u733080')){ var num = 'u733080'; window['indexNavVm'+num] = new Vue({ el: '#u733080', data:{ editVal:{}, listArr:[], url:'', indexShow:true,//判断渲染index还是edit }, methods:{ iconFourStyle:function (fontSize,navIconPosition,tweLevelFontSize,color) { var liHeight = $('#u733080').find('.indexNav').children('.indexNavChild').height(); var liWidth = $('#u733080').find('.indexNav').children('li').width(); var dropDownMenuHeight = $('#u733080').find('.indexNavChild').children('ul').children('li').height(); var fontSize = parseInt(fontSize); if(navIconPosition == 'top-left'){ $('#u733080').find('.indexNav').children('li').children('i').css({ top:'3%', bottom:'', left:'7%', right:'', fontSize:fontSize+'px', color:color }); } else if(navIconPosition == 'top-center'){ $('#u733080').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'){ $('#u733080').find('.indexNav').children('li').children('i').css({ top:'3%', bottom:'', left:'', right:'7%', fontSize:fontSize+'px', color:color }); } else if(navIconPosition == 'center-left'){ $('#u733080').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'){ $('#u733080').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'){ $('#u733080').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'){ $('#u733080').find('.indexNav').children('li').children('i').css({ top:'', bottom:'3%', left:'7%', right:'', fontSize:fontSize+'px', color:color }); } else if(navIconPosition == 'bottom-center'){ $('#u733080').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'){ $('#u733080').find('.indexNav').children('li').children('i').css({ top:'68%', bottom:'3%', left:'', right:'7%', fontSize:fontSize+'px', color:color }); } //下拉菜单样式 $('#u733080').find('.indexNavChild').children('ul').find('i').css({ top:(dropDownMenuHeight - fontSize)/2+'px', bottom:'', left:'7%', right:'', fontSize:fontSize+'px', color:color }); //所有样式加载完成,导航出现 $('#u733080').find('.indexCustom').find('i').css('display','block'); $('#u733080').find('.menumenu').find('i').css('display','block'); }, hoverUlShow:function () { var that = this; $('#u733080').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); } }); $('#u733080').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":1872,"styleChoicIndex":"","style":{"navBackground":"rgba(255,255,255,0)","navLiBackground":"rgba(255, 255, 255, 0)","navColor":"rgba(255, 255, 255, 1)","navBorderStyle":"none","navBorderColor":"rgba(155, 160, 174, 1)","navFontFamily":"Microsoft YaHei","navFontWeight":"normal","navFontAlign":"center","navOneWidth":100,"navWidth":822,"navHeight":65,"navFontSize":14,"navBorderRadius":0,"navMarginRight":0},"navSelectStyle":{"navSelectBackground":"rgba(245, 245, 245, 0)","navSelectColor":"rgba(52, 150, 255, 1)","navSelectFontSize":14},"dropDownStyle":{"dropDownBackground":"rgba(30, 35, 41, 1)","dropDownColor":"rgba(245, 242, 242, 0.98)","dropDownHeight":38,"dropDownFontSize":14,"dropDownBackgroundImage":"","isRepeat":"repeat","opacity":0.95,"navMarginTopHeight":0,"navMarginBottomHeight":0,"width":110,"textAlign":"center","dropDownColor_globalColor":""},"dropDownSelectStyle":{"dropDownSelectBackground":"rgba(255, 255, 255, 1)","dropDownSelectColor":"rgba(52, 150, 255, 1)","dropDownSelectFontSize":14,"height":38,"opacity":0,"dropDownSelectColor_globalColor":""},"icon":{"position":"center-left","fontSize":16,"dropDownFontSize":12,"childIcon":"","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},"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); } } }); } } //