var styleLoginTip = `` var goCaiGouBangTipHtml = `
X
?

ChemicalBook与采购帮是两个独立站点,一起合作为客户提供服务。一直秉承"客户第一"的原则,努力为客户提供便捷服务。

根据相关法律法规规定,为保障客户合法权益以及保障客户的信息安全。客户在使用网络平台时,需要充分尊重客户意愿,由客户自主选择、自行决定。

按照法律法规及《隐私权政策》的规定,平台承诺做到保障客户的信息安全。

账户:
使用ChemicalBook账户
确认登录 不登录,去采购帮
`; function GetCookie(name) { var arr, reg = new RegExp("(^| )" + name + "=([^;]*)(;|$)"); if (arr = document.cookie.match(reg)) return unescape(arr[2]); else return null; } var dayCharString = "trfguijbpzaxolyndhvkcmweqs"; var monCharString = "dfxeojzctsirhlbqyknpgmvuwadfxeojzctsirhlbqyknpgmvuwa"; function getCurDateCharString() { var dayOfYear = getDayOfYear(new Date()) - 1; var curmon = Math.floor(dayOfYear / 26); return monCharString[curmon + (dayOfYear % 26)] + dayCharString[dayOfYear % 26]; } function getDayOfYear(date) { const start = new Date(date.getFullYear(), 0, 0); const diff = date - start; const oneDay = 1000 * 60 * 60 * 24; return Math.floor(diff / oneDay); } $(function () { var mallHost = "http://www.caigoubang.com.cn"; if ($("#hidhost").val() == "1") { mallHost = $("#hidhost").attr("data-host"); } $("[data-go-caigou]").click(function (e) { var href = $(this).attr("href"); var isClick = false; if (!href) { href = $(this).attr("data-href"); isClick = true; } var userName = GetCookie("userName"); var sn = GetCookie("_ancsi_") || GetCookie("__ancsi_"); var st = GetCookie("_ancsi_t_") || GetCookie("__ancsi_t_"); if (userName) { var isAgree = false; $.ajax({ url: "/Handler/GetAgreeLoginHandler.ashx", type: "get", dataType: "json", async: false, success: function (json) { if (json.code == 0) { isAgree = json.dataObj.agree; sn = json.dataObj.sn; st = json.dataObj.st; } }, error: function () { } }) if (!isAgree) { if ($("#style_goCaiGouTip").length <= 0) { $("head").append(styleLoginTip); } if ($("#dv_goCaiGouTip").length <= 0) { $("body").append(goCaiGouBangTipHtml); $(".closew").click(function () { $("#fade_gocaugoou").hide(); $("#dv_goCaiGouTip").hide(); }); $("#dv_goCaiGouTip").find("[name='btn_gocaigou_login'],[name='btn_gocaigou_nologin']").click(function () { $("#fade_gocaugoou").hide(); $("#dv_goCaiGouTip").hide(); }); } $("#dv_goCaiGouTip").attr("data-href", href); $("#fade_gocaugoou").show(); $("#dv_goCaiGouTip").show(); $("#dv_goCaiGouTip").find("[name='btn_gocaigou_login']").attr("href", mallHost + "/Transfer?nl=1&sn=" + sn + "&tn=" + st + "&redirect=" + encodeURIComponent(href)) $("#dv_goCaiGouTip").find("[name='btn_gocaigou_nologin']").attr("href", mallHost + "/Transfer?nl=0&redirect=" + encodeURIComponent(href)) $("#dv_goCaiGouTip").find("[name='userName']").html(userName); if (!e) { e = window.event; } if (e) { e.preventDefault ? e.preventDefault() : e.returnValue = false; } } else { if (isClick) { window.location.href = mallHost + "/Transfer?sn=" + sn + "&tn=" + st + "&redirect=" + encodeURIComponent(href); } else { $(this).attr("href", mallHost + "/Transfer?sn=" + sn + "&tn=" + st + "&redirect=" + encodeURIComponent(href)); } } } else { if (isClick) { window.location.href = mallHost + "/Transfer?sn=" + sn + "&tn=" + st + "&redirect=" + encodeURIComponent(href); } else { $(this).attr("href", mallHost + "/Transfer?sn=" + sn + "&tn=" + st + "&redirect=" + encodeURIComponent(href)); } } }) });