if('1' == '0' || '1' == '0'){
//样式1
var ad = new AdMove("u530954");
$('#u530954').css('zIndex','999999');
var times = '10' || '10'
ad.Run(parseInt(times));
//关闭点击事件
$("#u530954 #open_page").on('click',function(){
$('#u530954').css("display","none");
});
};
if( parseInt($.browser.version) === 8 ){
console.log('ie8')
}else {
//只有dom存在,才绑定js
if (document.querySelector('#u530954')) {
;var num = 'u530954';
window['indexVm' + num] = new Vue({
el: "#u530954",
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":"您好,欢迎来到3499cc拉斯维加斯正版!","msg":"","custom_pos_style":"1","custom_pos_style_left":0,"custom_pos_style_top":0,"custom_pos_style_rate":10,"animation_countsss":1,"widget_loading":"基础","widget_loading_li":"无动画","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_durasss":1,"animation_delaysss":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"},"isShows":false,"editBc":"#fff","is_hover":"0","width":271,"height":16};
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 {
$('#u530954').css({
'position': 'fixed',
'zIndex': '999999'
});
} catch (e) {
}
;
}
//挂件动画
try {
$.allWidgetAnimate(this, $('#u530954'));
} catch (e) {
}
;
},
ready: function () {
if (this.indexStore.custom_pos_style === '2') {
var t = setTimeout(function () {
try {
$("#u530954").draggable();
$("#u530954").draggable("disable");
} catch (e) {
}
clearTimeout(t);
}, 500);
} else if (this.indexStore.custom_pos_style === '1') {
setTimeout(function () {
try {
$("#u530954").draggable("enable");
} catch (e) {
}
}, 100);
}
if (typeof templet != "undefined") {
templet.checkaction(this);
}
// 兼容
if (!this.indexStore.is_hover) {
this.indexStore.is_hover = '0';
this.indexStore.hover_color = "#000";
this.indexStore.hover_bc_color = "#fff";
}
}
});
}
}
if( parseInt($.browser.version) === 8 ){
console.log('ie8')
}else{
//只有dom存在,才绑定js
if(document.querySelector('#u490998')){
;var num = 'u490998';
window['indexVm'+num] = new Vue({
el:'#u490998',
data:{
indexStore:{
},
infos:{
},
dataArr:{
},
inforLentgh:'',
indexShow:false
},
computed:{
lanImg:function(){
return {
width:this.indexStore.w_language_img_width + 'px',
height:this.indexStore.w_language_img_height + 'px',
position:'absolute',
left:this.indexStore.w_language_img_left + 'px',
top:this.indexStore.w_language_img_top + 'px',
display:this.indexStore.w_language_img_show,
borderRadius:this.indexStore.w_language_img_border_radius + 'px'
};
},
style2:function(){
return {
width:this.indexStore.w_languageWidth + 'px',
height:this.indexStore.w_languageHeight + 'px',
fontSize:this.indexStore.w_minbeds + 'px',
color:this.indexStore.w_fontColor,
paddingLeft:this.indexStore.w_style2_padding_left + 'px',
background:this.indexStore.w_inputColor,
borderRadius:this.indexStore.w_style2_border_radius + 'px'
};
},
style1:function(){
return {
width:this.indexStore.w_languageWidth + 'px',
height:this.indexStore.w_languageHeight + 'px',
marginLeft:'2px'
};
},
style1li:function(){
return {
float:this.indexStore.w_style1_float,
width:this.indexStore.w_style1_languageWidth + 'px',
height:this.indexStore.w_style1_languageHeight + 'px',
lineHeight:this.indexStore.w_style1_languageHeight + 'px',
background:this.indexStore.w_inputColor,
borderRadius:this.indexStore.w_style1_border_radius + 'px',
textAlign:this.indexStore.w_style1_text_align,
paddingTop:this.indexStore.w_style1_padding_top + 'px',
paddingRight:this.indexStore.w_style1_padding_right + 'px',
paddingBottom:this.indexStore.w_style1_padding_bottom + 'px',
paddingLeft:this.indexStore.w_style1_padding_left + 'px',
marginTop:this.indexStore.w_style1_margin_top + 'px',
marginRight:this.indexStore.w_style1_margin_right + 'px',
marginBottom:this.indexStore.w_style1_margin_bottom + 'px',
marginLeft:this.indexStore.w_style1_margin_left + 'px',
borderStyle:this.indexStore.language_a_border_all_styles,
borderColor:this.indexStore.language_a_border_all_color,
borderWidth:this.indexStore.language_a_border_all_width + 'px',
position:'relative',
};
},
style1af:function(){
return {
display:this.indexStore.w_language_txt_show,
fontSize:this.indexStore.w_minbeds + 'px',
color:this.indexStore.w_fontColor,
width:this.indexStore.w_style1_a_width + 'px',
height:this.indexStore.w_style1_a_height + 'px',
lineHeight:this.indexStore.w_style1_a_height + 'px',
borderLeftStyle:this.indexStore.language_a_border_first_left_styles,
borderLeftColor:this.indexStore.language_a_border_first_left_color,
borderLeftWidth:this.indexStore.language_a_border_first_left_width + 'px',
borderRightStyle:this.indexStore.language_a_border_first_right_styles,
borderRightColor:this.indexStore.language_a_border_first_right_color,
borderRightWidth:this.indexStore.language_a_border_first_right_width + 'px',
};
},
style1a:function(){
return {
display:this.indexStore.w_language_txt_show,
fontSize:this.indexStore.w_minbeds + 'px',
color:this.indexStore.w_fontColor,
width:this.indexStore.w_style1_a_width + 'px',
height:this.indexStore.w_style1_a_height + 'px',
lineHeight:this.indexStore.w_style1_a_height + 'px',
borderLeftStyle:this.indexStore.language_a_border_other_left_styles,
borderLeftColor:this.indexStore.language_a_border_other_left_color,
borderLeftWidth:this.indexStore.language_a_border_other_left_width + 'px',
borderRightStyle:this.indexStore.language_a_border_other_right_styles,
borderRightColor:this.indexStore.language_a_border_other_right_color,
borderRightWidth:this.indexStore.language_a_border_other_right_width + 'px',
};
},
style1as:function(){
return {
display:this.indexStore.w_language_txt_show,
fontSize:this.indexStore.w_minbeds + 'px',
width:this.indexStore.w_style1_a_width + 'px',
height:this.indexStore.w_style1_a_height + 'px',
lineHeight:this.indexStore.w_style1_a_height + 'px',
color:this.indexStore.w_fontColor,
borderLeftStyle:this.indexStore.language_a_border_last_left_styles,
borderLeftColor:this.indexStore.language_a_border_last_left_color,
borderLeftWidth:this.indexStore.language_a_border_last_left_width + 'px',
borderRightStyle:this.indexStore.language_a_border_last_right_styles,
borderRightColor:this.indexStore.language_a_border_last_right_color,
borderRightWidth:this.indexStore.language_a_border_last_right_width + 'px',
};
}
},
methods:{
boders:function(){
if (this.indexStore.language_a_border_right_show === 'show') {
return "#f00"
}else{
return '#f0f'
}
},
txtArr:function (arr) {
var _this = this;
if (!this.indexStore.txt_arr.length) {
this.indexStore.txt_arr.length = 0;
$.each(arr,function (index,item) {
_this.indexStore.txt_arr.push(item.lang);
});
}
_this.indexStore.txt_arr_str = _this.indexStore.txt_arr.join(',');
},
useOri:function(obj){
var arr = [];
$.each(obj,function(index,item){
console.log('ie8',item.lang);
arr.push(item.lang)
});
return arr;
}
},
created:function(){
try{
//JSON.stringify
var StorageVal = JSON.parse(JSON.stringify({"w_language_img":"http://txysen015.nbseo.cn/site/themes/T-XYSEN015/images/ch_ico.jpg,http://txys015.nbseo.cn/site/themes/T-XYS015/images/en_ico.png,http://txys015.nbseo.cn/site/themes/T-XYS015/images/en_ico.png","img_obj":["/static/image/graphicInfo/style-bg.png","/static/image/graphicInfo/style-bg.png","/static/image/graphicInfo/style-bg.png"],"w_language_img_show":"none","w_language_img_width":30,"w_language_img_height":30,"w_language_img_left":0,"w_language_img_top":0,"w_language_img_border_radius":0,"w_languageHeight":"20","w_languageWidth":"105","w_minbeds":12,"w_filletRadius":4,"w_languageFont":"SimHei","w_fontColor":"#98999b","w_borderColor":"#666","w_inputColor":"rgba(255,255,255,0)","w_languageStyle":"1","w_style2_padding_left":0,"w_style2_border_radius":0,"w_style1_border_radius":0,"w_style1_float":"left","w_style1_languageWidth":50,"w_style1_languageHeight":30,"w_style1_line_height":30,"w_style1_padding_top":0,"w_style1_padding_right":0,"w_style1_padding_bottom":0,"w_style1_padding_left":0,"w_style1_margin_top":0,"w_style1_margin_right":0,"w_style1_margin_bottom":0,"w_style1_margin_left":0,"w_a_hover_font_color":"#ff9a00","w_a_hover_bc_color":"rgba(255,255,255,0)","w_style1_text_align":"center","language_a_border_all_styles":"solid","language_a_border_all_color":"#000","language_a_border_all_width":0,"w_style1_a_width":50,"w_style1_a_height":20,"language_a_border_right_show":"show","language_a_border_first_left_styles":"solid","language_a_border_first_left_color":"#000","language_a_border_first_left_width":0,"language_a_border_first_right_styles":"solid","language_a_border_first_right_color":"#ddd","language_a_border_first_right_width":1,"language_a_border_last_left_styles":"solid","language_a_border_last_left_color":"#000","language_a_border_last_left_width":0,"language_a_border_last_right_styles":"solid","language_a_border_last_right_color":"#000","language_a_border_last_right_width":0,"language_a_border_other_left_styles":"solid","language_a_border_other_left_color":"#000","language_a_border_other_left_width":0,"language_a_border_other_right_styles":"solid","language_a_border_other_right_color":"#000","language_a_border_other_right_width":0,"img_items":[{"id":"1","lang":"中文","version":"pc","mark":"zh-cn","_mark":"zh","binding_url":null,"default":"1","status":"1","disabled":"false"},{"id":"2","lang":"英文","version":"pc","mark":"en-us","_mark":"en","binding_url":null,"default":"0","status":"1","disabled":"false"}],"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;
}
if(''){
this.infos = JSON.parse('');
}
//console.log('ie8',JSON.stringify(StorageVal))
//var listArr = '{"w_language_img":"http://txysen015.nbseo.cn/site/themes/T-XYSEN015/images/ch_ico.jpg,http://txys015.nbseo.cn/site/themes/T-XYS015/images/en_ico.png,http://txys015.nbseo.cn/site/themes/T-XYS015/images/en_ico.png","img_obj":["/static/image/graphicInfo/style-bg.png","/static/image/graphicInfo/style-bg.png","/static/image/graphicInfo/style-bg.png"],"w_language_img_show":"none","w_language_img_width":30,"w_language_img_height":30,"w_language_img_left":0,"w_language_img_top":0,"w_language_img_border_radius":0,"w_languageHeight":20,"w_languageWidth":105,"w_minbeds":12,"w_filletRadius":4,"w_languageFont":"SimHei","w_fontColor":"#98999b","w_borderColor":"#666","w_inputColor":"rgba(255,255,255,0)","w_languageStyle":"1","w_style2_padding_left":0,"w_style2_border_radius":0,"w_style1_border_radius":0,"w_style1_float":"left","w_style1_languageWidth":50,"w_style1_languageHeight":30,"w_style1_line_height":30,"w_style1_padding_top":0,"w_style1_padding_right":0,"w_style1_padding_bottom":0,"w_style1_padding_left":0,"w_style1_margin_top":0,"w_style1_margin_right":0,"w_style1_margin_bottom":0,"w_style1_margin_left":0,"w_a_hover_font_color":"#ff9a00","w_a_hover_bc_color":"rgba(255,255,255,0)","w_style1_text_align":"center","language_a_border_all_styles":"solid","language_a_border_all_color":"#000","language_a_border_all_width":0,"w_style1_a_width":50,"w_style1_a_height":20,"language_a_border_right_show":"show","language_a_border_first_left_styles":"solid","language_a_border_first_left_color":"#000","language_a_border_first_left_width":0,"language_a_border_first_right_styles":"solid","language_a_border_first_right_color":"#ddd","language_a_border_first_right_width":1,"language_a_border_last_left_styles":"solid","language_a_border_last_left_color":"#000","language_a_border_last_left_width":0,"language_a_border_last_right_styles":"solid","language_a_border_last_right_color":"#000","language_a_border_last_right_width":0,"language_a_border_other_left_styles":"solid","language_a_border_other_left_color":"#000","language_a_border_other_left_width":0,"language_a_border_other_right_styles":"solid","language_a_border_other_right_color":"#000","language_a_border_other_right_width":0,"img_items":[{"id":"1","lang":"中文","version":"pc","mark":"zh-cn","_mark":"zh","binding_url":null,"default":"1","status":"1","disabled":"false"},{"id":"2","lang":"英文","version":"pc","mark":"en-us","_mark":"en","binding_url":null,"default":"0","status":"1","disabled":"false"}],"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"},"txt_arr":[]}';
var listArr = JSON.parse(JSON.stringify({"w_language_img":"http://txysen015.nbseo.cn/site/themes/T-XYSEN015/images/ch_ico.jpg,http://txys015.nbseo.cn/site/themes/T-XYS015/images/en_ico.png,http://txys015.nbseo.cn/site/themes/T-XYS015/images/en_ico.png","img_obj":["/static/image/graphicInfo/style-bg.png","/static/image/graphicInfo/style-bg.png","/static/image/graphicInfo/style-bg.png"],"w_language_img_show":"none","w_language_img_width":30,"w_language_img_height":30,"w_language_img_left":0,"w_language_img_top":0,"w_language_img_border_radius":0,"w_languageHeight":20,"w_languageWidth":105,"w_minbeds":12,"w_filletRadius":4,"w_languageFont":"SimHei","w_fontColor":"#98999b","w_borderColor":"#666","w_inputColor":"rgba(255,255,255,0)","w_languageStyle":"1","w_style2_padding_left":0,"w_style2_border_radius":0,"w_style1_border_radius":0,"w_style1_float":"left","w_style1_languageWidth":50,"w_style1_languageHeight":30,"w_style1_line_height":30,"w_style1_padding_top":0,"w_style1_padding_right":0,"w_style1_padding_bottom":0,"w_style1_padding_left":0,"w_style1_margin_top":0,"w_style1_margin_right":0,"w_style1_margin_bottom":0,"w_style1_margin_left":0,"w_a_hover_font_color":"#ff9a00","w_a_hover_bc_color":"rgba(255,255,255,0)","w_style1_text_align":"center","language_a_border_all_styles":"solid","language_a_border_all_color":"#000","language_a_border_all_width":0,"w_style1_a_width":50,"w_style1_a_height":20,"language_a_border_right_show":"show","language_a_border_first_left_styles":"solid","language_a_border_first_left_color":"#000","language_a_border_first_left_width":0,"language_a_border_first_right_styles":"solid","language_a_border_first_right_color":"#ddd","language_a_border_first_right_width":1,"language_a_border_last_left_styles":"solid","language_a_border_last_left_color":"#000","language_a_border_last_left_width":0,"language_a_border_last_right_styles":"solid","language_a_border_last_right_color":"#000","language_a_border_last_right_width":0,"language_a_border_other_left_styles":"solid","language_a_border_other_left_color":"#000","language_a_border_other_left_width":0,"language_a_border_other_right_styles":"solid","language_a_border_other_right_color":"#000","language_a_border_other_right_width":0,"img_items":[{"id":"1","lang":"中文","version":"pc","mark":"zh-cn","_mark":"zh","binding_url":null,"default":"1","status":"1","disabled":"false"},{"id":"2","lang":"英文","version":"pc","mark":"en-us","_mark":"en","binding_url":null,"default":"0","status":"1","disabled":"false"}],"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"},"txt_arr":[]}));
if(listArr != null){
if(listArr === ''){
//兼容之前的挂件 因为数据源更改 导致原始挂件无数据 使用默认原始数据
var arr = this.useOri(this.infos);
this.$set('dataArr.txt_arr',arr)
}else{
this.dataArr = JSON.parse(listArr);
}
}
}catch(e){}
this.$set('inforLentgh',Object.keys(this.infos).length);
/**
* 兼容
*/
if (!this.indexStore.img_obj) {
this.indexStore.w_language_img = 'http://txysen015.nbseo.cn/site/themes/T-XYSEN015/images/ch_ico.jpg,http://txys015.nbseo.cn/site/themes/T-XYS015/images/en_ico.png,http://txys015.nbseo.cn/site/themes/T-XYS015/images/en_ico.png,http://txys015.nbseo.cn/site/themes/T-XYS015/images/en_ico.png,http://txys015.nbseo.cn/site/themes/T-XYS015/images/en_ico.png';
this.indexStore.img_obj = ['https://xcx05.71360.com//static/image/graphicInfo/style-bg.png','https://xcx05.71360.com//static/image/graphicInfo/style-bg.png','https://xcx05.71360.com//static/image/graphicInfo/style-bg.png','https://xcx05.71360.com//static/image/graphicInfo/style-bg.png','https://xcx05.71360.com//static/image/graphicInfo/style-bg.png'];
this.indexStore.w_language_img_show = 'none';
this.indexStore.w_language_img_width = 30;
this.indexStore.w_language_img_height = 30;
this.indexStore.w_language_img_left = 0;
this.indexStore.w_language_img_top = 0;
this.indexStore.w_language_img_border_radius = 0;
}
if (!this.indexStore.w_language_txt_show) {
this.indexStore.w_language_txt_show = 'block';
}
if (!this.indexStore.txt_arr) {
this.indexStore.txt_arr = [];
this.indexStore.txt_arr_str = '';
}
this.txtArr(this.infos);
console.log('this.infos','http://txysen015.nbseo.cn/site/themes/T-XYSEN015/images/ch_ico.jpg,http://txys015.nbseo.cn/site/themes/T-XYS015/images/en_ico.png,http://txys015.nbseo.cn/site/themes/T-XYS015/images/en_ico.png')
console.log('this.infos','/static/image/graphicInfo/style-bg.png')
console.log('this.infos','/static/image/graphicInfo/style-bg.png')
},
ready:function(){
if(typeof templet!="undefined"){
templet.checkaction(this);
}
}
});
}
}
if('1' == '0' || '1' == '0'){
//样式1
var ad = new AdMove("u507972");
$('#u507972').css('zIndex','999999');
var times = '10' || '10'
ad.Run(parseInt(times));
//关闭点击事件
$("#u507972 #open_page").on('click',function(){
$('#u507972').css("display","none");
});
};
if( parseInt($.browser.version) === 8 ){
console.log('ie8')
}else {
//只有dom存在,才绑定js
if (document.querySelector('#u507972')) {
;var num = 'u507972';
window['indexVm' + num] = new Vue({
el: "#u507972",
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":"服务热线:0577-64839808","msg":"","custom_pos_style":"1","custom_pos_style_left":0,"custom_pos_style_top":0,"custom_pos_style_rate":10,"animation_countsss":1,"widget_loading":"基础","widget_loading_li":"无动画","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_durasss":1,"animation_delaysss":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"},"isShows":false,"editBc":"#fff","is_hover":"0","width":150,"height":19};
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 {
$('#u507972').css({
'position': 'fixed',
'zIndex': '999999'
});
} catch (e) {
}
;
}
//挂件动画
try {
$.allWidgetAnimate(this, $('#u507972'));
} catch (e) {
}
;
},
ready: function () {
if (this.indexStore.custom_pos_style === '2') {
var t = setTimeout(function () {
try {
$("#u507972").draggable();
$("#u507972").draggable("disable");
} catch (e) {
}
clearTimeout(t);
}, 500);
} else if (this.indexStore.custom_pos_style === '1') {
setTimeout(function () {
try {
$("#u507972").draggable("enable");
} catch (e) {
}
}, 100);
}
if (typeof templet != "undefined") {
templet.checkaction(this);
}
// 兼容
if (!this.indexStore.is_hover) {
this.indexStore.is_hover = '0';
this.indexStore.hover_color = "#000";
this.indexStore.hover_bc_color = "#fff";
}
}
});
}
}
if( parseInt($.browser.version) === 8 ){
console.log('ie8')
}else{
//只有dom存在,才绑定js
if(document.querySelector('#u13523')){
var num = 'u13523';
window['indexVm'+num] = new Vue({
el:'#u13523',
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({"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":"rgba(152, 153, 155, 1)","w_link_bg_color":"rgba(255, 255, 255, 0)","w_link_bg_hover_color":"rgba(255, 255, 255, 0)","w_link_color":"rgba(152, 153, 155, 1)","w_link_hover_color":"rgba(255, 154, 0, 1)","clickName":0,"cityList":[{"linkTitles":"link_title1","linkLinks":"link_href1","linkTargets":"link_target1","linkAddPic":"添加图","linkDelPic":"删除图","imgalt":"imgalt1","imgUrl":"data/u12333/public/201710/20171023/2017102314571320155.jpg","isShowPic":"false","isShowPics":"isShowPics1","imgUrls":"imgUrls1","linkDeletes":"删除行"}],"cityLists":[{"title":"微信公众平台","href":"/","target":"_self","iconCLass":"fa-wechat","imgalt":"","isShowPic":"false","isShowPics":"true","imgUrls":"https://img03.71360.com/file/read/www/M00/EC/D1/wKj0iWGywGaAe3u_AAAiAcvjufo988.png"}],"rowNumber":1,"isShowWarn":false,"widget":"","links_styles":"0","w_color_width":98,"w_color_height":20,"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_font_color":"#0f0","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":["data/u12333/public/201710/20171023/2017102314571320155.jpg"],"switchArr":["false"],"w_flinks_pic_width":80,"w_flinks_pic_height":80,"w_flinks_pic_left":9,"w_flinks_pic_top":20,"w_link_bold_first":"normal","w_link_text_align_first":"right","w_link_color_first":"rgba(152, 153, 155, 1)","w_link_hover_color_first":"rgba(255, 154, 0, 1)","w_link_bg_color_first":"rgba(255, 255, 255, 0)","w_link_bg_hover_color_first":"rgba(255, 255, 255, 0)","w_color_width_first":98,"w_color_height_first":20,"w_link_fs_first":12,"w_link_open_first_set":"1","animation_countsss":1,"widget_loading":"基础","widget_loading_li":"无动画","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_durasss":1,"animation_delaysss":0,"link_title1":"微信公众平台","link_target1":"_blank","isShowPics1":"true","link_href1":"/","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"},"width":100,"height":44,"w_link_first_br":0,"w_link_second_br":0,"allwidth":98,"allheight":20,"isShows":false,"w_color_lineheight":40,"w_color_lineheight_first":40});
if(StorageVal != null){
this.indexStore = JSON.parse(StorageVal);
}
}catch(e){}
if(this.indexStore.links_styles == '0' || '0' == '0'){
//样式1
$('#u13523 #links_a ul li').hover(function(){
$(this).find('img').show();
},function(){
$(this).find('img').hide();
});
$('#u13523 #links_a ul li a').hover(function(){
$(this).css('color','#ff9a00' || 'rgba(255, 154, 0, 1)');
},function(){
$(this).css('color','#98999b' || 'rgba(152, 153, 155, 1)');
});
var w_link_open_first_set = '1' || '1';
$('#u13523 #links_a ul li a:first').hover(function(){
if (w_link_open_first_set == '1') {
$(this).css('color','#ff9a00' || 'rgba(255, 154, 0, 1)');
}else{
$(this).css('color','#ff9a00' || 'rgba(255, 154, 0, 1)');
}
},function(){
if (w_link_open_first_set == '1'){
$(this).css('color','#98999b' || 'rgba(152, 153, 155, 1)');
}else{
$(this).css('color','#98999b' || 'rgba(152, 153, 155, 1)');
}
});
}else if(this.indexStore.links_styles == '1' || '0' == '1'){
//样式2
var objs = {
w_links_emit_styles:'click' || 'click',
w_links_sport_time:'1000' || '1000',
w_links_sport_styles:'slide' || 'slide',
w_link_hover_color:'#ff9a00' || 'rgba(255, 154, 0, 1)',
w_link_color:'#98999b' || 'rgba(152, 153, 155, 1)'
}
$('#u13523 #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') {
$('#u13523 #links_a #flinks').off();
$('#u13523 #links_a #flinks').on('click',function(){
if (objs.w_links_sport_styles == 'slide') {
$('#u13523 #links_a ul').stop(true,true).slideToggle(parseInt(objs.w_links_sport_time));
}else{
$('#u13523 #links_a ul').stop(true,true).fadeToggle(parseInt(objs.w_links_sport_time));
}
$('#u13523 #links_a #flinks i').toggleClass('flinksi');
if ($('#u13523 #links_a #flinks i').hasClass('flinksi')) {
$('#u13523 #links_a #flinks i').css('transform','rotate(180deg)');
}else{
$('#u13523 #links_a #flinks i').css('transform','rotate(360deg)');
}
});
}else{
$('#u13523 #links_a #flinks').off();
$('#u13523 #links_a').hover(function(){
if (objs.w_links_sport_styles == 'slide') {
$('#u13523 #links_a ul').stop(true,true).slideDown(parseInt(objs.w_links_sport_time));
$('#u13523 #links_a #flinks i').css('transform','rotate(180deg)');
}else{
$('#u13523 #links_a ul').stop(true,true).fadeIn(parseInt(objs.w_links_sport_time));
$('#u13523 #links_a #flinks i').css('transform','rotate(180deg)');
}
},function(){
if (objs.w_links_sport_styles == 'slide') {
$('#u13523 #links_a ul').stop(true,true).slideUp(parseInt(objs.w_links_sport_time));
$('#u13523 #links_a #flinks i').css('transform','rotate(0deg)');
}else{
$('#u13523 #links_a ul').stop(true,true).fadeOut(parseInt(objs.w_links_sport_time));
$('#u13523 #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' || 'click',
w_links_sport_time:'1000' || '1000' ,
w_links_sport_styles:'slide' || 'slide',
w_link_hover_color:'#ff9a00' || 'rgba(255, 154, 0, 1)',
w_link_color:'#98999b' || 'rgba(152, 153, 155, 1)',
is_hover_leave:false
}
$('#u13523 #links_a ul li a ').hover(function(){
$(this).css('color',objs.w_link_hover_color);
},function(){
$(this).css('color',objs.w_link_color);
});
$('#u13523 #links_a > #flinks').hover(function(){
$('#u13523 #links_a ul').css('transform','scale(1)').css('opacity',1);
$('#u13523 #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) {
$('#u13523 #links_a ul').css('transform','scale(0.00001)').css('opacity',0);
$('#u13523 #links_a #flinks i').css('transform','rotate(0deg)');
}
},200);
});
$('#u13523 #links_a > ul').hover(function(){
$('#u13523 #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) {
$('#u13523 #links_a ul').css('transform','scale(0.00001)').css('opacity',0);
$('#u13523 #links_a #flinks i').css('transform','rotate(0deg)');
}
},200);
});
}
//挂件动画
try{
$.allWidgetAnimate(this,$('#u13523'));
}catch(e){};
},
ready:function(){
console.log('链接组件版本:2019-03-11')
if(typeof templet!="undefined"){
templet.checkaction(this);
}
$.each($('#u13523 #links_a a'), function(index, item) {
//防止页面无缘增加空链接 影响样式
if ($(item).attr('href') === '' && $(item).text().trim() === "") {
$('#u13523 #links_a a').eq(index).hide()
}
});
//链接的默认背景图片和悬浮背景图片处理
$('#u13523 #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+')')
}
})
}
});
}
}
//