window.location.href = 'https://open.weixin.qq.com/connect/oauth2/authorize?appid=
(这个appid后端会给你)&redirect_uri=http://192.168什么什么的/pages/index/index(这里的地址填写自己本地的,注意是否是hash模式,#不能用)&response_type=code&scope=snsapi_userinfo&state=STATE#wechat_redirect'
window.location.href = 'https://open.weixin.qq.com/connect/oauth2/authorize?appid=
(这个appid后端会给你)&redirect_uri=http://192.168什么什么的/pages/index/index(这里的地址填写自己本地的,注意是否是hash模式,#不能用)&response_type=code&scope=snsapi_userinfo&state=STATE#wechat_redirect'