var menu = function (obj) { var nid = parseInt(util.queryString("nid")); if (isNaN(nid)) { nid = 0; } if (nid > 0) { var navi = obj.find("li[data-nid=" + nid + "]"); var tid = parseInt(util.queryString("typeid")); if (isNaN(tid)) { tid = parseInt(util.queryString("tid")); } var li = obj.children(".xg_menuUl").children("li[data-tid=" + tid + "]"); if (li.length > 0) { li.addClass(li.attr("class").split(" ")[0] + "-select"); } else if (navi.length > 0) { navi.addClass(navi.attr("class").split(" ")[0] + "-select"); if (tid > 0) { var li = navi.find("li[data-tid=" + tid + "]"); if (li.length > 0) { li.addClass(li.attr("class").split(" ")[0] + "-select"); li.parentsUntil(".xg_menu", "li").each(function () { $(this).addClass($(this).attr("class").split(" ")[0] + "-select"); actived = true; return false; }); } } } } else { var url = util.createUrl(); if ( url.replace(document.location.host, "").indexOf(".") == -1 || url.indexOf("index.html") > 0 ) { var home = obj.find("li[home=1]"); if (home.length > 0) home.addClass(home.attr("class").split(" ")[0] + "-select"); } } var showType = obj.data("mobileshoweffect"); obj.find(".xg_menuMobile .xg_memu_btn").on("click", function () { if (showType == 0 || showType == 2) { $(this).next().css({ left: "0px" }); } else if (showType == 1 || showType == 3) { $(this).next().css({ top: "0px" }); } setTimeout(function () { obj.find("img").lazyload(); }, 300); }); obj.find(".xg_menuShade").on("click", function () { var css = {}; if (showType == 0) { css = { left: "-100%" }; } else if (showType == 1) { css = { top: "-100%" }; } else if (showType == 2) { css = { left: "100%" }; } else if (showType == 3) { css = { top: "100%" }; } $(this).parent().css(css); }); obj .children(".xg_menuMobile") .find(".xg_menuTitle1,.xg_menuTitle2,.xg_menuTitle3,.xg_menuTitle4") .on("click", function (e) { var ul = $(this).next(); if (ul.length == 0) { return true; } ul.slideToggle(); return true; }); var design = util.inDesign(); if (obj.data("droptype") == "1" && page.currentDevice() == 1) { var ul = obj.children(".xg_menuUl"); var needEffect = obj.data("effect"); if (!needEffect) { needEffect = 0; } var menulis = ul.children("li"); var droplist = obj.children(".xg_dropdownlist"); if (droplist.length > 0) { menulis.hover( function () { clearTimeout($(this).data("menuHide")); var id = $(this).data("nid"); if (!id) { id = $(this).data("tid"); } if (!id) { return; } var mWidth = $(this).parents(".container").width(); droplist.css({ width: document.documentElement.clientWidth + "px", height: "0px", "min-width": mWidth + "px", position: "absolute", top: ul.height() + "px", }); if (droplist.offset().left != 0) { var mLeft = parseInt(droplist.css("margin-left")); isNaN(mLeft) && (mLeft = 0); var left = mLeft - droplist.offset().left; droplist.css({ "margin-left": left + "px" }); } var list = droplist.children("[data-rid=" + id + "]"); if (list.length == 0) { return; } list.siblings().hide(); if (needEffect == 0) { list.show(); } else { list.stop().slideDown("fast"); } }, function () { var _this = $(this); var id = _this.data("nid"); if (!id) { id = _this.data("tid"); } if (!id) { return; } var list = droplist.children("[data-rid=" + id + "]"); if (list.length == 0) { return; } clearTimeout(_this.data("menuHide")); _this.data( "menuHide", setTimeout(function () { if (needEffect == 0) { list.hide(); } else { list.stop().slideUp("fast"); } }, 120) ); } ); droplist.children("div").hover( function () { var id = $(this).data("rid"); menulis.each(function () { var _that = $(this); var mid = _that.data("nid"); if (!mid) { mid = _that.data("tid"); } if (mid == id || mid == id) { clearTimeout(_that.data("menuHide")); } }); }, function () { if (needEffect == 0) { $(this).hide(); } else { $(this).stop().slideUp("fast"); } } ); } } }; var tab = { init: function (tabid) { var obj = $("#" + tabid); var evt = obj.data("switch"); if (!evt) { util.log("事件不存在"); return; } var datalist = obj.parents(".xg_list:first"); if (datalist.length > 0) { var className = ""; var parent = obj; while (!parent.is(datalist) && !className) { var strs = parent.attr("class").split(" "); for (var i = 0; i < strs.length; i++) { if (strs[i] && /^p[\d]+/.test(strs[i])) { className = strs[i]; break; } } parent = parent.parent(); } var tabs = null; if (className) { tabs = datalist.find("." + className); } else { tabs = datalist.find(".xg_tab"); } tabs.children(".xg_tab_l_t").find("ul li").on(evt, tab.show); } else { obj.children(".xg_tab_l_t").find("ul li").on(evt, tab.show); } }, show: function () { var _this = $(this); var index = _this.data("index"); var content = _this .parent() .parent() .parent() .find(".xg_tab_tt") .eq(parseInt(index)); content .addClass("xg_tab_tt-select") .siblings() .removeClass("xg_tab_tt-select"); var checkarr = $(this).attr("class").split(/[ ,]/); var pmcid = "xg_tab_tl"; for (j = 0; j < checkarr.length; j++) { var currcheck = checkarr[j].replace(".", ""); if (/p\d+(m|c|\-m|\-c)\S/.test(currcheck)) { if (/-select$/.test(currcheck)) continue; pmcid = currcheck; } } _this.addClass(pmcid + "-select"); $.each(_this.siblings(), function () { var arrCls = this.className.split(/[ ,]/); for (c = 0; c < arrCls.length; c++) { if (/-select$/.test(arrCls[c])) { $(this).removeClass(arrCls[c]); } } }); content.find(".xg_video").each(function () { myplayer.tabChange($(this).attr("id")); }); if (typeof page.registeTabReload != "undefined") { for (var i = 0; i < page.registeTabReload.length; i++) { page.registeTabReload[i](content, index); } } }, changeitem: function (currSelect) { if (currSelect.length > 0) { var csslist = currSelect.attr("class").split(/[ ,]/); var currids = "xg_tab_tl-select"; for (h = 0; h < csslist.length; h++) { if (/p\d+(m|c|\-m|\-c)\S/.test(csslist[h])) { if (/-select$/.test(csslist[h])) continue; currids = csslist[h]; currSelect .removeClass("xg_tab_tl-select") .addClass(currids + "-select"); } } } }, }; var banner = { init: function (panel) { panel.find(".container").click(function (e) { if ($(e.target).length > 0 && $(e.target).hasClass("container")) { $(this).prev().find("img").trigger("click"); e.stopPropagation(); } }); banner.autoChange(panel); var adaptive = panel.data("adaptive"); var firstImg = panel.find("img:first"); firstImg.addClass("lazyload"); firstImg.one( "animationend webkitAnimationEnd oAnimationEnd webkitTransitionEnd otransitionend oTransitionEnd msTransitionEnd transitionend", function () { firstImg.removeClass("lazyload"); } ); firstImg.one("load", function (e) { var maxWidth = e && e.target ? e.target.width : 0; var op = banner.getOptions(panel); op.onAfterChange = banner.afterChange; op.centerPadding = "0px"; op.index = 0; if (typeof op.animaType == "undefined" || op.animaType == 1) { var sc = panel.slick(op); panel.on("beforeChange", function ( event, slick, currentSlide, nextSlide ) { slick.$slides .eq(currentSlide) .find("[data-eventid]") .trigger("screenout"); }); panel.on("afterChange", function ( event, slick, currentSlide, nextSlide ) { var container = slick.$slides.eq(currentSlide); var device = page.currentDevice(); var hideClass = device == 1 ? "pc_an_hide" : "mobile_an_hide"; setTimeout(function () { container.find("[data-anids]").each(function () { var ok = false; String($(this).data("anids")) .split(",") .forEach(function (item) { if (!ok && animation.anFindEvent(item)) { ok = true; } }); if (ok) { $(this).removeClass(hideClass); } }); }, 17); container.find("[data-eventid]").trigger("screenin"); container .siblings() .find("[data-anids]") .each(function () { animation.removeAllAn($(this)); var ok = false; String($(this).data("anids")) .split(",") .forEach(function (item) { if (!ok && animation.anFindEvent(item)) { ok = true; } }); if (ok) { $(this).removeClass(hideClass).addClass(hideClass); } }); }); var maxWidth = function () { if (maxWidth > 0 && screen.width > maxWidth) { panel .find(".xg_banner_item") .css({ maxWidth: maxWidth + "px", overflow: "hidden", "margin-left": "auto", "margin-right": "auto", }); panel.find(".xg_banner_img img").css({ maxWidth: maxWidth + "px" }); } }; page.resize(maxWidth); maxWidth(); var hideClass = page.currentDevice() == 1 ? "pc_an_hide" : "mobile_an_hide"; var ans = []; panel.find("[data-anids]").each(function () { var ok = false; String($(this).data("anids")) .split(",") .forEach(function (item) { if (!ok && animation.anFindEvent(item)) { ok = true; } }); if (ok) { $(this).addClass(hideClass); ans.push($(this)); } }); $(function () { setTimeout(function () { setTimeout(function () { sc.find(".slick-current") .find("[data-anids]") .each(function () { $(this).removeClass(hideClass); }); }, 17); sc.find(".slick-current") .find("[data-eventid]") .trigger("screenin"); }, 100); }); } else { var relwidth = panel.data("width"); var relheight = panel.data("height"); var width = panel.width(); var height = panel.height(); if (width > relwidth) { width = relwidth; op.Width = relwidth; } if (height > relheight) { height = relheight; op.Height = relheight; } banner.initshutter(op); panel.find(".xg_banner_item").addClass("xg_banner_show"); if (width > relwidth) { panel .find(".shutter") .css({ width: width + "px", height: height + "px", "margin-left": "auto", "margin-right": "auto", overflow: "hidden", }); } } }); panel.find("img").each(function () { banner.loadImage($(this)); }); }, imgSrc: function (img) { var data = $(img).data("src"); if (data) { var src = data.split(","); if (src.length == 1) { return src[0].split(" ")[0]; } if (page.currentDevice() == 1) { return src[0].split(" ")[0]; } else { return src[1].split(" ")[0]; } } else { return $(img).data("src"); } }, afterChange: function () {}, loadImage: function (obj) { var src = banner.imgSrc(obj); if (!src) return; if (banner.imgCached(src)) { $(obj).attr("src", src); } else { setTimeout(function () { $(obj).attr("src", src); }, 0); } }, imgCached: function (src) { var img = new Image(); img.src = src; if (img.complete) { return true; } return false; }, getOptions: function (panel) { if (!panel) { typeof console == "undefined" && console.log("banner不存在"); return; } var op = {}; var data = panel.data("autoplay"); if (data) { op.autoplay = true; op.autoplaySpeed = data; } data = panel.data("loop"); data && (op.infinite = data == "1" ? true : false); data = panel.data("dots"); if (data == "1") { op.dots = true; } else { op.dots = false; } data = panel.data("arrows"); if (data == "1") { op.arrows = true; } else { op.arrows = false; } data = panel.data("effect"); op.animaType = data; op.speed = panel.data("speed") * 1000 == 0 ? 1000 : panel.data("speed") * 1000; if (typeof data == "undefined" || data == "1") { op.fade = false; op.cssEase = "ease"; } op.variableWidth = true; op.centerMode = true; op.responsive = [ { breakpoint: 768, settings: { arrows: false, variableWidth: false, centerMode: false }, }, ]; data = panel.data("mobilarrow"); if (data == "1") { op.responsive[0].settings.arrows = true; op.mobilarrow = true; } data = panel.data("width"); if (typeof data == "undefined") { op.Width = 1920; } else { op.Width = data; } data = panel.data("height"); if (typeof data == "undefined") { op.Height = 600; } else { op.Height = data; } return op; }, autoChangeWidth: function (container) { var device = page.currentDevice(); if (device == 2 && util.inDesign()) { $("html").addClass("xg_scrollwidth"); } if (parent != window) { if (device == 2) { container.css({ width: container.parent().width() + "px" }); } else { container.css({ width: "" }); } } else if (page.currentDevice() == 1) { container.css({ width: "" }); } }, resize: function (container) { var device = page.currentDevice(); var relwidth = container.data("width"); if (typeof relwidth == "undefined") { relwidth = 1920; } var relheight = container.data("height"); if (typeof relheight == "undefined") { relheight = 600; } var width = container.width(); var height = container.height(); if (width > relwidth) { width = relwidth; } if (height > relheight) { height = relheight; } container .find(".xg_banner_item") .css({ width: width, height: height, "max-width": width, "max-height": height, "min-width": width, "min-height": height, }); if (parent.$("#preview_page").length > 0) { setTimeout(function () { container .find(".xg_banner_item") .css({ width: width, height: height, "max-width": width, "max-height": height, "min-width": width, "min-height": height, }); }, 40); } var adaptive = container.data("adaptive"); if (device == 1) { if (container.data("effect") == 1) { container .find(".slick-list") .css({ width: width + "px", height: height + "px", "margin-left": "auto", "margin-right": "auto", overflow: "hidden", }); if (adaptive) { container .find(".xg_banner_img img") .css({ width: "", height: "", "min-width": "", "min-height": "", left: "", "margin-left": "", top: "", "margin-top": "", }); } else { container .find(".xg_banner_img img") .css({ width: relwidth + "px", height: relheight + "px", "min-width": relwidth + "px", "min-height": relheight + "px", left: "50%", position: "relative", "margin-left": (-1 * relwidth) / 2 + "px", }); } } else if (adaptive) { container .find(".xg_banner_img img") .css({ width: "100%", height: "100%", position: "relative", "min-width": "", "min-height": "", left: "", "margin-left": "", top: "", "margin-top": "", }); } else { container .find(".xg_banner_img img") .css({ width: relwidth + "px", height: relheight + "px", "min-width": relwidth + "px", "min-height": relheight + "px", left: "50%", position: "relative", "margin-left": (-1 * relwidth) / 2 + "px", }); } } else { container .find(".xg_banner_img img") .css({ width: "100%", height: "100%", position: "relative", "min-width": "", "min-height": "", left: "", "margin-left": "", top: "", "margin-top": "", }); } }, autoChange: function (container) { var pcAdaptive = container.data("adaptive"); if ( parent != window && page.currentDevice() == 2 && container.parent().width() == document.documentElement.clientWidth ) { var width = container.parent().width(); width = screen.width < width ? screen.width : width; container.css({ width: width + "px" }); } container.data("device", page.currentDevice()); var resize = function () { banner.autoChangeWidth(container); var deivce = page.currentDevice() == 1; if (!pcAdaptive && deivce) { container.css("height", ""); } else { mobileHeight = container.width() / (parseInt(container.data("scalheight")) / 100); pcHeight = (container.data("height") / container.data("width")) * container.width(); if (!deivce) { container.css("height", mobileHeight + "px"); } else { container.css("height", pcHeight + "px"); } } banner.resize(container); if (deivce == container.data("device")) { return; } container.data("device", page.currentDevice()); container.find(".xg_banner_img img").each(function (i) { banner.loadImage($(this)); }); }; $(window).on("resize", function () { setTimeout(function () { resize(); }, 17); }); resize(); }, initshutter: function (option) { $(".shutter").shutter({ shutterW: option.Width, shutterH: option.Height, isAutoPlay: option.autoplay, playInterval: option.autoplaySpeed, curDisplay: 0, fullPage: false, dotsNav: option.dots, arrows: option.arrows, animaType: option.animaType, duration: option.speed, mobilarrow: option.mobilarrow, currentDevice: page.currentDevice(), }); }, }; $(function () { menu($("#if1798075ff88e13e9583b7")); }); $(function () { menu($("#if1798012ca002ce1b70bc5")); }); (function (root) { root.find(".xg_list>div>.data_col ").each(function () { var _this = $(this).children(); _this.next().hide(); _this.find(".xg_img ").eq(1).hide(); _this .find(".xg_img ") .eq(0) .click(function () { root.find(".xg_list>div>.data_col>.row:odd").hide(); root .find(".xg_list>div>.data_col>.row:even") .find(".xg_img:even") .show(); root .find(".xg_list>div>.data_col>.row:even") .find(".xg_img:odd") .hide(); _this.next().show(); $(this).hide(); $(this).parent().next().children().show(); }); _this .find(".xg_img ") .eq(1) .click(function () { root.find(".xg_list>div>.data_col>.row:odd").hide(); _this.next().hide(); $(this).hide(); $(this).parent().prev().children().show(); }); }); root.find(".xg_list .data_col ").eq(0).children().next().show(); root .find(".xg_list .data_col ") .eq(0) .children() .find(".xg_img ") .eq(1) .show(); root .find(".xg_list .data_col ") .eq(0) .children() .find(".xg_img ") .eq(0) .hide(); })($("#rf1798_07a0989e53e314c61")); (function (root) { root.find(".xg_list>div>.data_col ").each(function () { var _this = $(this).children(); _this.next().hide(); _this.find(".xg_img ").eq(1).hide(); _this .find(".xg_img ") .eq(0) .click(function () { root.find(".xg_list>div>.data_col>.row:odd").hide(); root .find(".xg_list>div>.data_col>.row:even") .find(".xg_img:even") .show(); root .find(".xg_list>div>.data_col>.row:even") .find(".xg_img:odd") .hide(); _this.next().show(); $(this).hide(); $(this).parent().next().children().show(); }); _this .find(".xg_img ") .eq(1) .click(function () { root.find(".xg_list>div>.data_col>.row:odd").hide(); _this.next().hide(); $(this).hide(); $(this).parent().prev().children().show(); }); }); root.find(".xg_list .data_col ").eq(0).children().next().show(); root .find(".xg_list .data_col ") .eq(0) .children() .find(".xg_img ") .eq(1) .show(); root .find(".xg_list .data_col ") .eq(0) .children() .find(".xg_img ") .eq(0) .hide(); })($("#rf1798_05b40b94fa31adfdf")); $(function () { tab.init("if17980dab4c268ab55b800"); var getcount = 10; var getindex = setInterval(function () { var tabselectdefault = $("#if17980dab4c268ab55b800 .xg_tab_tl-select"); if (getcount-- <= 0 || $(tabselectdefault).length <= 0) { clearInterval(getindex); return; } tab.changeitem(tabselectdefault); }, 300); }); (function (root) { root.find(".xg_list>div>.data_col ").each(function () { var _this = $(this).children(); _this.next().hide(); _this.find(".xg_img ").eq(1).hide(); _this .find(".xg_img ") .eq(0) .click(function () { root.find(".xg_list>div>.data_col>.row:odd").hide(); root .find(".xg_list>div>.data_col>.row:even") .find(".xg_img:even") .show(); root .find(".xg_list>div>.data_col>.row:even") .find(".xg_img:odd") .hide(); _this.next().show(); $(this).hide(); $(this).parent().next().children().show(); }); _this .find(".xg_img ") .eq(1) .click(function () { root.find(".xg_list>div>.data_col>.row:odd").hide(); _this.next().hide(); $(this).hide(); $(this).parent().prev().children().show(); }); }); root.find(".xg_list .data_col ").eq(0).children().next().show(); root .find(".xg_list .data_col ") .eq(0) .children() .find(".xg_img ") .eq(1) .show(); root .find(".xg_list .data_col ") .eq(0) .children() .find(".xg_img ") .eq(0) .hide(); })($("#rf1798_0e6f33b8f2da29422")); $(function () { menu($("#if179800a4267fa4b795f79")); }); (function (root) { /*LayoutRow*/ $(function () { $("#xg_header").css({ position: "fixed", top: 0, left: 0, "z-index": "9999", width: "100%", }); }); /*LayoutRow*/ })($("#rf1798_0a904198c4952bbc9")); banner.init($("#i73f566b305986976")); $(function () { tab.init("i15d439c10d2d591f"); var getcount = 10; var getindex = setInterval(function () { var tabselectdefault = $("#i15d439c10d2d591f .xg_tab_tl-select"); if (getcount-- <= 0 || $(tabselectdefault).length <= 0) { clearInterval(getindex); return; } tab.changeitem(tabselectdefault); }, 300); }); animation.config["an46"] = { id: "46", clientIndex: "1c9f43235d5c81c4", timingFunction: "", duration: "1", delay: "0", type: 10, name: "46_政府热线_1显示", anName: "an_tran_46", library: "", device: 1, loop: 1, resume: 0, clear: 1, }; animation.config["an47"] = { id: "47", clientIndex: "1c9f43235d5c81c4", timingFunction: "", duration: "1", delay: "0", type: 10, name: "47_政府热线_消失", anName: "an_tran_47", library: "", device: 1, loop: 1, resume: 0, clear: 1, }; animation.regist($("[data-eventid='1c9f43235d5c81c4']"), [ { name: "鼠标悬停", id: 103, event: "mouseenter", an: [{ id: 46, anName: "an_tran_46", device: 1 }], device: 1, doCount: 0, count: 0, }, { name: "鼠标移出", id: 104, event: "mouseleave", an: [{ id: 47, anName: "an_tran_47", device: 1 }], device: 1, doCount: 0, count: 0, }, ]); animation.config["an42"] = { id: "42", clientIndex: "8c18c741c7296ada", timingFunction: "", duration: "1", delay: "0", type: 10, name: "42_金融行业_显现", anName: "an_tran_42", library: "", device: 1, loop: 1, resume: 0, clear: 1, }; animation.config["an43"] = { id: "43", clientIndex: "8c18c741c7296ada", timingFunction: "", duration: "1", delay: "0", type: 10, name: "43_金融行业_小时", anName: "an_tran_43", library: "", device: 1, loop: 1, resume: 0, clear: 1, }; animation.regist($("[data-eventid='8c18c741c7296ada']"), [ { name: "鼠标悬停", id: 116, event: "mouseenter", an: [ { id: 42, anName: "an_tran_42", device: 1 }, { id: 47, anName: "an_tran_47", device: 1 }, ], device: 1, doCount: 0, count: 0, }, { name: "鼠标移出", id: 117, event: "mouseleave", an: [ { id: 46, anName: "an_tran_46", device: 1 }, { id: 43, anName: "an_tran_43", device: 1 }, ], device: 1, doCount: 0, count: 0, }, ]); animation.config["an40"] = { id: "40", clientIndex: "ee82840dbc62fadf", timingFunction: "", duration: "1", delay: "0", type: 10, name: "40_汽车行业_显现", anName: "an_tran_40", library: "", device: 1, loop: 1, resume: 0, clear: 1, }; animation.config["an41"] = { id: "41", clientIndex: "ee82840dbc62fadf", timingFunction: "", duration: "1", delay: "0", type: 10, name: "41_汽车行业_消失", anName: "an_tran_41", library: "", device: 1, loop: 1, resume: 0, clear: 1, }; animation.regist($("[data-eventid='ee82840dbc62fadf']"), [ { name: "鼠标悬停", id: 107, event: "mouseenter", an: [ { id: 40, anName: "an_tran_40", device: 1 }, { id: 47, anName: "an_tran_47", device: 1 }, ], device: 1, doCount: 0, count: 0, }, { name: "鼠标移出", id: 108, event: "mouseleave", an: [ { id: 41, anName: "an_tran_41", device: 1 }, { id: 46, anName: "an_tran_46", device: 1 }, ], device: 1, doCount: 0, count: 0, }, ]); animation.config["an44"] = { id: "44", clientIndex: "540ff9a10cb0c122", timingFunction: "", duration: "1", delay: "0", type: 10, name: "44_制造流通_显现", anName: "an_tran_44", library: "", device: 1, loop: 1, resume: 0, clear: 1, }; animation.config["an45"] = { id: "45", clientIndex: "540ff9a10cb0c122", timingFunction: "", duration: "1", delay: "0", type: 10, name: "45_制造流通_消失", anName: "an_tran_45", library: "", device: 1, loop: 1, resume: 0, clear: 1, }; animation.regist($("[data-eventid='540ff9a10cb0c122']"), [ { name: "鼠标悬停", id: 109, event: "mouseenter", an: [ { id: 44, anName: "an_tran_44", device: 1 }, { id: 47, anName: "an_tran_47", device: 1 }, ], device: 1, doCount: 0, count: 0, }, { name: "鼠标移出", id: 110, event: "mouseleave", an: [ { id: 45, anName: "an_tran_45", device: 1 }, { id: 46, anName: "an_tran_46", device: 1 }, ], device: 1, doCount: 0, count: 0, }, ]); animation.config["an38"] = { id: "38", clientIndex: "1b8403ac84a6164b", timingFunction: "", duration: "1", delay: "0", type: 10, name: "38_地产物业_显现", anName: "an_tran_38", library: "", device: 1, loop: 1, resume: 0, clear: 1, }; animation.config["an39"] = { id: "39", clientIndex: "1b8403ac84a6164b", timingFunction: "", duration: "1", delay: "0", type: 10, name: "39_地产物业_消失", anName: "an_tran_39", library: "", device: 1, loop: 1, resume: 0, clear: 1, }; animation.regist($("[data-eventid='1b8403ac84a6164b']"), [ { name: "鼠标悬停", id: 111, event: "mouseenter", an: [ { id: 38, anName: "an_tran_38", device: 1 }, { id: 47, anName: "an_tran_47", device: 1 }, ], device: 1, doCount: 0, count: 0, }, { name: "鼠标移出", id: 112, event: "mouseleave", an: [ { id: 39, anName: "an_tran_39", device: 1 }, { id: 46, anName: "an_tran_46", device: 1 }, ], device: 1, doCount: 0, count: 0, }, ]); animation.config["an21"] = { id: "21", clientIndex: "c2c7aba7b2e48e85", timingFunction: "", duration: "1", delay: "0", type: 10, name: "服务保障_框1", anName: "an_tran_21", library: "", device: 1, loop: 1, resume: 0, clear: 1, }; animation.config["an22"] = { id: "22", clientIndex: "c2c7aba7b2e48e85", timingFunction: "", duration: "1", delay: "0", type: 10, name: "服务保障_1框消失", anName: "an_tran_22", library: "", device: 1, loop: 1, resume: 0, clear: 1, }; animation.regist($("[data-eventid='c2c7aba7b2e48e85']"), [ { name: "鼠标单击", id: 113, event: "click", an: [{ id: 21, anName: "an_tran_21", device: 1 }], device: 1, doCount: 0, count: 0, }, ]); animation.config["an23"] = { id: "23", clientIndex: "b7c7b98ba80186f0", timingFunction: "", duration: "1", delay: "0", type: 10, name: "服务保障_框2", anName: "an_tran_23", library: "", device: 1, loop: 1, resume: 0, clear: 1, }; animation.config["an24"] = { id: "24", clientIndex: "b7c7b98ba80186f0", timingFunction: "", duration: "1", delay: "0", type: 10, name: "服务保障_框2消失", anName: "an_tran_24", library: "", device: 1, loop: 1, resume: 0, clear: 1, }; animation.regist($("[data-eventid='b7c7b98ba80186f0']"), [ { name: "鼠标单击", id: 114, event: "click", an: [{ id: 23, anName: "an_tran_23", device: 1 }], device: 1, doCount: 0, count: 0, }, ]); animation.config["an25"] = { id: "25", clientIndex: "cb92b267f0c83f58", timingFunction: "", duration: "1", delay: "0", type: 10, name: "服务保障_框3", anName: "an_tran_25", library: "", device: 1, loop: 1, resume: 0, clear: 1, }; animation.config["an26"] = { id: "26", clientIndex: "cb92b267f0c83f58", timingFunction: "", duration: "1", delay: "0", type: 10, name: "服务保障_框3消失", anName: "an_tran_26", library: "", device: 1, loop: 1, resume: 0, clear: 1, }; animation.regist($("[data-eventid='cb92b267f0c83f58']"), [ { name: "鼠标单击", id: 115, event: "click", an: [{ id: 25, anName: "an_tran_25", device: 1 }], device: 1, doCount: 0, count: 0, }, ]); animation.config["an285"] = { id: "285", clientIndex: "478b10b596d1ecfe", timingFunction: "", duration: "1", delay: "0", type: 1, name: "285_成功案例_向上飞入", anName: "an_tran_285", library: "fadeInUp", device: 1, loop: 1, resume: 1, clear: 0, }; $(function () { $("#WhatsApppage").on("click", function () { if (util.inDesign()) { return; } close(); showPopup("WhatsappPopup"); }); $("#Facebookpage").on("click", function () { if (util.inDesign()) { return; } close(); showPopup("FacebookPopup"); }); $("#Twitterpage").on("click", function () { if (util.inDesign()) { return; } close(); showPopup("TwitterPopup"); }); $("#MAILpage").on("click", function () { if (util.inDesign()) { return; } close(); showPopup("MAILPopup"); }); $("#TELpage").on("click", function () { if (util.inDesign()) { return; } close(); showPopup("TELPopup"); }); $("#WXpage").on("click", function () { if (util.inDesign()) { return; } close(); showPopup("WXPopup"); }); $("#QQpage").on("click", function () { if (util.inDesign()) { return; } close(); showPopup("QQPopup"); }); $(".xg_closePopup").on("click", function () { hidePopip(); }); function showPopup(idName) { $(".xg_popupBox").fadeIn(200); $("#" + idName).fadeIn(200); } function hidePopip(idName) { $(".xg_popupBox").fadeOut(); $("#MAILPopup").fadeOut(); $("#TELPopup").fadeOut(150); $("#WXPopup").fadeOut(); $("#QQPopup").fadeOut(150); $("#WhatsappPopup").fadeOut(150); $("#FacebookPopup").fadeOut(150); $("#TwitterPopup").fadeOut(150); } function close() { $("#MAILPopup").hide(); $("#TELPopup").hide(); $("#WXPopup").hide(); $("#QQPopup").hide(); $("#WhatsappPopup").hide(); $("#FacebookPopup").hide(); $("#TwitterPopup").hide(); } });