if( parseInt($.browser.version) === 8 ){ }else{ var num = 'u277112'; //鍙湁dom瀛樺湪锛屾墠缁戝畾js if(document.querySelector('#u277112')){ window['indexVm' + num] = new Vue({ el: "#u277112", 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":254,"picture_height":69,"picture_border_radius":0,"imgUrl":"https://img01.71360.com/file/read/www/M00/EF/09/wKj0iWG2t92AJBZfAAl9t_j65GQ454.jpg","imgUrl_hover":"","effectNum":0,"animatedType":"stylejs","linksStyle":"self","linksUrl":"/product.html","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); } // 鎮诞 $('#u277112 div.graphic_position').hover(function () { $('#u277112 div.graphic_position img').eq(0).hide(); $('#u277112 div.graphic_position img').stop().eq(1).fadeIn(300); },function () { $('#u277112 div.graphic_position img').eq(1).hide(); $('#u277112 div.graphic_position img').stop().eq(0).fadeIn(300); }); } }); } } if('' == '0' || '1' == '0'){ //鏍峰紡1 var ad = new AdMove("u672341"); $('#u672341').css('zIndex','999999'); var times = '' || '10' ad.Run(parseInt(times)); //鍏抽棴鐐瑰嚮浜嬩欢 $("#u672341 #open_page").on('click',function(){ $('#u672341').css("display","none"); }); }; if( parseInt($.browser.version) === 8 ){ console.log('ie8') }else { //鍙湁dom瀛樺湪锛屾墠缁戝畾js if (document.querySelector('#u672341')) { ;var num = 'u672341'; window['indexVm' + num] = new Vue({ el: "#u672341", 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鐢靛瓙閭锛欬/strong>info@sltup.com  \n

\n

\n\t鑱旂郴鐢佃瘽锛?00-028-5178 \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":291,"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 { $('#u672341').css({ 'position': 'fixed', 'zIndex': '999999' }); } catch (e) { } ; } //鎸備欢鍔ㄧ敾 try { $.allWidgetAnimate(this, $('#u672341')); } catch (e) { } ; }, ready: function () { if (this.indexStore.custom_pos_style === '2') { var t = setTimeout(function () { try { $("#u672341").draggable(); $("#u672341").draggable("disable"); } catch (e) { } clearTimeout(t); }, 500); } else if (this.indexStore.custom_pos_style === '1') { setTimeout(function () { try { $("#u672341").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"; } } }); } } //閲嶈浼被锛屼娇瀛椾綋寮哄埗鐢熸晥 ;!(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('#u981325')){ var num = 'u981325'; window['indexVm' + num] = new Vue({ el: "#u981325", 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($('#u981325 .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($('#u981325 .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($('#u981325 .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($('#u981325 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) { $('#u981325 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":292,"allheight":54,"isShowStyle3Icon":"open","search4_bc":"#fff","search4_bc_globalColor":"","search_div_height_bc":"#fff","search_div_height_bc_globalColor":"","search_x_show":"none","search_x_fs":12,"search_x_color":"#000","search_x_color_globalColor":"","search_x_top":0,"search_x_right":0,"search_input_placeholder_color":"rgba(244, 244, 244, 1)","search_input_placeholder_color_globalColor":"","search_placeholder_fs":15,"icon_class":"icon iconfont icon-search5","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_btn_icon_color_globalColor":"","search_text_fs":12,"search_text_text_align":"center","search_text_pos_left":260,"search_text_pos_right":0,"search_width":280,"search_height":45,"search_div_width":400,"search_div_height":40,"search_input_fs":14,"search_padding_left":34,"search_padding_right":4,"search_placeholder":"\u8bf7\u8f93\u5165\u67e5\u8be2\u4fe1\u606f","search_absolute_left":240,"search_absolute_top":8,"search_radius":8,"search_text_width":40,"search_text_height":34,"search_text_color":"#f00","search_text_color_globalColor":"","search_text_font_color":"#000","search_text_font_color_globalColor":"","search_icon_color":"rgba(235, 235, 235, 1)","search_icon_color_globalColor":"","search_input_color":"rgba(244, 244, 244, 1)","search_input_color_globalColor":"","is_show_icon":true,"show_icon":"","show_text":"","search_icon_width":25,"search_btn_text":"\u641c\u7d22","open_style":true,"search_margin_left":0,"search_margin_top":0,"styleId":"w1111","searchs_border_top_style":"solid","searchs_border_top_color":"#ccc","searchs_border_top_color_globalColor":"","searchs_border_top_width":1,"searchs_border_right_style":"solid","searchs_border_right_width":1,"searchs_border_bottom_style":"solid","searchs_border_bottom_width":1,"searchs_border_left_style":"solid","searchs_border_left_width":1,"searchs_border_right_color":"#ccc","searchs_border_right_color_globalColor":"","searchs_border_bottom_color":"#ccc","searchs_border_bottom_color_globalColor":"","searchs_border_left_color":"#ccc","searchs_border_left_color_globalColor":"","search_input_bg_color":"rgba(143, 143, 143, 1)","search_input_bg_color_globalColor":"","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":"\u8f93\u5165\u67e5\u8be2\u5185\u5bb9","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){} var arr = []; for (item in this.indexStore) { arr.push(this.indexStore[item]); } var _this = this; if(this.indexStore.search_oppen_style == '0'){ //鏍峰紡1 $('#u981325 b').css('display','none'); }else if(this.indexStore.search_oppen_style == '1'){ //鏍峰紡2 $('#u981325 .iconBtn i, #u981325 .search2 .btnClickShow b').off(); $('#u981325 .iconBtn i, #u981325 .search2 .btnClickShow b').on('click',function(){ $('#u981325 .search2').slideToggle("slow"); $('#u981325 .search2 .btnClickShow').slideToggle("slow"); var iShow = '' || 'block'; var spanShow = '' || 'none'; var bShow = '' || 'none'; if( iShow === 'block'){ $('#u981325 .search2 .btnClickShow i').slideToggle("slow"); } if( spanShow === 'block'){ $('#u981325 .search2 .btnClickShow span').slideToggle("slow"); } if( bShow === 'block'){ $('#u981325 .search2 .btnClickShow b').slideToggle("slow"); } }); }else if(this.indexStore.search_oppen_style == '2'){ //鏍峰紡3 var isClick = this.indexStore.isShowStyle3Icon || 'open'; //鏄惁寮€鍚浘鏍囨樉绀 var $dom = $('#u981325 .search3'); if(isClick == 'open'){ $('#u981325 .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'); $('#u981325 .iconBtn').css('display','none'); } }else if(this.indexStore.search_oppen_style == '3'){ //鏍峰紡4 $('#u981325 div.search4-div, #u981325 input.search4-input').hover(function(){ $('#u981325 input.search4-input').show(); },function(){ $('#u981325 input.search4-input').hide(); }); }else if(this.indexStore.search_oppen_style == '4'){ $('#u981325 .search-left').off(); $('#u981325 .search-left').on('click',function () { $(this).toggleClass('select-visible'); $(this).find('.search-left-btm').fadeToggle(".3","linear"); }); var $li = $('#u981325 .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'); $('#u981325 #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 = $('#u981325 .search-left-btm ul'); var $li = $('#u981325 .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){ $('#u981325 #searchs5 .search-left-top span').text(index); $li.eq(i).addClass('checked-items') _this.cnashu = item; } i++; }); } }); } getLi(); } //鎸備欢鍔ㄧ敾 try{ $.allWidgetAnimate(this,$('#u981325')); }catch(e){}; }, ready:function(){ if(typeof templet!="undefined"){ templet.checkaction(this); } //灏嗘悳绱箣鍚 杩斿洖鏃 杈撳叆妗嗘竻绌 $('#u981325 input').val(''); // 鍏煎placeholder searchCon // 瀹㈡埛绔 鏍峰紡3鐨勮竟妗嗘牱寮 $('#u981325 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('#u677696')){ var num = 'u677696'; window['indexVm'+num] = new Vue({ el:'#u677696', data:{ indexStore:{ }, indexShow:false }, methods:{ vif:function(v){ // return this.indexStore.switchArr[v] =='true' ? true : false; } }, computed:{ vifs:function(){ return { width:this.indexStore.w_flinks_pic_width + 'px', height:this.indexStore.w_flinks_pic_height + 'px', left:this.indexStore.w_flinks_pic_left + 'px', top:this.indexStore.w_flinks_pic_top + 'px', position:'absolute', zIndex: 99 } }, spanConi:function(){ return { left:this.indexStore.w_flinks_icon_left + 'px', top:this.indexStore.w_flinks_icon_top + 'px', position:'absolute', fontFamily:"Ionicons" } }, spanCon:function(){ return { width:this.indexStore.w_flinks_width + 'px', height:this.indexStore.w_flinks_height + 'px', lineHeight:this.indexStore.w_flinks_height + 'px', textAlign:this.indexStore.w_flink_text_align, background:this.indexStore.w_flinks_bc_color, color:this.indexStore.w_flinks_font_color, fontSize:this.indexStore.w_flinks_font_size + 'px', borderRadius:this.indexStore.w_flinks_border_radius + 'px', position:'relative' } }, listyles:function(){ return { float:this.indexStore.w_link_dir, position:'relative' } }, astylesFir:function(){ return { color:this.indexStore.w_link_color_first, fontSize:this.indexStore.w_link_fs_first + 'px', backgroundColor:this.indexStore.w_link_bg_color_first, fontWeight:this.indexStore.w_link_bold_first, position:'relative', width:this.indexStore.w_color_width_first + 'px', height:this.indexStore.w_color_height_first + 'px', lineHeight:this.indexStore.w_color_height_first + 'px', textAlign:this.indexStore.w_link_text_align_first, display:'block', textDecoration:this.indexStore.w_link_decoration_link, marginTop:this.indexStore.w_link_first_mt + 'px', marginRight:this.indexStore.w_link_first_mr + 'px', marginBottom:this.indexStore.w_link_first_mb + 'px', marginLeft:this.indexStore.w_link_first_ml + 'px', paddingLeft:this.indexStore.w_link_first_pl + 'px', paddingRight:this.indexStore.w_link_first_pr + 'px', paddingTop:this.indexStore.w_link_first_pt + 'px', paddingBottom:this.indexStore.w_link_first_pb + 'px', borderTopStyle:this.indexStore.w_link_border_top_border_style, borderTopColor:this.indexStore.w_link_border_top_border_color, borderTopWidth:this.indexStore.w_link_border_top_border_width + 'px', borderRightStyle:this.indexStore.w_link_border_right_border_style, borderRightColor:this.indexStore.w_link_border_right_border_color, borderRightWidth:this.indexStore.w_link_border_right_border_width + 'px', borderBottomStyle:this.indexStore.w_link_border_bottom_border_style, borderBottomColor:this.indexStore.w_link_border_bottom_border_color, borderBottomWidth:this.indexStore.w_link_border_bottom_border_width + 'px', borderLeftStyle:this.indexStore.w_link_border_left_border_style, borderLeftColor:this.indexStore.w_link_border_left_border_color, borderLeftWidth:this.indexStore.w_link_border_left_border_width + 'px', } }, astyles:function(){ return { color:this.indexStore.w_link_color, fontSize:this.indexStore.w_link_fs + 'px', backgroundColor:this.indexStore.w_link_bg_color, fontWeight:this.indexStore.w_link_bold, position:'relative', paddingTop:this.indexStore.w_link_filltop + 'px', paddingRight:this.indexStore.w_link_fillr + 'px', paddingBottom:this.indexStore.w_link_fillbtm + 'px', paddingLeft:this.indexStore.w_link_fillleft + 'px', width:this.indexStore.w_color_width + 'px', height:this.indexStore.w_color_height + 'px', lineHeight:this.indexStore.w_color_height + 'px', textAlign:this.indexStore.w_link_text_align, display:'block', textDecoration:this.indexStore.w_link_decoration_link, borderTopStyle:this.indexStore.w_link_border_top_border_style, borderTopColor:this.indexStore.w_link_border_top_border_color, borderTopWidth:this.indexStore.w_link_border_top_border_width + 'px', borderRightStyle:this.indexStore.w_link_border_right_border_style, borderRightColor:this.indexStore.w_link_border_right_border_color, borderRightWidth:this.indexStore.w_link_border_right_border_width + 'px', borderBottomStyle:this.indexStore.w_link_border_bottom_border_style, borderBottomColor:this.indexStore.w_link_border_bottom_border_color, borderBottomWidth:this.indexStore.w_link_border_bottom_border_width + 'px', borderLeftStyle:this.indexStore.w_link_border_left_border_style, borderLeftColor:this.indexStore.w_link_border_left_border_color, borderLeftWidth:this.indexStore.w_link_border_left_border_width + 'px', marginLeft:this.indexStore.w_link_margin_left + 'px', marginRight:this.indexStore.w_link_margin_right + 'px', marginTop:this.indexStore.w_link_margin_top + 'px', marginBottom:this.indexStore.w_link_margin_bottom + 'px', } }, istyles:function(){ return { color:this.indexStore.w_icon_color, fontSize:this.indexStore.w_color_fs + 'px', paddingTop:this.indexStore.w_icon_filltop + 'px', paddingRight:this.indexStore.w_icon_fillr + 'px', paddingBottom:this.indexStore.w_icon_fillbtm + 'px', paddingLeft:this.indexStore.w_icon_fillleft + 'px', position:'absolute', left:this.indexStore.icon_pos_left, top:this.indexStore.icon_pos_top, fontFamily:"FontAwesome" } } }, watch:{ indexStore:{ handler:function(a,b){ }, deep:true } }, created:function(){ try{ var StorageVal = JSON.stringify({"allwidth":140,"allheight":40,"width":400,"height":44,"isShows":false,"newwidth":100,"w_link_decoration_link":"none","w_link_decoration_visited":"none","w_link_decoration_hover":"none","w_link_decoration_active":"none","icon_pos_left":0,"icon_pos_top":0,"w_icon_fillr":0,"w_icon_fillleft":0,"w_icon_fillbtm":0,"w_icon_filltop":0,"w_link_fillleft":0,"w_link_fillr":0,"w_link_fillbtm":0,"w_link_filltop":0,"w_link_family":"SimSun","w_link_bold":"normal","w_link_fs":12,"w_link_dir":"left","w_color_fs":12,"w_icon_color":"#f00","w_icon_color_globalColor":"","w_link_bg_color":"#fff","w_link_bg_color_globalColor":"","w_link_bg_hover_color":"#ff0","w_link_bg_hover_color_globalColor":"","w_link_color":"#333","w_link_color_globalColor":"","w_link_hover_color":"#0f0","w_link_hover_color_globalColor":"","clickName":0,"cityList":[{"linkTitles":"link_title1","linkLinks":"link_href1","linkTargets":"link_target1","linkAddPic":"娣诲姞鍥?,"linkDelPic":"鍒犻櫎鍥?,"imgalt":"imgalt1","imgUrl":"","isShowPic":"false","isShowPics":"isShowPics1","imgUrls":"imgUrls1","linkDeletes":"鍒犻櫎琛?}],"cityLists":[{"title":"璁块棶娴峰鐗?,"href":"https://www.sltup.com/","target":"_self","iconCLass":"","imgalt":"","isShowPic":"false","isShowPics":"true","imgUrls":"","backgroundImage":"","backgroundImageHover":""}],"rowNumber":1,"isShowWarn":false,"widget":"","links_styles":"0","w_color_width":80,"w_color_height":40,"w_color_lineheight":40,"w_link_text_align":"center","w_flinks_width":180,"w_flinks_height":50,"w_flink_text_align":"center","w_flinks_bc_color":"#ccc","w_flinks_bc_color_globalColor":"","w_flinks_font_color":"#0f0","w_flinks_font_color_globalColor":"","w_flinks_con":"鍙嬫儏閾炬帴","w_links_emit_styles":"click","w_flinks_font_size":18,"w_links_sport_time":1000,"w_links_sport_styles":"slide","w_flinks_icon_left":20,"w_flinks_icon_top":20,"w_flinks_border_radius":0,"imgUrls":[],"switchArr":["false"],"w_flinks_pic_width":30,"w_flinks_pic_height":30,"w_flinks_pic_left":50,"w_flinks_pic_top":20,"w_link_bold_first":"normal","w_link_text_align_first":"center","w_link_color_first":"rgba(102, 102, 102, 1)","w_link_color_first_globalColor":"","w_link_hover_color_first":"rgba(230, 33, 41, 1)","w_link_hover_color_first_globalColor":"","w_link_bg_color_first":"rgba(229, 229, 229, 0)","w_link_bg_color_first_globalColor":"","w_link_bg_hover_color_first":"rgba(0, 255, 0, 0)","w_link_bg_hover_color_first_globalColor":"","w_color_width_first":118,"w_color_height_first":40,"w_color_lineheight_first":40,"w_link_fs_first":16,"w_link_open_first_set":"1","w_link_margin_left":0,"w_link_margin_right":0,"w_link_margin_top":0,"w_link_margin_bottom":0,"w_link_border_top_border_style":"solid","w_link_border_top_border_color":"#000","w_link_border_top_border_color_globalColor":"","w_link_border_top_border_width":0,"w_link_border_right_border_style":"solid","w_link_border_right_border_color":"#000","w_link_border_right_border_color_globalColor":"","w_link_border_right_border_width":0,"w_link_border_bottom_border_style":"solid","w_link_border_bottom_border_color":"#000","w_link_border_bottom_border_color_globalColor":"","w_link_border_bottom_border_width":0,"w_link_border_left_border_style":"solid","w_link_border_left_border_color":"#000","w_link_border_left_border_color_globalColor":"","w_link_border_left_border_width":0,"w_link_hover_border_top_border_style":"solid","w_link_hover_border_top_border_color":"#000","w_link_hover_border_top_border_color_globalColor":"","w_link_hover_border_top_border_width":0,"w_link_hover_border_right_border_style":"solid","w_link_hover_border_right_border_color":"#000","w_link_hover_border_right_border_color_globalColor":"","w_link_hover_border_right_border_width":0,"w_link_hover_border_bottom_border_style":"solid","w_link_hover_border_bottom_border_color":"#000","w_link_hover_border_bottom_border_color_globalColor":"","w_link_hover_border_bottom_border_width":0,"w_link_hover_border_left_border_style":"solid","w_link_hover_border_left_border_color":"#000","w_link_hover_border_left_border_color_globalColor":"","w_link_hover_border_left_border_width":0,"w_link_first_mt":0,"w_link_first_mb":0,"w_link_first_ml":0,"w_link_first_mr":0,"w_link_first_pt":0,"w_link_first_pb":0,"w_link_first_pl":0,"w_link_first_pr":0,"w_link_first_br":0,"w_link_second_br":0,"w_firlink_border_top_border_style":"solid","w_firlink_border_top_border_color":"#000","w_firlink_border_top_border_color_globalColor":"","w_firlink_border_top_border_width":0,"w_firlink_border_right_border_style":"solid","w_firlink_border_right_border_color":"#000","w_firlink_border_right_border_color_globalColor":"","w_firlink_border_right_border_width":0,"w_firlink_border_bottom_border_style":"solid","w_firlink_border_bottom_border_color":"#000","w_firlink_border_bottom_border_color_globalColor":"","w_firlink_border_bottom_border_width":0,"w_firlink_border_left_border_style":"solid","w_firlink_border_left_border_color":"#000","w_firlink_border_left_border_color_globalColor":"","w_firlink_border_left_border_width":0,"w_firlink_hover_border_top_border_style":"solid","w_firlink_hover_border_top_border_color":"#000","w_firlink_hover_border_top_border_color_globalColor":"","w_firlink_hover_border_top_border_width":0,"w_firlink_hover_border_right_border_style":"solid","w_firlink_hover_border_right_border_color":"#000","w_firlink_hover_border_right_border_color_globalColor":"","w_firlink_hover_border_right_border_width":0,"w_firlink_hover_border_bottom_border_style":"solid","w_firlink_hover_border_bottom_border_color":"#000","w_firlink_hover_border_bottom_border_color_globalColor":"","w_firlink_hover_border_bottom_border_width":0,"w_firlink_hover_border_left_border_style":"solid","w_firlink_hover_border_left_border_color":"#000","w_firlink_hover_border_left_border_color_globalColor":"","w_firlink_hover_border_left_border_width":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"}}); if(StorageVal != null){ this.indexStore = JSON.parse(StorageVal); } }catch(e){} if(this.indexStore.links_styles == '0' || '0' == '0'){ //鏍峰紡1 $('#u677696 #links_a ul li').hover(function(){ $(this).find('img').show(); },function(){ $(this).find('img').hide(); }); $('#u677696 #links_a ul li a').hover(function(){ $(this).css('color','' || '#0f0'); },function(){ $(this).css('color','' || '#333'); }); var w_link_open_first_set = '' || '1'; $('#u677696 #links_a ul li a:first').hover(function(){ if (w_link_open_first_set == '1') { $(this).css('color','' || 'rgba(230, 33, 41, 1)'); }else{ $(this).css('color','' || '#0f0'); } },function(){ if (w_link_open_first_set == '1'){ $(this).css('color','' || 'rgba(102, 102, 102, 1)'); }else{ $(this).css('color','' || '#333'); } }); }else if(this.indexStore.links_styles == '1' || '0' == '1'){ //鏍峰紡2 var objs = { w_links_emit_styles:'' || 'click', w_links_sport_time:'' || '1000', w_links_sport_styles:'' || 'slide', w_link_hover_color:'' || '#0f0', w_link_color:'' || '#333' } $('#u677696 #links_a ul li a ').hover(function(){ $(this).css('color',objs.w_link_hover_color); },function(){ $(this).css('color',objs.w_link_color); }); if (objs.w_links_emit_styles == 'click') { $('#u677696 #links_a #flinks').off(); $('#u677696 #links_a #flinks').on('click',function(){ if (objs.w_links_sport_styles == 'slide') { $('#u677696 #links_a ul').stop(true,true).slideToggle(parseInt(objs.w_links_sport_time)); }else{ $('#u677696 #links_a ul').stop(true,true).fadeToggle(parseInt(objs.w_links_sport_time)); } $('#u677696 #links_a #flinks i').toggleClass('flinksi'); if ($('#u677696 #links_a #flinks i').hasClass('flinksi')) { $('#u677696 #links_a #flinks i').css('transform','rotate(180deg)'); }else{ $('#u677696 #links_a #flinks i').css('transform','rotate(360deg)'); } }); }else{ $('#u677696 #links_a #flinks').off(); $('#u677696 #links_a').hover(function(){ if (objs.w_links_sport_styles == 'slide') { $('#u677696 #links_a ul').stop(true,true).slideDown(parseInt(objs.w_links_sport_time)); $('#u677696 #links_a #flinks i').css('transform','rotate(180deg)'); }else{ $('#u677696 #links_a ul').stop(true,true).fadeIn(parseInt(objs.w_links_sport_time)); $('#u677696 #links_a #flinks i').css('transform','rotate(180deg)'); } },function(){ if (objs.w_links_sport_styles == 'slide') { $('#u677696 #links_a ul').stop(true,true).slideUp(parseInt(objs.w_links_sport_time)); $('#u677696 #links_a #flinks i').css('transform','rotate(0deg)'); }else{ $('#u677696 #links_a ul').stop(true,true).fadeOut(parseInt(objs.w_links_sport_time)); $('#u677696 #links_a #flinks i').css('transform','rotate(0deg)'); } }); } }else if(this.indexStore.links_styles == '2' || '0' == '2'){ //鏍峰紡3 var objs = { w_links_emit_styles:'' || 'click', w_links_sport_time:'' || '1000' , w_links_sport_styles:'' || 'slide', w_link_hover_color:'' || '#0f0', w_link_color:'' || '#333', is_hover_leave:false } $('#u677696 #links_a ul li a ').hover(function(){ $(this).css('color',objs.w_link_hover_color); },function(){ $(this).css('color',objs.w_link_color); }); $('#u677696 #links_a > #flinks').hover(function(){ $('#u677696 #links_a ul').css('transform','scale(1)').css('opacity',1); $('#u677696 #links_a #flinks i').css('transform','rotate(180deg)'); objs.is_hover_leave = false; },function(){ objs.is_hover_leave = true; setTimeout(function(){ if (objs.is_hover_leave) { $('#u677696 #links_a ul').css('transform','scale(0.00001)').css('opacity',0); $('#u677696 #links_a #flinks i').css('transform','rotate(0deg)'); } },200); }); $('#u677696 #links_a > ul').hover(function(){ $('#u677696 #links_a ul').css('transform','scale(1)').css('opacity',1); objs.is_hover_leave = false; },function(){ objs.is_hover_leave = true; setTimeout(function(){ if (objs.is_hover_leave) { $('#u677696 #links_a ul').css('transform','scale(0.00001)').css('opacity',0); $('#u677696 #links_a #flinks i').css('transform','rotate(0deg)'); } },200); }); } //鎸備欢鍔ㄧ敾 try{ $.allWidgetAnimate(this,$('#u677696')); }catch(e){}; }, ready:function(){ console.log('閾炬帴缁勪欢鐗堟湰锛?019-03-11') if(typeof templet!="undefined"){ templet.checkaction(this); } $.each($('#u677696 #links_a a'), function(index, item) { //闃叉椤甸潰鏃犵紭澧炲姞绌洪摼鎺 褰卞搷鏍峰紡 if ($(item).attr('href') === '' && $(item).text().trim() === "") { $('#u677696 #links_a a').eq(index).hide() } }); //閾炬帴鐨勯粯璁よ儗鏅浘鐗囧拰鎮诞鑳屾櫙鍥剧墖澶勭悊 $('#u677696 #links_a a').hover(function(){ var hoverImg = $(this).data('hoverimg'); if(hoverImg){ $(this).css('backgroundImage','url('+hoverImg+')') }else{ //鑻ユ槸娌℃湁鎮诞鑳屾櫙鍥剧墖 鐩存帴绉婚櫎 鏄剧ず鑳屾櫙棰滆壊 $(this).css('backgroundImage','') } },function(){ var defaultImg = $(this).data('defaultimg'); if(defaultImg){ $(this).css('backgroundImage','url('+defaultImg+')') } }) } }); } } //