小程序获取手机号,点击允许没反应,e也没输出?

小程序 文章 2021-03-09 16:01 765 0 全屏看文

AI助手支持GPT4.0

小程序获取手机号,点击允许没反应,e也没输出?The applet obtains the mobile phone number, and there is no response when clicking Allow, and the e is not output?

小程序获取手机号,点击允许没反应,e也没输出?

本来还好好的,毕竟上线过几次版本了,今天早上我自己新建了个小程序demo,怕不是更新成最新版本tarojs冲突了,可是我已经将本地的taro版本改成跟这个版本一样的了。。。。

大佬们 看到请帮帮我

登录界面:

点击手机登录后:

点击允许 没反应 没输出 接口更不要说了 也没调

Originally, it was OK. After all, several versions have been launched. This morning, I created a new app demo. I'm afraid it's not updated to the latest version. Tarojs conflicts, but I've changed the local tarojs version to the same version as this one.... Big guys see please help me login interface: click mobile login: click allow, no response, no output interface, let alone no adjustment

回答:

没有然后:

把onGetPhoneNumber改成bindgetphonenumber,单括号里面是要做什么


没有然后:
没有然后:不是单括号是双括号,this.getPhoneNumber改成getPhoneNumber
Brother斌🎈:

不是bindgetphonenumber吗

虽然没用过tarojs,但是百度了一下,好像你的调用方法也和用tarojs不咋一样

<AtButton type="primary" openType="getPhoneNumber" OnGetPhoneNumber="getPhoneNumber">微信绑定手机号登录</AtButton>


this:

你这个调用方式跟文档出入有点大,是以前的调用方法吗

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

Lz:

大佬们 看到了指点下我这个小菜鸟。。。

-EOF-

AI助手支持GPT4.0