if( parseInt($.browser.version) === 8 ){
}else{
var num = 'u128134';
//只有dom存在,才绑定js
if(document.querySelector('#u128134')){
window['indexVm' + num] = new Vue({
el: "#u128134",
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":"金沙js6666登录入口","allwidth":200,"allheight":200,"isNewPage":true,"picStyle":0,"picture_width":134,"picture_height":38,"picture_border_radius":0,"imgUrl":"https://img01.71360.com/file/read/www/M00/98/94/wKj0iWJegeeAMyTzAAAMvjUkB1Y641.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);
}
// 悬浮
$('#u128134 div.graphic_position').hover(function () {
$('#u128134 div.graphic_position img').eq(0).hide();
$('#u128134 div.graphic_position img').stop().eq(1).fadeIn(300);
},function () {
$('#u128134 div.graphic_position img').eq(1).hide();
$('#u128134 div.graphic_position img').stop().eq(0).fadeIn(300);
});
}
});
}
}
if( parseInt($.browser.version) === 8 ){
}else{
//只有dom存在,才绑定js
if(document.querySelector('#u38757')){
var num = 'u38757';
window['indexNavVm'+num] = new Vue({
el: '#u38757',
data:{
editVal:{},
listArr:[],
url:'',
indexShow:true,//判断渲染index还是edit
},
methods:{
iconFourStyle:function (fontSize,navIconPosition,tweLevelFontSize,color) {
var liHeight = $('#u38757').find('.indexNav').children('.indexNavChild').height();
var liWidth = $('#u38757').find('.indexNav').children('li').width();
var dropDownMenuHeight = $('#u38757').find('.indexNavChild').children('ul').children('li').height();
var fontSize = parseInt(fontSize);
if(navIconPosition == 'top-left'){
$('#u38757').find('.indexNav').children('li').children('i').css({
top:'3%',
bottom:'',
left:'7%',
right:'',
fontSize:fontSize+'px',
color:color
});
}
else if(navIconPosition == 'top-center'){
$('#u38757').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'){
$('#u38757').find('.indexNav').children('li').children('i').css({
top:'3%',
bottom:'',
left:'',
right:'7%',
fontSize:fontSize+'px',
color:color
});
}
else if(navIconPosition == 'center-left'){
$('#u38757').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'){
$('#u38757').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'){
$('#u38757').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'){
$('#u38757').find('.indexNav').children('li').children('i').css({
top:'',
bottom:'3%',
left:'7%',
right:'',
fontSize:fontSize+'px',
color:color
});
}
else if(navIconPosition == 'bottom-center'){
$('#u38757').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'){
$('#u38757').find('.indexNav').children('li').children('i').css({
top:'68%',
bottom:'3%',
left:'',
right:'7%',
fontSize:fontSize+'px',
color:color
});
}
//下拉菜单样式
$('#u38757').find('.indexNavChild').children('ul').find('i').css({
top:(dropDownMenuHeight - fontSize)/2+'px',
bottom:'',
left:'7%',
right:'',
fontSize:fontSize+'px',
color:color
});
//所有样式加载完成,导航出现
$('#u38757').find('.indexCustom').find('i').css('display','block');
$('#u38757').find('.menumenu').find('i').css('display','block');
},
hoverUlShow:function () {
var that = this;
$('#u38757').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);
}
});
$('#u38757').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":1778,"styleChoicIndex":"","style":{"navBackground":"rgba(255,255,255,0)","navLiBackground":"rgba(255,255,255,0)","navColor":"rgba(0, 0, 0, 1)","navBorderStyle":"none","navBorderColor":"#f00","navFontFamily":"Microsoft YaHei","navFontWeight":"normal","navFontAlign":"center","navOneWidth":100,"navWidth":700,"navHeight":92,"navFontSize":16,"navBorderRadius":0,"navMarginRight":0},"navSelectStyle":{"navSelectBackground":"rgba(255, 255, 255, 1)","navSelectColor":"rgba(232, 0, 3, 1)","navSelectFontSize":16},"dropDownStyle":{"dropDownBackground":"rgba(255, 255, 255, 1)","dropDownColor":"rgba(0, 0, 0, 1)","dropDownHeight":33,"dropDownFontSize":14,"dropDownBackgroundImage":"","isRepeat":"repeat","opacity":0.93,"navMarginTopHeight":0,"navMarginBottomHeight":0,"textAlign":"center","width":100},"dropDownSelectStyle":{"dropDownSelectBackground":"rgba(255, 255, 255, 1)","dropDownSelectColor":"rgba(232, 0, 3, 1)","dropDownSelectFontSize":14,"height":33,"opacity":0},"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,"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 ){
console.log('ie8')
}else{
//只有dom存在,才绑定js
if(document.querySelector('#u74882')) {
var num = 'u74882';
window['indexVm' + num] = new Vue({
el: "#u74882",
data: {
indexStore: {}
},
watch: {},
computed: {},
methods: {},
created: function () {
try {
var StorageVal = {"allwidth":193,"allheight":31,"themes":"monokai","codeHtml":"","codeCss":".swiper-slide{margin-bottom:0!important;}\nbody{min-width:1200px;overflow:hidden;}\n#productList .swiper-slide .border{width: 100%!important;}","codeJs":"$(\"body\").prepend(\"\");\n$(\"div,p,a,span,strong\").css(\"word-break\",\"\");\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":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('' == '0' || '1' == '0'){
//样式1
var ad = new AdMove("u178167");
$('#u178167').css('zIndex','999999');
var times = '' || '10'
ad.Run(parseInt(times));
//关闭点击事件
$("#u178167 #open_page").on('click',function(){
$('#u178167').css("display","none");
});
};
if( parseInt($.browser.version) === 8 ){
console.log('ie8')
}else {
//只有dom存在,才绑定js
if (document.querySelector('#u178167')) {
;var num = 'u178167';
window['indexVm' + num] = new Vue({
el: "#u178167",
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
","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":28,"height":28,"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 {
$('#u178167').css({
'position': 'fixed',
'zIndex': '999999'
});
} catch (e) {
}
;
}
//挂件动画
try {
$.allWidgetAnimate(this, $('#u178167'));
} catch (e) {
}
;
},
ready: function () {
if (this.indexStore.custom_pos_style === '2') {
var t = setTimeout(function () {
try {
$("#u178167").draggable();
$("#u178167").draggable("disable");
} catch (e) {
}
clearTimeout(t);
}, 500);
} else if (this.indexStore.custom_pos_style === '1') {
setTimeout(function () {
try {
$("#u178167").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('#u194324')){
var num = 'u194324';
window['indexVm' + num] = new Vue({
el: "#u194324",
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($('#u194324 .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($('#u194324 .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($('#u194324 .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($('#u194324 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) {
$('#u194324 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":"305","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(153, 153, 153, 1)","search_placeholder_fs":14,"icon_class":"icon iconfont icon-search4","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":18,"search_btn_icon_margin_left":155,"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":41,"search_is_show_icon":"block","search_is_show_txt":"block","search_btn_icon_fs":16,"search_btn_icon_color":"rgba(255, 255, 255, 1)","search_text_fs":13,"search_text_text_align":"center","search_text_pos_left":257,"search_text_pos_right":6,"search_width":245,"search_height":40,"search_div_width":308,"search_div_height":40,"search_input_fs":14,"search_padding_left":15,"search_padding_right":50,"search_placeholder":"\u8bf7\u8f93\u5165\u67e5\u8be2\u4fe1\u606f","search_absolute_left":263,"search_absolute_top":10,"search_radius":20,"search_text_width":28,"search_text_height":28,"search_text_color":"rgba(235, 41, 53, 1)","search_text_font_color":"rgba(255, 255, 255, 0)","search_icon_color":"rgba(255, 255, 255, 1)","search_input_color":"rgba(0, 0, 0, 1)","is_show_icon":true,"show_icon":"","show_text":"","search_icon_width":16,"search_btn_text":"0","open_style":true,"search_margin_left":50,"search_margin_top":0,"styleId":2367,"searchs_border_top_style":"solid","searchs_border_top_color":"rgba(226, 226, 226, 1)","searchs_border_top_width":1,"searchs_border_right_style":"solid","searchs_border_right_color":"rgba(226, 226, 226, 1)","searchs_border_right_width":1,"searchs_border_bottom_style":"solid","searchs_border_bottom_color":"rgba(226, 226, 226, 1)","searchs_border_bottom_width":1,"searchs_border_left_style":"solid","searchs_border_left_color":"rgba(226, 226, 226, 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"}};
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
$('#u194324 b').css('display','none');
}else if(this.indexStore.search_oppen_style == '1'){
//样式2
$('#u194324 .iconBtn i, #u194324 .search2 .btnClickShow b').off();
$('#u194324 .iconBtn i, #u194324 .search2 .btnClickShow b').on('click',function(){
$('#u194324 .search2').slideToggle("slow");
$('#u194324 .search2 .btnClickShow').slideToggle("slow");
var iShow = '' || 'block';
var spanShow = '' || 'block';
var bShow = '' || 'none';
if( iShow === 'block'){
$('#u194324 .search2 .btnClickShow i').slideToggle("slow");
}
if( spanShow === 'block'){
$('#u194324 .search2 .btnClickShow span').slideToggle("slow");
}
if( bShow === 'block'){
$('#u194324 .search2 .btnClickShow b').slideToggle("slow");
}
});
}else if(this.indexStore.search_oppen_style == '2'){
//样式3
var isClick = this.indexStore.isShowStyle3Icon || 'open';
//是否开启图标显示
var $dom = $('#u194324 .search3');
if(isClick == 'open'){
$('#u194324 .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');
$('#u194324 .iconBtn').css('display','none');
}
}else if(this.indexStore.search_oppen_style == '3'){
//样式4
$('#u194324 div.search4-div, #u194324 input.search4-input').hover(function(){
$('#u194324 input.search4-input').show();
},function(){
$('#u194324 input.search4-input').hide();
});
}else if(this.indexStore.search_oppen_style == '4'){
$('#u194324 .search-left').off();
$('#u194324 .search-left').on('click',function () {
$(this).toggleClass('select-visible');
$(this).find('.search-left-btm').fadeToggle(".3","linear");
});
var $li = $('#u194324 .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');
$('#u194324 #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 = $('#u194324 .search-left-btm ul');
var $li = $('#u194324 .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){
$('#u194324 #searchs5 .search-left-top span').text(index);
$li.eq(i).addClass('checked-items')
_this.cnashu = item;
}
i++;
});
}
});
}
getLi();
}
//挂件动画
try{
$.allWidgetAnimate(this,$('#u194324'));
}catch(e){};
},
ready:function(){
if(typeof templet!="undefined"){
templet.checkaction(this);
}
//将搜索之后 返回时 输入框清空
$('#u194324 input').val('');
// 兼容placeholder searchCon
// 客户端 样式3的边框样式
$('#u194324 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('' == '0' || '1' == '0'){
//样式1
var ad = new AdMove("u267460");
$('#u267460').css('zIndex','999999');
var times = '' || '10'
ad.Run(parseInt(times));
//关闭点击事件
$("#u267460 #open_page").on('click',function(){
$('#u267460').css("display","none");
});
};
if( parseInt($.browser.version) === 8 ){
console.log('ie8')
}else {
//只有dom存在,才绑定js
if (document.querySelector('#u267460')) {
;var num = 'u267460';
window['indexVm' + num] = new Vue({
el: "#u267460",
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客服电话: 18367891766 \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":284,"height":46,"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 {
$('#u267460').css({
'position': 'fixed',
'zIndex': '999999'
});
} catch (e) {
}
;
}
//挂件动画
try {
$.allWidgetAnimate(this, $('#u267460'));
} catch (e) {
}
;
},
ready: function () {
if (this.indexStore.custom_pos_style === '2') {
var t = setTimeout(function () {
try {
$("#u267460").draggable();
$("#u267460").draggable("disable");
} catch (e) {
}
clearTimeout(t);
}, 500);
} else if (this.indexStore.custom_pos_style === '1') {
setTimeout(function () {
try {
$("#u267460").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";
}
}
});
}
}
//