if( parseInt($.browser.version) === 8 ){ console.log('ie8') }else{ //只有dom存在,才绑定js if(document.querySelector('#u802818')) { var num = 'u802818'; window['indexVm' + num] = new Vue({ el: "#u802818", data: { indexStore: {} }, watch: {}, computed: {}, methods: {}, created: function () { try { var StorageVal = {"allwidth":200,"allheight":39,"themes":"monokai","codeHtml":"","codeCss":".swiper-slide{margin-bottom:0!important;}\n.headerBottomTime b{font-weight:400;}\n#productList .swiper-slide .border{width:100% !important;height:100% !important;}","codeJs":"$(\"body\").prepend(\"\");\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"},"styleId":2654}; 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{ var num = 'u287907'; //只有dom存在,才绑定js if(document.querySelector('#u287907')){ window['indexVm' + num] = new Vue({ el: "#u287907", 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":171,"picture_height":60,"picture_border_radius":0,"imgUrl":"https://img01.71360.com/w3/4ezg90/20240715/e1d40f6e276bfbbad47461ab93899cab.png","imgUrl_hover":"","effectNum":0,"animatedType":"stylejs","linksStyle":"self","linksUrl":"/","openStyle":"_self","is_lazy":"false","effectsObj":{"type":"","icon":"fa-adjust","iconSize":50,"iconColor":"#fff","iconColor_globalColor":"","changeSrc":"","borderStyle":"solid","borderWidth":1,"borderColor":"#ccc","borderColor_globalColor":"","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); } // 悬浮 $('#u287907 div.graphic_position').hover(function () { $('#u287907 div.graphic_position img').eq(0).hide(); $('#u287907 div.graphic_position img').stop().eq(1).fadeIn(300); },function () { $('#u287907 div.graphic_position img').eq(1).hide(); $('#u287907 div.graphic_position img').stop().eq(0).fadeIn(300); }); } }); } } //重设伪类,使字体强制生效 ;!(function redrawFontFace() { if ($.support.leadingWhitespace) return; $(window).one("load", function() { $('html').addClass('fix-ie-font-face'); setTimeout(function() { $('html').removeClass('fix-ie-font-face'); }, 10); }); }()); $(function () { init(); function init() { $(".iconBox").on("click", ".glyphicon", iconOnClick); } //点击图标显示类名 function iconOnClick(e) { var clsName = "." + $(this).attr("class").split(" ").join(" ."); $(".iconClass").val(clsName); } }); if( parseInt($.browser.version) === 8 ){ }else{ //只有dom存在,才绑定js if(document.querySelector('#u814421')){ var num = 'u814421'; window['indexVm' + num] = new Vue({ el: "#u814421", data: { indexStore : { }, indexShow: false, cnashu:'pro', urlValue:'' }, computed:{ isshowicons:function(){ return this.indexStore.search_oppen_style == 2 ? false : true; }, isshowbtnicon:function(){ var isClick = this.indexStore.isShowStyle3Icon || 'open'; return this.indexStore.search_oppen_style == 1 || (this.indexStore.search_oppen_style == 2 && isClick == 'open') ? true : false; }, isshowicon:function(){ return this.indexStore.search_is_show_icon == "block" ? true : false; }, isshowtxt:function(){ return this.indexStore.search_is_show_txt == "block" ? true : false; }, search1Div:function(){ return { position:'relative', width:this.indexStore.search_div_width + 'px', height:this.indexStore.search_div_height + 'px', backgroundColor:this.indexStore.search_div_height_bc, } }, search1Input:function(){ return { width:this.indexStore.search_width + 'px', height:this.indexStore.search_height + 'px', border:'0px', marginLeft:this.indexStore.search_margin_left + 'px', marginTop:this.indexStore.search_margin_top + 'px', paddingLeft:this.indexStore.search_padding_left + 'px', paddingRight:this.indexStore.search_padding_right + 'px', borderRadius:this.indexStore.search_radius + 'px', color:this.indexStore.search_input_color, fontSize:this.indexStore.search_input_fs + 'px', borderTopStyle:this.indexStore.searchs_border_top_style , borderTopColor:this.indexStore.searchs_border_top_color , borderTopWidth:this.indexStore.searchs_border_top_width + 'px', borderRightStyle:this.indexStore.searchs_border_right_style , borderRightColor:this.indexStore.searchs_border_right_color , borderRightWidth:this.indexStore.searchs_border_right_width + 'px', borderBottomStyle:this.indexStore.searchs_border_bottom_style , borderBottomColor:this.indexStore.searchs_border_bottom_color , borderBottomWidth:this.indexStore.searchs_border_bottom_width + 'px', borderLeftStyle:this.indexStore.searchs_border_left_style , borderLeftColor:this.indexStore.searchs_border_left_color , borderLeftWidth:this.indexStore.searchs_border_left_width + 'px', backgroundColor:this.indexStore.search_input_bg_color, } }, search1I:function(){ return { fontSize: this.indexStore.search_icon_width + 'px', color: this.indexStore.search_icon_color, display: 'inline-block', position: 'absolute', left: this.indexStore.search_absolute_left + 'px', top: this.indexStore.search_absolute_top + 'px', zIndex: 99, transform: 'rotate('+ this.indexStore.search_icon_rotate +'deg)' } }, search1Span:function(){ return { cursor: 'pointer', position: 'absolute', display: this.indexStore.search_is_show_txt, width: this.indexStore.search_text_width + 'px', height: this.indexStore.search_text_height + 'px', lineHeight: this.indexStore.search_text_height + 'px', color: this.indexStore.search_text_font_color, background: this.indexStore.search_text_color, fontSize: this.indexStore.search_text_fs + 'px', textAlign: this.indexStore.search_text_text_align, borderRadius: this.indexStore.search_text_border_radius + 'px', left: this.indexStore.search_text_pos_left + 'px', top: this.indexStore.search_text_pos_right + 'px' } }, search2Div:function(){ return { width: this.indexStore.search_btn_icon_div_width + 'px', height: this.indexStore.search_btn_icon_div_height + 'px', marginTop: this.indexStore.search_btn_icon_margin_top + 'px', marginRight: this.indexStore.search_btn_icon_margin_right + 'px', marginBottom: this.indexStore.search_btn_icon_margin_bottom + 'px', marginLeft: this.indexStore.search_btn_icon_margin_left + 'px', paddingTop: this.indexStore.search_btn_icon_padding_top + 'px', paddingRight: this.indexStore.search_btn_icon_padding_right + 'px', paddingBottom: this.indexStore.search_btn_icon_padding_bottom + 'px', paddingLeft: this.indexStore.search_btn_icon_padding_left + 'px' }; }, search2I:function(){ return { fontSize:this.indexStore.search_btn_icon_fs + 'px', color:this.indexStore.search_btn_icon_color, display:'block', transform: 'rotate('+ this.indexStore.search_iconbtn_rotate +'deg)' }; }, style5i:function(){ return { display: 'inline-block', width: 0, height: 0, border: '5px solid transparent', borderTopColor: '#000' }; } }, methods: { deleteSpace:function(str){ var arr1 = str.split(''); var str2 =''; arr1.forEach(function(val){ if (val === ' ') { }else{ str2 += val; } }); return str2; }, keyEnter: function() { this.url = location.host + '/search.html?keywords=' + this.urlValue; this.urlValue == '' this.urlValue = this.deleteSpace($('#u814421 .searchCon').val()); if (this.urlValue == '') { alert('输入查询内容' || '输入查询内容'); return; } document.location = '/search.html?keywords=' + this.urlValue + '&keywordstype=all'; }, keyEnter4: function() { this.url = location.host + '/search.html?keywords=' + this.urlValue; this.urlValue == '' this.urlValue = this.deleteSpace($('#u814421 .search4-input').val()); if (this.urlValue == '') { alert('输入查询内容' || '输入查询内容'); return; } document.location = '/search.html?keywords=' + this.urlValue + '&keywordstype=all'; }, keyEnters: function() { this.url = location.host + '/search.html?keywords=' + this.urlValue; this.urlValue == ''; this.urlValue = this.deleteSpace($('#u814421 .search3 .ivu-input').val()); if (this.urlValue === '') { alert('输入查询内容' || '输入查询内容'); return; } document.location = '/search.html?keywords=' + this.urlValue + '&keywordstype=' + this.cnashu; }, keyEnters5: function() { this.url = location.host + '/search.html?keywords=' + this.urlValue; this.urlValue == ''; this.urlValue = this.deleteSpace($('#u814421 input.search-center').val()); if (this.urlValue === '') { alert('输入查询内容' || '输入查询内容'); return; } document.location = '/search.html?keywords=' + this.urlValue + '&keywordstype=' + this.cnashu; }, txtchange:function(){ } }, watch:{ indexStore:{ handler: function (val, oldVal) { $('#u814421 input.ivu-input').css({ borderTopStyle:this.indexStore.searchs_border_top_style, borderTopColor:this.indexStore.searchs_border_top_color, borderTopWidth:this.indexStore.searchs_border_top_width, borderRightStyle:this.indexStore.searchs_border_right_style, borderRightColor:this.indexStore.searchs_border_right_color, borderRightWidth:this.indexStore.searchs_border_right_width, borderBottomStyle:this.indexStore.searchs_border_bottom_style, borderBottomColor:this.indexStore.searchs_border_bottom_color, borderBottomWidth:this.indexStore.searchs_border_bottom_width, borderLeftStyle:this.indexStore.searchs_border_left_style, borderLeftColor:this.indexStore.searchs_border_left_color, borderLeftWidth:this.indexStore.searchs_border_left_width, }); }, deep: true } }, created: function() { try{ var StorageVal = {"waringTitle":"\u8f93\u5165\u67e5\u8be2\u5185\u5bb9","allwidth":299,"allheight":92,"isShowStyle3Icon":"open","search4_bc":"#fff","search_div_height_bc":"rgba(255, 255, 255, 0)","search_x_show":"none","search_x_fs":12,"search_x_color":"#000","search_x_top":0,"search_x_right":0,"search_input_placeholder_color":"rgba(102, 102, 102, 1)","search_placeholder_fs":14,"icon_class":"icon iconfont icon-search5","search_oppen_style":1,"search_text_border_radius":14,"search_btn_icon_margin_top":0,"search_btn_icon_margin_right":0,"search_btn_icon_margin_bottom":20,"search_btn_icon_margin_left":164,"search_btn_icon_padding_top":0,"search_btn_icon_padding_right":0,"search_btn_icon_padding_bottom":0,"search_btn_icon_padding_left":120,"search_btn_icon_div_width":40,"search_btn_icon_div_height":40,"search_is_show_icon":"block","search_is_show_txt":"none","search_btn_icon_fs":24,"search_btn_icon_color":"#C40100","search_text_fs":13,"search_text_text_align":"center","search_text_pos_left":257,"search_text_pos_right":6,"search_width":280,"search_height":35,"search_div_width":308,"search_div_height":40,"search_input_fs":14,"search_padding_left":10,"search_padding_right":40,"search_placeholder":"\u8bf7\u8f93\u5165\u67e5\u8be2\u4fe1\u606f","search_absolute_left":256,"search_absolute_top":0,"search_radius":0,"search_text_width":26,"search_text_height":26,"search_text_color":"#C40100","search_text_font_color":"","search_icon_color":"#C40100","search_input_color":"rgba(0, 0, 0, 1)","is_show_icon":true,"show_icon":"","show_text":"","search_icon_width":24,"search_btn_text":0,"open_style":true,"search_margin_left":9,"search_margin_top":0,"styleId":3053,"searchs_border_top_style":"solid","searchs_border_top_color":"rgba(196, 1, 0, 1)","searchs_border_top_width":1,"searchs_border_right_style":"solid","searchs_border_right_color":"rgba(196, 1, 0, 1)","searchs_border_right_width":1,"searchs_border_bottom_style":"solid","searchs_border_bottom_color":"rgba(196, 1, 0, 1)","searchs_border_bottom_width":1,"searchs_border_left_style":"solid","searchs_border_left_color":"rgba(196, 1, 0, 1)","searchs_border_left_width":1,"search_input_bg_color":"rgba(255, 255, 255, 1)","widget_loading":"\u57fa\u7840","widget_loading_li":"\u65e0\u52a8\u753b","widget_animateds":"","widget_scroll_loading_checked":false,"widget_scroll_loading":false,"widget_scroll_loading_location_checked":false,"widget_scroll_loading_location":false,"widget_scroll_loading_location_height":0,"pic_iteration_checked2":false,"pic_iteration2":"no","animation_countsss":1,"animation_durasss":1,"animation_delaysss":0,"search5_select_width":20,"search5_select_height":20,"search5_select_fs":12,"search5_icon_width":20,"search5_icon_height":20,"search_iconbtn_rotate":0,"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"},"search_text_color_globalColor":"sys_color_primary","search_text_font_color_globalColor":"sys_color_word","search_icon_rotate":0,"search_icon_color_globalColor":"sys_color_primary","search_btn_icon_color_globalColor":"sys_color_primary"}; if (StorageVal != null) { this.indexStore = StorageVal; } }catch(e){} var arr = []; for (item in this.indexStore) { arr.push(this.indexStore[item]); } var _this = this; if(this.indexStore.search_oppen_style == '0'){ //样式1 $('#u814421 b').css('display','none'); }else if(this.indexStore.search_oppen_style == '1'){ //样式2 $('#u814421 .iconBtn i, #u814421 .search2 .btnClickShow b').off(); $('#u814421 .iconBtn i, #u814421 .search2 .btnClickShow b').on('click',function(){ $('#u814421 .search2').slideToggle("slow"); $('#u814421 .search2 .btnClickShow').slideToggle("slow"); var iShow = '' || 'block'; var spanShow = '' || 'none'; var bShow = '' || 'none'; if( iShow === 'block'){ $('#u814421 .search2 .btnClickShow i').slideToggle("slow"); } if( spanShow === 'block'){ $('#u814421 .search2 .btnClickShow span').slideToggle("slow"); } if( bShow === 'block'){ $('#u814421 .search2 .btnClickShow b').slideToggle("slow"); } }); }else if(this.indexStore.search_oppen_style == '2'){ //样式3 var isClick = this.indexStore.isShowStyle3Icon || 'open'; //是否开启图标显示 var $dom = $('#u814421 .search3'); if(isClick == 'open'){ $('#u814421 .iconBtn i').on('click',function(){ if($dom.hasClass('hasSelect')){ $dom.css('display','none').removeClass('hasSelect'); }else{ $dom.css('display','block').addClass('hasSelect'); } }); }else{ $dom.css('display','block'); $('#u814421 .iconBtn').css('display','none'); } }else if(this.indexStore.search_oppen_style == '3'){ //样式4 $('#u814421 div.search4-div, #u814421 input.search4-input').hover(function(){ $('#u814421 input.search4-input').show(); },function(){ $('#u814421 input.search4-input').hide(); }); }else if(this.indexStore.search_oppen_style == '4'){ $('#u814421 .search-left').off(); $('#u814421 .search-left').on('click',function () { $(this).toggleClass('select-visible'); $(this).find('.search-left-btm').fadeToggle(".3","linear"); }); var $li = $('#u814421 .search-left-btm ul li'); $.each( $li,function (index,value) { $(value).removeClass('checked-items'); $(value).on('click',function () { removeLiClass($li); $(this).addClass('checked-items'); _this.cnashu = $(this).data('type'); $('#u814421 #searchs5 .search-left-top span').text($(this).text()); }); }); // 移除其他li的class checked-items function removeLiClass(item) { $.each(item,function (index,value) { $(value).removeClass('checked-items'); }); } // 动态获取 下拉框选项 function getLi(){ var $ul = $('#u814421 .search-left-btm ul'); var $li = $('#u814421 .search-left-btm ul > li'); $.ajax({ url:location.host + '?m=mine&a=searchNav', success:function(val){ var val = JSON.parse(val); var i=0; $.each(val,function(item,index){ $li.eq(i).text(index).attr('data-type',item).css('display','block'); if(i == 0){ $('#u814421 #searchs5 .search-left-top span').text(index); $li.eq(i).addClass('checked-items') _this.cnashu = item; } i++; }); } }); } getLi(); } //挂件动画 try{ $.allWidgetAnimate(this,$('#u814421')); }catch(e){}; }, ready:function(){ if(typeof templet!="undefined"){ templet.checkaction(this); } //将搜索之后 返回时 输入框清空 $('#u814421 input').val(''); // 兼容placeholder searchCon // 客户端 样式3的边框样式 $('#u814421 input.ivu-input').css({ borderTopStyle:this.indexStore.searchs_border_top_style, borderTopColor:this.indexStore.searchs_border_top_color, borderTopWidth:this.indexStore.searchs_border_top_width, borderRightStyle:this.indexStore.searchs_border_right_style, borderRightColor:this.indexStore.searchs_border_right_color, borderRightWidth:this.indexStore.searchs_border_right_width, borderBottomStyle:this.indexStore.searchs_border_bottom_style, borderBottomColor:this.indexStore.searchs_border_bottom_color, borderBottomWidth:this.indexStore.searchs_border_bottom_width, borderLeftStyle:this.indexStore.searchs_border_left_style, borderLeftColor:this.indexStore.searchs_border_left_color, borderLeftWidth:this.indexStore.searchs_border_left_width, }); if(this.indexStore.search_oppen_style == 2){ } } }); } } //