1、小程序登录流程官方文档:https://developers.weixin.qq.com/miniprogram/dev/framework/open-ability/login.html

 

 

2、小程序示例程序 https://github.com/wechat-miniprogram/miniprogram-demo