弹出页面被拦截的解决方案:
function login(productId){
var callbackurl="";
var accesstoken="";
var extend="";
if(productId == 'mxzy'){
window.open("http://XXX/xxx?action=access&client_id=yRlyfpMg");
return;
}
if(<%=null != mUser%>){
jQuery.ajax({
"type":"post",
"url":"<%=preUrl%>/interface/hejy/loginHejy",
data:{
"productId":productId
},
"async":false,
"success":function(reply){
if(reply.result=='-1'){
alert(reply.errorMessage);
}
else{
accesstoken=reply.accesstoken;
callbackurl=reply.callbackurl;
extend=reply.extend;
}
}
});
if(callbackurl.length>0){
openwin(callbackurl+"?accesstoken="+accesstoken+"&extend="+extend,"hejy_"+productId);
}
}else{
}
}
}
弹出页面被拦截的问题解决
最新推荐文章于 2024-08-12 14:19:07 发布