"use strict"; ! function(e) { function i() { return { "127.0.0.1": "development", localhost: "development", "192.168.1.16": "development", "dev.f2e.goldwind.com": "development" } [location.hostname] || "production" } var t = { development: { search: "/mock/result.json", list: "/mock/list.json", article: "/mock/article.json", photo: "/mock/photo.json", file: "/mock/file.json", timeline: "/mock/about/timeline.json", "news-video": "/mock/news/video.json", "news-about": "/mock/news/about.json", "news-case": "/mock/news/case.json", "news-user": "/mock/news/user.json", "about-report": "/mock/about/report.json", "invest-sheet": "/mock/invest/sheet.json", faq: "/mock/invest/faq.json" } }, o = "http://gw-cn.bdc.goldwind.com.cn/"; t.production = { search: o + "/goldwind/tbnewscontroller.do?querybykeyword", list: o + "/goldwind/tbnewscontroller.do?querynewslist", article: o + "/goldwind/tbnewscontroller.do?querynewsdetail", photo: o + "/goldwind/tbnewscontroller.do?querynewsattach", file: o + "/goldwind/tbnewscontroller.do?querynewsattach", timeline: o + "/goldwind/tbnewscontroller.do?querybigevents&date=desc", "news-video": o + "/goldwind/tbnewscontroller.do?querynewsattach", "news-about": o + "/goldwind/tbnewscontroller.do?querynewsattach", "news-case": o + "/goldwind/tbnewscontroller.do?querynewsattach", "news-user": o + "/goldwind/tbnewscontroller.do?querynewsattach", "about-report": "/mock/about/report.json", "invest-sheet": o + "/goldwind/tbnewscontroller.do?querynewsattach", faq: o + "/goldwind/tbnewscontroller.do?querynewslist" }, "production" === i() && (vue.config.silent = !0, vue.config.productiontip = !1, vue.config.errorhandler = $.noop), $.extend(e.common, { getenv: i, urlmap: t[i()] }) } (app), function(e) { function i(e) { var i = (e || location.search).slice(1).split("&"), t = {}; return i.foreach(function(e) { e = e.split("="), t[e[0]] = decodeuricomponent(e[1] || "") }), json.parse(json.stringify(t)) } function t(e) { if (!isnan(e)) { var i = parseint(e % 60), t = parseint(e / 60 % 60), o = parseint(e / 3600 % 24); return (o = o < 10 ? "0" + o: o) + ":" + (t = t < 10 ? "0" + t: t) + ":" + (i = i < 10 ? "0" + i: i) } } "production" === (0, e.common.getenv)() && (vue.config.silent = !0, vue.config.productiontip = !1, vue.config.errorhandler = $.noop), $.extend(e.common, { mountdialog: function(e, i) { $.get(e.template, function(t) { $.extend(e, { template: t }); var o = new(vue.extend(e))({ el: document.createelement("div") }); $("body").append(o.$el), $.isfunction(i) && i(o) }) }, asynccomponent: function o(e, i, t) { var s = e.template; o.cache = o.cache || {}, (o.cache[s] ? $.deferred().resolve(o.cache[s]).promise() : $.get(s)).then(function(t) { o.cache[s] = t; var n = $.extend({}, e, { template: t }); i(n) }).fail(function(e, i, o) { t(o) }) }, getquery: i, getdetail: function(t, o) { var s = e.common.urlmap.article, n = i(); $.getjson(s, n, function(e) { if (0 === e.status) { var i = e.data; for (var s in i) t[s] = i[s]; o && o() } }) }, sizeformat: function(e) { var i = math.pow(1024, 3), t = math.pow(1024, 2), o = math.pow(1024, 1); return e > i ? (e / i).tofixed(2) + "g": e > t ? (e / t).tofixed(2) + "m": e > o ? (e / o).tofixed(2) + "kb": e + "b" }, formatduration: t, getduration: function(e) { e.foreach(function(e) { var i = document.createelement("video"); i.addeventlistener("durationchange", function() { var o = t(i.duration); vue.set(e, "duration", o) }), i.preload = "metadata", i.src = e.url }) }, urlrewrite: function() { $("body").on("click", "a", function(e) { var i = $(this).attr("href"); "/" !== i[0] || ("/index.html" === i.slice( - 11) ? (e.preventdefault(), location.href = i.slice(0, -11) || "/") : i.indexof(".html") >= 0 && (e.preventdefault(), location.href = i.replace(".html", ""))) }) }, scrollintoview: function() { $("a.button-down-light, a.button-down-dark").each(function() { $(this).click(function(e) { var i = $(this).attr("href"); "#" === i[0] && (e.preventdefault(), $("html, body").animate({ scrolltop: $(i).offset().top }, 600)) }) }) }, fullscreen: function() { var e, i, t = $("html").hasclass("ie9"); function o() { var o = $(window).width() > 768; ($(window).width() !== e || $(window).height() !== i) && (e = $(window).width(), i = $(window).height(), $("div.fullscreen-inner").each(function() { if (!$(this).hasclass("fullscreen-static") && 1 !== $(this).data("skip")) { var e, i = 0; i += parseint($(this).css("padding-top")), i += parseint($(this).css("padding-bottom")), $(this).children().each(function() { var e = $(this); e.is(":visible") && (i += e.outerheight(!0)) }), $(this).css("min-height", i + 0); var s = $(this).find(".fullscreen-nav-even").length > 0, n = $(window).height() / 100; if (e = o ? s ? 1.3 * i: i + 30 * n: s ? 1.15 * i: i + 30 * n, $(this).closest(".fullscreen").css("min-height", e + 0), t) { var r = 0; $(this).find("dt").height("auto").each(function() { r = math.max(r, $(this).height()) }).height(r) } } })) } setinterval(o, 50), o() }, fixpaper: function() { function e() { var e = $(window).width() > 768; $("div.paper-inner").each(function() { var i = $(this), t = i.find(".paper-pic"), o = i.find(".paper-info"), s = t.outerheight(); if (e) if (s < o.height()) { var n = i.find("h2").outerheight(), r = parsefloat(i.find("h2").next().css("margin-top")); t.css("margin-top", n + r) } else t.css("margin-top", 0) }) } setinterval(e, 50), e() }, ie: function() { var e = parseint((/msie (\d+)/.exec(navigator.useragent.tolowercase()) || [])[1]); return isnan(e) && (e = parseint((/trident\/.*; rv:(\d+)/.exec(navigator.useragent.tolowercase()) || [])[1])), !isnan(e) && e }, dateformat: function(e, i) { if (i = i || "yyyy-mm-dd", "string" == typeof e) { var t = e.match(/(\/date\((\d+)\)\/)/); t && t.length >= 3 && (e = parseint(t[2])) } if (! (e = new date(e)) || "invalid date" === e.toutcstring()) return ""; var o = { m: e.getmonth() + 1, d: e.getdate(), h: e.gethours(), m: e.getminutes(), s: e.getseconds(), q: math.floor((e.getmonth() + 3) / 3), s: e.getmilliseconds() }; return i = i.replace(/([ymdhmsqs])+/g, function(i, t) { var s = o[t]; return void 0 !== s ? (i.length > 1 && (s = (s = "0" + s).substr(s.length - 2)), s) : "y" === t ? (e.getfullyear() + "").substr(4 - i.length) : i }) } }) } (app), function(e) { var i = e.common, t = { data: function() { return { busy: !0, list: [], count: 0, limit: 10, current: 1 } }, components: { pagination: function(e, t) { var o = { name: "pagination", template: "/templates/pagination.html", props: ["count", "limit", "current", "link-template"], data: function() { return { visiblecount: 6 } }, computed: { pages: function() { return math.ceil(this.count / this.limit) }, list: function() { return math.min(this.visiblecount, this.pages) }, startpage: function() { var e = this.current, i = this.pages - e, t = math.max(this.visiblecount - i, math.floor(this.list / 2)); return math.max(0, e - t) } }, methods: { geturl: function(e) { var i = this.linktemplate || "#__page__"; return i.replace(/__page__/g, e) } } }; i.asynccomponent(o, e, t) } }, watch: { params: { handler: function() { 1 === this.current ? this.getdata() : this.current = 1 }, deep: !0 }, current: function() { this.getdata() } }, created: function() { this.getdata() }, filters: { dateformat: i.dateformat }, methods: { getdata: function() { var e = this; e.busy = !0; var t = $.extend({ page: e.current }, e.params), o = i.urlmap[e.urlkey]; $.getjson(o, t, function(i) { if (0 === i.status) { ["list", "count", "limit"].foreach(function(t) { e[t] = i.data[t] }) } }).always(function() { e.busy = !1 }) }, pagechanged: function(e, i) { this.current = e, i && i.preventdefault() }, enablepreview: function(e) { return "pdf" === e } } }; e.list = t } (app), function(e) { var i; e.header = function(e) { new vue({ el: e, data: { toggle: !1, search: !1, headerenactive: !1 }, mounted: function() { var e, t = this, o = t.$el, s = $(o); i = $(".nav-toggle", o), s.on("click", ".nav-sub a", function() { var e = $(this).closest(".nav-item"); settimeout(function() { e.toggleclass("nav-item-selected") }, 0) }), s.on("click", ".nav-dropdown", function(e) { e.preventdefault(), e.stoppropagation(); var i = $(this).closest(".nav-item"), o = i.siblings(".nav-item-sm-selected"); o.length > 0 && (o.removeclass("nav-item-sm-selected"), o.each(function(e, i) { t.slideup($(i).children(".nav-sub")) })), i.toggleclass("nav-item-sm-selected"), t.slidetoggle(i.children(".nav-sub")) }), s.mousemove(function(i) { t.ismobile() || (cleartimeout(e), e = settimeout(function() { var e; e = $(i.target).is(".nav-item") ? $(i.target) : $(i.target).closest(".nav-item"), s.find(".nav-item-selected").removeclass("nav-item-selected"), e.length > 0 && e.addclass("nav-item-selected") }, 20)) }), s.mouseleave(function() { t.ismobile() || (cleartimeout(e), s.find(".nav-item-selected").removeclass("nav-item-selected")) }), function(e) { var i = 0, t = 0, o = 0, s = 0, n = 0; function r() { var r, l = document.documentelement.classname.indexof("noscroll") >= 0; l || (i = e.offsetheight, o = window.pageyoffset, n = s - o, t = parseint($(e).attr("top") || 0) + n, o <= 0 ? (r = 0, $(e).removeclass("header-fixed")) : n > 0 ? (r = t > 0 ? 0 : t, $(e).addclass("header-fixed")) : n < 0 && (r = math.abs(t) > i ? -i: t), $(e).attr("top", r).css("transform", "translatey(" + r + "px)"), $(e).css("overflow", "hidden"), settimeout(function() { $(e).css("overflow", "") }, 100), s = o) } window.addeventlistener("scroll", r), settimeout(r, 100) } (o) }, watch: { toggle: function(e) { $("html").toggleclass("noscroll", e) } }, methods: { ismobile: function() { return i.is(":visible") }, slideup: function(e) { this.ismobile() && $(e).slideup() }, slidedown: function(e) { this.ismobile() && $(e).slidedown() }, slidetoggle: function(e) { this.ismobile() && $(e).slidetoggle() }, closesearch: function() { this.search = !1 } }, directives: { autofocus: { inserted: function(e) { e.focus() } } } }) } } (app), function(e) { e.tab = function() { $(".tab").each(function() { var e = $(this).find(".tab-item"); $(this).find(".tab-hd").children().each(function(i) { $(this).click(function(t) { t.preventdefault(), $(this).siblings().removeclass("selected").end().addclass("selected"), e.eq(i).siblings().removeclass("selected").end().addclass("selected") }) }) }) }, e.slidetab = function(e) { var i = $(e).find(".slide-tab-bd"); i.slick({ arrows: !1, adaptiveheight: !0 }), i.on("afterchange", function(i, t, o) { $(e).find(".slide-tab-hd").children().eq(o).siblings().removeclass("selected").end().addclass("selected") }), $(e).find(".slide-tab-hd").children().each(function(e) { $(this).click(function() { $(this).siblings().removeclass("selected").end().addclass("selected"), i.slick("slickgoto", e) }) }) } } (app), function(e) { "function" == typeof define && define.amd ? define(["jquery"], e) : "undefined" != typeof exports ? module.exports = e(require("jquery")) : e(jquery) } (function(e) { var i = window.slick || {}; (i = function() { var i = 0; return function(t, o) { var s, n = this; n.defaults = { accessibility: !0, adaptiveheight: !1, appendarrows: e(t), appenddots: e(t), arrows: !0, asnavfor: null, prevarrow: '', nextarrow: '', autoplay: !1, autoplayspeed: 3e3, centermode: !1, centerpadding: "50px", cssease: "ease", custompaging: function(i, t) { return e('