第一步登录微信公众平台
第二步在控制台输入 “wx.commonData.data.uin_base64” 获取编码
第三步 https://mp.weixin.qq.com/mp/profile_ext?action=home&__biz=上面获取的编码&scene=110#wechat_redirect
第四步js实现跳转
var urrl = 'https://mp.weixin.qq.com/mp/profile_ext?action=home&__biz=获取的编码&scene=110#wechat_redirect';
//跳转
window.location.href = url;
//跳转,不保留历史消息
window.location.replace(url);
这个方法仅仅适用于微信扫一扫打开,如果用支付宝或者浏览器打开的话是打不开的会提示 请在微信客户端打开链接,可以做一个环境判断,非微信的话放公众号二维码截图或者跳转小程序进行公众号关注引导