前言:微信网页登录文档
A https://developers.weixin.qq.com/doc/offiaccount/OA_Web_Apps/Wechat_webpage_authorization.html
B https://developers.weixin.qq.com/doc/oplatform/Website_App/WeChat_Login/Wechat_Login.html
1、 检测网页环境
https://www.cnblogs.com/wangtz/p/12538850.html
2、 若pc调用
上面B的API即可实现
3 、若h5调用
则需要调以下的链接格式
4、小米案例
a、登录链接
b、pc拦截
c、h5的拦截链接
附:参考案例博客
https://blog.csdn.net/tiantian082054/article/details/90711900
https://www.jianshu.com/p/a1f357152dca
备注:主来自一位社区开发者的问题解决的整理:https://developers.weixin.qq.com/community/develop/doc/0004caea6a836871524a7402156000

外部浏览器唤起微信并跳转指定链接
<html>
<a href="javascript:window.location.href='weixin:/ / " "> javascript:window.location.href='weixin:/ /'</a><a href="weixin : / / ">weixin:/ / c/ a>
<p><a href="weixin: / /dl/businesswebview/link/?appid=appid&url=baidu.com">test </a></p></html>
移动端网页登录,接口需要申请吗,这个调不通呀 https://open.weixin.qq.com/sns/explorer_broker?appid=wx62ba64796e13f092&redirect_uri=https%3A%2F%2Faccount.xiaomi.com%2Fpass%2Fsns%2Flogin%2Fload&response_type=code&scope=snsapi_userinfo&state=STATE_685333#wechat_redirect
https://open.weixin.qq.com/sns/explorer_broker?appid=wx46869eac2af933e6&redirect_uri=http://web.cdntts.com/wxlogin&response_type=code&scope=snsapi_userinfo&state=STATE_685333#wechat_redirect 我的链接哪里有问题?不能打开一个营业执照可以注册多少个开放平台账号?官方
https://developers.weixin.qq.com/community/develop/doc/00026ef1d40d186ba1a9edd6c51c09?_at=1599317635888
小程序内用户帐号登录规范调整和优化建议官方
微信团队2019-07-19
https://developers.weixin.qq.com/community/operate/doc/000640bb8441b82900e89f48351401
微信登录能力介绍官方
微信团队2019-03-06 21555浏览 https://developers.weixin.qq.com/community/develop/doc/000c840489c6380d63389dbb451402
《微信外部链接内容管理规范》http://weixin.qq.com/cgi-bin/readtemplate?t=weixin_external_links_content_management_specification
开发工具上在web-view页面内点击鼠标右键有个调试的选项
真机的话需要自行引入vconsole:https://github.com/Tencent/vConsole/blob/dev/README_CN.md
收藏webview的问题帖子 https://developers.weixin.qq.com/community/search?query=webview&page=1&block=1&random=1594016689911