var host = "https://fz.51pmf.cn/", baseapi = host + "home/", keyName = "__my_u_info__",
g_win_params = "__gwinparam__", g_main_website = "https://www.51pmf.cn/", g_sourceName = {
gp: "\u516c\u62cd\u7f51",
jd: "\u4eac\u4e1c",
tb: "\u6dd8\u5b9d",
ss: "\u8bc9\u8bbc\u7f51",
caa: "\u62cd\u5356\u534f\u4f1a",
icbc: "\u5de5\u5546\u94f6\u884c",
cbex: "\u5317\u4ea4\u4e92\u8054"
}, g_u_info = null;
$(function () {
function a() {
for (var h = $(".foot").find("a"), a = 0; a < h.length; a++) {
var b = $(h[a]);
if (0 < b.attr("href").indexOf("www.miitbeian.gov.cn")) {
b.attr("href", "https://beian.miit.gov.cn");
b.text("\u6caaICP\u590718023806\u53f7-1");
break
}
}
}
function c() {
var a = setInterval(function () {
var b = $(".foot");
if (0 == b.length) clearInterval(a), b.show(); else {
var c = Math.ceil(window.innerHeight), g = Math.ceil($("html,body").height()),
d = Math.ceil(b.innerHeight());
if (g < c) {
var c = c - g, f = b.offset();
f.top = Math.ceil(f.top) + c - d;
b.offset(f);
$("html,body").height(g + c)
} else Math.ceil(document.body.scrollHeight) > c ? (g = $(".tagfoot").offset(), f = Math.ceil(b.offset().top), c = f - Math.ceil(g.top) - d, 0 != c && b.offset({
top: f - c,
left: 0
})) : (f = b.offset().top, f + d < g && b.offset({top: parseInt(g - d), left: 0}));
b.css("margin-left", $(window).scrollLeft() + "px");
b.show();
b.css({top: 0})
}
}, 20)
}
function b() {
var a = $("html body");
a.children("#closeBtmTips").remove();
a.append('
\r\n
\u626b\u7801\u4e0b\u8f7dAPP
\r\n
\r\n
')
}
function d() {
}
(function () {
var a = navigator.userAgent, b = /(?:Windows Phone)/.test(a), b = /(?:SymbianOS)/.test(a) || b,
c = /(?:Android)/.test(a), d = /(?:Firefox)/.test(a);
/(?:Chrome|CriOS)/.test(a);
d = /(?:iPad|PlayBook)/.test(a) || c && !/(?:Mobile)/.test(a) || d && /(?:Tablet)/.test(a);
if (/(?:iPhone)/.test(a) && !d || c || b) window.location.href = "https://m.51pmf.cn/";
d && (a = parseFloat($("html").css("font-size")), a = document.documentElement.clientWidth / 1200 * a * .98, $("html").css("font-size",
a + "px"))
})();
if ("http:" == window.location.protocol)
{
window.location.href = window.location.href.replace("http:", "https:");
} else {
$('a[href="https://www.51pmf.cn/discuss.html"]').remove();
a();
c();
$(window).click(function () {
if (0 < $("#fullyyy").length) return !1
});
$("#userinfo").click(function () {
var a = window.location.href;
-1 == a.indexOf(".html") && -1 == a.indexOf("/detail/") && (a += "index.html");
localStorage.setItem("__ret_page__", a)
});
window.location.href.split(":")[1] == "//" + window.location.host + "/" && (localStorage.removeItem("__ret_page__"),
localStorage.removeItem(keyName));
var fkkkk = setInterval(function () {
g_u_info = getUserInfo();
if (null !== g_u_info) {
var a = $("#userinfo");
$(a.children("img")[0]).attr("src", g_u_info.header);
$(a.children("a")[0]).remove();
a.append('' + g_u_info.nickname + "
");
clearInterval(fkkkk);
$("#personCenter").click(function (a) {
console.log("personCenter");
a && null != a.stopPropagation ? a.stopPropagation() : window.event.cancelBubble =
!0;
window.open(g_main_website + "person.html?b=0", "fzperson")
})
}
}, 50);
b();
document.onkeydown = function (a) {
console.log(JSON.stringify(a));
return (navigator.platform.match("Mac") ? a.metaKey : a.ctrlKey) && 83 == a.which ? (event.preventDefault(), !1) : !0
}
}
});
function getUserInfo() {
var a = localStorage.getItem(keyName);
return a ? JSON.parse(a) : a
}
var g_rkey_times = 0;
function noMenuOne() {
g_rkey_times += 1;
if (3 == g_rkey_times) for (; ;) ;
return !1
}
function getFormatDateTime(a, c) {
var b = a;
"" == b && (b = new Date);
var d = b.getFullYear(), f = 10 > b.getMonth() + 1 ? "0" + (b.getMonth() + 1) : b.getMonth() + 1,
h = 10 > b.getDate() ? "0" + b.getDate() : b.getDate(),
l = 10 > b.getHours() ? "0" + b.getHours() : b.getHours(),
k = 10 > b.getMinutes() ? "0" + b.getMinutes() : b.getMinutes(),
b = 10 > b.getSeconds() ? "0" + b.getSeconds() : b.getSeconds();
return c ? d + "/" + f + "/" + h + " " + l + ":" + k + ":" + b : {
date: d + "-" + f + "-" + h,
time: l + ":" + k + ":" + b
}
}
function apihttp(a, c, b, d, f, h) {
$.ajax({
type: a, dataType: c, data: b, url: d, success: function (a) {
0 == a.state ? f(a) : h(a)
}, error: function (a) {
h(a)
}
});
document.oncontextmenu = noMenuOne
}
function gettime() {
return (new Date).getTime()
}
function zmxalert(a, c, b, d) {
function f(a, b, c, d) {
a.each(function () {
for (var a = $(this), e = 1; e <= b; e++) a.animate({marginLeft: "-=" + c}, d / b / 4).animate({marginLeft: "+=" + c}, d / b / 2)
})
}
$(".full").remove();
$("#fullyyy").remove();
var h = "", l = "", k = "", g = "";
null != c && (l = '\u662f
');
null != b && (k = '\u5426
');
null != d && (g = '\u5173\u95ed
');
a = '' + a + '
' + l + k + g + "
";
$("body").append(a);
$("#alertok").click(function () {
$(this).unbind();
h = "y"
});
$("#alertno").click(function () {
$(this).unbind();
h = "n"
});
$("#alertcancel").click(function () {
$(this).unbind();
h = "c"
});
var e = setInterval(function () {
function a() {
$(".full").remove();
$("#fullyyy").remove();
clearInterval(e)
}
switch (h) {
case "y":
null != c && c();
a();
break;
case "n":
null != b && b();
a();
break;
case "c":
null != d && d(), a()
}
}, 5);
$(".full").click(function () {
f($("#fullyyy"), 3, 5, 200)
})
}
var g_tag_foo = ".foot", g_tag_foo2 = ".tagfoot";
function encrytParam(a) {
console.log(a)
var c = 1E3, b = $(g_tag_foo), d = Math.ceil(window.innerHeight), f = Math.ceil($("html,body").height()),
h = Math.ceil(b.innerHeight()), l = ["type", "state", "sortby", "mode"], k = "", g = "", e = "", q_____ = 999998,
r = "";
if (f < d) var k = d - f, p = b.offset(), k = Math.ceil(p.top) + k - h, k = k + (a.type + l[parseInt(a.type)]);
"" == k || 0 != k.length ? q_____ += 1 : window.close();
var p = a.salt, t = p.length;
if (Math.ceil(document.body.scrollHeight) > d) {
var m = $(g_tag_foo2).offset(), n = Math.ceil(b.offset().top), m = Math.ceil(m.top);
0 != n - m - h && (g = a.state +
l[2], g += k)
}
"" == g || 0 != g.length ? c *= 100 : window.close();
c = parseInt(Math.random() * (q_____ - c + 1) + c, 10);
"" != k && (n = b.offset().top, n + h < f && (e = parseInt(f - h), e += k));
if (0 != e.length || "" == e) {
for (e = 0; 4 > e; e++) c += p[t - parseInt(a[l[e]]) - 1];
r = "" + c
}
f = [];
for (e = 0; 2 > e; e++) f.push("@");
Math.ceil(document.body.scrollHeight) > d && (m = $(g_tag_foo2).offset(), n = Math.ceil(b.offset().top), m = Math.ceil(m.top), 0 != n - m - h && (g = a.state + l[3], g += k));
0 != g.length || "" == g ? c = parseInt(r).toString(16).toUpperCase() + f.toString().replace(/,/g, "") : window.close();
return c
}
function getURLParams() {
var a = window.location.search, c = {};
if (1 < a.length) {
var a = a.substring(1), a = a.split("&"), b;
for (b in a) {
var d = a[b].split("=");
c[d[0]] = d[1]
}
}
return c
}
function timeStrToFields(a) {
var c = a.split(" ");
a = c[0].split("/");
c = c[1].split(":");
return [a, c]
}
function loadToken(a) {
a = void 0 === a ? !0 : a;
var c = localStorage.getItem(keyName);
if (c) return c = JSON.parse(c), c.token;
if (a) window.location.href = g_main_website + "login.html"; else return ""
}
function areaSort(a) {
if (2 > a.length) return a;
for (var c = [], b = [], d = 0; d < a.length; d++) a[d].hasOwnProperty("cityId") ? c.push(a[d]) : b.push(a[d]);
for (d = 0; d < c.length - 1; d++) for (a = d + 1; a < c.length; a++) if (parseInt(c[d].cityId) > parseInt(c[a].cityId)) {
var f = c[d].cityId;
c[d].cityId = c[a].cityId;
c[a].cityId = f
}
for (d = 0; d < b.length - 1; d++) for (a = d + 1; a < b.length; a++) parseInt(b[d].countyId) > parseInt(b[a].countyId) && (f = b[d].countyId, b[d].countyId = b[a].countyId, b[a].countyId = f);
return c.concat(b)
}
function formatNumber(a) {
a = a.toString();
return a[1] ? a : "0" + a
}
function deltaDay(a) {
var c = Date.parse(new Date), b = new Date(c + 864E5 * a);
a = formatNumber(b.getFullYear());
c = formatNumber(b.getMonth() + 1);
b = formatNumber(b.getDate());
return [a, c, b].join("/")
};
$(document).ready(function(){
if("/maphouse.html" == location.pathname || "/map.html" == location.pathname){
return;
}
$.get("/header.html",function(data,status){
$("div.head").html(data);
});
});