收藏
回答

新版获取手机号,为什么无法获取code?

https://developers.weixin.qq.com/miniprogram/dev/framework/open-ability/getPhoneNumber.html

根据文档获取的写的,但是无法获取code

<button open-type="getPhoneNumber" bindgetphonenumber="doGetPhoneNumber">手机</button>


doGetPhoneNumber(e) {
    console.log(e.detail)
},



我修改了基础库为2.21.3,但输出的数据还是旧的接口,是什么原因

回答关注问题邀请回答
收藏

1 个回答

  • Mr.Zhao
    Mr.Zhao
    2022-02-15

    更新下工具版本啊

    2022-02-15
    有用
    回复 3
登录 后发表内容