微信公众号支付成功了,但是不能跳转到预设页面,请求帮助!
天气真好啊 2018-05-06 05:22:33 asp.net的公众号接口,根据微信提供的demo来的,支付成功了,但是就是页面不跳转,愁死我了,看不出什么毛病啊?
function jsApiCall()
{
WeixinJSBridge.invoke(
'getBrandWCPayRequest',
<%=wxJsApiParam%>,//josn串
function (res)
{
WeixinJSBridge.log(res.err_msg);
alert(res.err_code + res.err_desc + res.err_msg);
if(res.err_msg == "get_brand_wcpay_request:ok"){
//alert(res.err_code+res.err_desc+res.err_msg);
window.location.href="跳转页面";
}else{
//返回跳转到订单详情页面
alert("支付失败");
}
}
);
}
这段js不执行alert也执行跳转,请大家帮忙,谢谢!