Reference documents: https://www.jianshu.com/p/e4657f16a82c
A small program
1, using the button assembly and the open-type is specified as getUserInfo type, a basic user information.
Details Reference document: https://developers.weixin.qq.com/miniprogram/dev/component/button.html
2, shows the use of open-data basic user information.
Details Reference document: https://developers.weixin.qq.com/miniprogram/dev/component/open-data.html
<button class='login-wxa-btn' plain='true' open-type="getUserInfo" lang="zh_CN" bindgetuserinfo="tapGetWxInfo"> <image class='login-wxa-btn-img' src='../../image/a0_login_wechat.png' mode='widthFix'></image> </button>
effect