if( parseInt($.browser.version) === 8 ){ }else{ //鍙湁dom瀛樺湪锛屾墠缁戝畾js if(document.querySelector('#u189972')){ var num = 'u189972'; window['indexNavVm'+num] = new Vue({ el: '#u189972', data:{ editVal:{}, listArr:[], url:'', indexShow:true,//鍒ゆ柇娓叉煋index杩樻槸edit }, methods:{ iconFourStyle:function (fontSize,navIconPosition,tweLevelFontSize,color) { var liHeight = $('#u189972').find('.indexNav').children('.indexNavChild').height(); var liWidth = $('#u189972').find('.indexNav').children('li').width(); var dropDownMenuHeight = $('#u189972').find('.indexNavChild').children('ul').children('li').height(); var fontSize = parseInt(fontSize); if(navIconPosition == 'top-left'){ $('#u189972').find('.indexNav').children('li').children('i').css({ top:'3%', bottom:'', left:'7%', right:'', fontSize:fontSize+'px', color:color }); } else if(navIconPosition == 'top-center'){ $('#u189972').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'){ $('#u189972').find('.indexNav').children('li').children('i').css({ top:'3%', bottom:'', left:'', right:'7%', fontSize:fontSize+'px', color:color }); } else if(navIconPosition == 'center-left'){ $('#u189972').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'){ $('#u189972').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'){ $('#u189972').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'){ $('#u189972').find('.indexNav').children('li').children('i').css({ top:'', bottom:'3%', left:'7%', right:'', fontSize:fontSize+'px', color:color }); } else if(navIconPosition == 'bottom-center'){ $('#u189972').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'){ $('#u189972').find('.indexNav').children('li').children('i').css({ top:'68%', bottom:'3%', left:'', right:'7%', fontSize:fontSize+'px', color:color }); } //涓嬫媺鑿滃崟鏍峰紡 $('#u189972').find('.indexNavChild').children('ul').find('i').css({ top:(dropDownMenuHeight - fontSize)/2+'px', bottom:'', left:'7%', right:'', fontSize:fontSize+'px', color:color }); //鎵€鏈夋牱寮忓姞杞藉畬鎴愶紝瀵艰埅鍑虹幇 $('#u189972').find('.indexCustom').find('i').css('display','block'); $('#u189972').find('.menumenu').find('i').css('display','block'); }, hoverUlShow:function () { var that = this; $('#u189972').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); } }); $('#u189972').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","navBackground_globalColor":"","navLiBackground":"rgba(255, 102, 0, 0)","navLiBackground_globalColor":"","navColor":"#333333","navColor_globalColor":"sys_color_word","navBorderStyle":"none","navBorderColor":"#f00","navBorderColor_globalColor":"","navFontFamily":"Microsoft YaHei","navFontWeight":"normal","navFontAlign":"center","navOneWidth":125,"navWidth":643,"navHeight":100,"navFontSize":18,"navBorderRadius":0,"navMarginRight":0},"navSelectStyle":{"navSelectBackground":"rgba(13, 183, 198, 0)","navSelectBackground_globalColor":"","navSelectColor":"rgba(0, 160, 233, 1)","navSelectColor_globalColor":"","navSelectFontSize":18},"dropDownStyle":{"dropDownBackground":"rgba(255, 255, 255, 1)","dropDownBackground_globalColor":"","dropDownColor":"#333333","dropDownColor_globalColor":"sys_color_word","dropDownHeight":35,"dropDownFontSize":15,"dropDownBackgroundImage":"","isRepeat":"no-repeat","opacity":1,"navMarginTopHeight":5,"navMarginBottomHeight":5,"width":125,"textAlign":"center","paddingLeft":0,"paddingRight":0},"dropDownSelectStyle":{"dropDownSelectBackground":"rgba(13, 183, 198, 0)","dropDownSelectBackground_globalColor":"","dropDownSelectColor":"rgba(0, 160, 233, 1)","dropDownSelectColor_globalColor":"","dropDownSelectFontSize":15,"height":35,"opacity":1},"icon":{"position":"center-left","fontSize":16,"dropDownFontSize":12,"childIcon":"fa-anchor","color":"#f00","color_globalColor":""},"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); } } }); } } if( parseInt($.browser.version) === 8 ){ }else{ var num = 'u17280'; //鍙湁dom瀛樺湪锛屾墠缁戝畾js if(document.querySelector('#u17280')){ window['indexVm' + num] = new Vue({ el: "#u17280", 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":200,"picture_height":43,"picture_border_radius":0,"imgUrl":"https://cmsimg01.71360.com/data/20191224/11u3369/public/2019122414473185757.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); } // 鎮诞 $('#u17280 div.graphic_position').hover(function () { $('#u17280 div.graphic_position img').eq(0).hide(); $('#u17280 div.graphic_position img').stop().eq(1).fadeIn(300); },function () { $('#u17280 div.graphic_position img').eq(1).hide(); $('#u17280 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('#u269682')){ var num = 'u269682'; window['indexVm' + num] = new Vue({ el: "#u269682", 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($('#u269682 .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($('#u269682 .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($('#u269682 .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($('#u269682 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) { $('#u269682 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 = {"allwidth":189,"allheight":42,"isShowStyle3Icon":"open","search4_bc":"#fff","search_div_height_bc":"#fff","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(179, 179, 184, 1)","search_placeholder_fs":14,"icon_class":"icon iconfont icon-search4","search_oppen_style":"0","search_text_border_radius":0,"search_btn_icon_margin_top":0,"search_btn_icon_margin_right":0,"search_btn_icon_margin_bottom":0,"search_btn_icon_margin_left":0,"search_btn_icon_padding_top":0,"search_btn_icon_padding_right":0,"search_btn_icon_padding_bottom":0,"search_btn_icon_padding_left":0,"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":"#f0f","search_text_fs":12,"search_text_text_align":"center","search_text_pos_left":250,"search_text_pos_right":0,"search_width":200,"search_height":40,"search_div_width":400,"search_div_height":40,"search_input_fs":14,"search_padding_left":15,"search_padding_right":50,"search_placeholder":"\u8bf7\u8f93\u5165\u5185\u5bb9","search_absolute_left":164,"search_absolute_top":10,"search_radius":20,"search_text_width":48,"search_text_height":38,"search_text_color":"#0DB7C6","search_text_font_color":"rgba(0, 0, 0, 0)","search_icon_color":"rgba(132, 132, 135, 1)","search_input_color":"rgba(118, 131, 143, 1)","is_show_icon":true,"show_icon":"","show_text":"","search_icon_width":19,"search_btn_text":"","open_style":true,"search_margin_left":0,"search_margin_top":0,"styleId":3365,"searchs_border_top_style":"solid","searchs_border_top_color":"rgba(22, 161, 179, 1)","searchs_border_top_width":0,"searchs_border_right_style":"solid","searchs_border_right_width":0,"searchs_border_bottom_style":"solid","searchs_border_bottom_width":0,"searchs_border_left_style":"solid","searchs_border_left_width":0,"searchs_border_right_color":"rgba(22, 161, 179, 1)","searchs_border_bottom_color":"rgba(22, 161, 179, 1)","searchs_border_left_color":"rgba(22, 161, 179, 1)","search_input_bg_color":"rgba(242, 243, 249, 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,"waringTitle":"\u8bf7\u8f93\u5165\u5185\u5bb9","search_icon_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_mouse"}; 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 $('#u269682 b').css('display','none'); }else if(this.indexStore.search_oppen_style == '1'){ //鏍峰紡2 $('#u269682 .iconBtn i, #u269682 .search2 .btnClickShow b').off(); $('#u269682 .iconBtn i, #u269682 .search2 .btnClickShow b').on('click',function(){ $('#u269682 .search2').slideToggle("slow"); $('#u269682 .search2 .btnClickShow').slideToggle("slow"); var iShow = '' || 'block'; var spanShow = '' || 'none'; var bShow = '' || 'none'; if( iShow === 'block'){ $('#u269682 .search2 .btnClickShow i').slideToggle("slow"); } if( spanShow === 'block'){ $('#u269682 .search2 .btnClickShow span').slideToggle("slow"); } if( bShow === 'block'){ $('#u269682 .search2 .btnClickShow b').slideToggle("slow"); } }); }else if(this.indexStore.search_oppen_style == '2'){ //鏍峰紡3 var isClick = this.indexStore.isShowStyle3Icon || 'open'; //鏄惁寮€鍚浘鏍囨樉绀 var $dom = $('#u269682 .search3'); if(isClick == 'open'){ $('#u269682 .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'); $('#u269682 .iconBtn').css('display','none'); } }else if(this.indexStore.search_oppen_style == '3'){ //鏍峰紡4 $('#u269682 div.search4-div, #u269682 input.search4-input').hover(function(){ $('#u269682 input.search4-input').show(); },function(){ $('#u269682 input.search4-input').hide(); }); }else if(this.indexStore.search_oppen_style == '4'){ $('#u269682 .search-left').off(); $('#u269682 .search-left').on('click',function () { $(this).toggleClass('select-visible'); $(this).find('.search-left-btm').fadeToggle(".3","linear"); }); var $li = $('#u269682 .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'); $('#u269682 #searchs5 .search-left-top span').text($(this).text()); }); }); // 绉婚櫎鍏朵粬li鐨刢lass checked-items function removeLiClass(item) { $.each(item,function (index,value) { $(value).removeClass('checked-items'); }); } // 鍔ㄦ€佽幏鍙 涓嬫媺妗嗛€夐」 function getLi(){ var $ul = $('#u269682 .search-left-btm ul'); var $li = $('#u269682 .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){ $('#u269682 #searchs5 .search-left-top span').text(index); $li.eq(i).addClass('checked-items') _this.cnashu = item; } i++; }); } }); } getLi(); } //鎸備欢鍔ㄧ敾 try{ $.allWidgetAnimate(this,$('#u269682')); }catch(e){}; }, ready:function(){ if(typeof templet!="undefined"){ templet.checkaction(this); } //灏嗘悳绱箣鍚 杩斿洖鏃 杈撳叆妗嗘竻绌 $('#u269682 input').val(''); // 鍏煎placeholder searchCon // 瀹㈡埛绔 鏍峰紡3鐨勮竟妗嗘牱寮 $('#u269682 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){ } } }); } } if( parseInt($.browser.version) === 8 ){ console.log('ie8') }else{ //鍙湁dom瀛樺湪锛屾墠缁戝畾js if(document.querySelector('#u129685')) { var num = 'u129685'; window['indexVm' + num] = new Vue({ el: "#u129685", data: { indexStore: {} }, watch: {}, computed: {}, methods: {}, created: function () { try { var StorageVal = {"allwidth":160,"allheight":47,"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;}\n.style_reset p { margin-top:15px !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":3369}; 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) } } }); } } //