基础库3.1.3
button组件open-type耦合使用
<button id="agree-btn" open-type="getPhoneNumber|agreePrivacyAuthorization" bindagreeprivacyauthorization="handleAgreePrivacyAuthorization" bindgetphonenumber="onGetPhoneNumber">
实际结果:执行了bindagreeprivacyauthorization回调,并拉起了手机号授权弹窗,点击手机号同意授权按钮未回调bindgetphonenumber事件
代码片段这么弄
https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html