Y.pcpusher = typeof Y.pcpusher === "undefined" ? true : Y.pcpusher; //默认显示 Y.returntop = true; $(function () { if (!Y.isLoadByPartner) { require(["prober"], function (prober) { setTimeout(function () { var n = "pc, mac"; if (n.indexOf(prober.device.name) !== -1) { if (Y.returntop) { require(['modules/yinyuetai/returntop']); } // if (Y.pcpusher) { // require(['modules/yinyuetai/pcpusher']); // } } }, 1500) }); } }) if (!window.UA_Opt) { var UA_Opt = new Object; UA_Opt.SendMethod = 1; UA_Opt.FormId = "loginBoxForm"; UA_Opt.ExTarget = ['password']; window[UA_Opt.LogVal] = ""; UA_Opt.Token = new Date().getTime() + ":" + Math.random(); UA_Opt.MaxMCLog = 50; UA_Opt.MaxKSLog = 50; UA_Opt.MaxMPLog = 50; UA_Opt.MaxTCLog = 50; UA_Opt.MaxFocusLog = 50; UA_Opt.Flag = 1965567; } function setShareContent(obj) { var ua = window.navigator.userAgent.toLowerCase(); try { if (ua.indexOf("android") > 0) { window.jsObj.setShareContent(JSON.stringify(obj)); } else if (ua.indexOf("iphone") > 0) { //iphone需要延迟一秒才能收到消息,原因不明 setTimeout(function () { obj.type = "setShareContent"; iosSendMessage(obj); }, 1000); } } catch (e) { } } !function() { if (!"") { var ua = navigator.userAgent.toLocaleLowerCase(); if (/android/.test(ua) || /iphone/.test(ua) || /ipod/.test(ua)) { window.location = "http://m2.yinyuetai.com/apps.html"; } } }();