功能:微信小程序 点击按钮 弹出微信授权弹框 获取用户基本信息
html:
<button class="btn" open-type="getUserInfo" bindgetuserinfo="bindgetuserinfo">弹框</button>
css:
.btn{padding:0;margin:0;background:#fff;width:100rpx !important;border:1rpx solid #64bf5e;color:#64bf5e;font-weight:400;font-size:28rpx;}
js
bindgetuserinfo(res){console.log(res)},