10003 redirect_uri域名与后台配置不一致?
window.location.href = "https://open.weixin.qq.com/connect/oauth2/authorize?appid=xxx&redirect_uri="+encodeURIComponent('http://xxxx.com:8001/xxxx')+"&response_type=code&scope=snsapi_base&state=123&connect_redirect=1#wechat_redirect";