Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(急急急)百度小程序始终获取不到手机号 #5174

Closed
zhengzhuang96 opened this issue Dec 24, 2019 · 10 comments
Closed

(急急急)百度小程序始终获取不到手机号 #5174

zhengzhuang96 opened this issue Dec 24, 2019 · 10 comments
Assignees
Labels
question Further information is requested

Comments

@zhengzhuang96
Copy link

zhengzhuang96 commented Dec 24, 2019

问题描述

百度小程序获取手机号获取不到

复现步骤

百度账号一键登录

getphonenumberFun = (e) => {
	console.log(e)
}

image
image
image

始终获取不到


### 期望行为

<!-- 请在下一行用简洁清晰的语言描述你期望的行为 -->

### 报错信息

<!-- 请在下一行贴上你的完整报错截图或文字 -->

### 系统信息

<!-- 使用`taro info`命令即可查看系统及依赖信息。将该命令运行结果贴下面即可。 -->

### 补充信息

<!-- (可选)根据你的调查研究,出现这个问题的原因可能在哪里? -->

<!-- 感谢您的热心反馈!别忘了用preview按钮预览结果再提交 -->

> 如果您有功能上的建议,可以提到 [FeatHub](https://feathub.com/NervJS/taro)
> 
> 使用上的问题,欢迎在[「Taro 社区」](https://taro-club.jd.com/)一起交流
@taro-bot
Copy link

taro-bot bot commented Dec 24, 2019

CC @Chen-jj

@taro-bot
Copy link

taro-bot bot commented Dec 24, 2019

欢迎提交 Issue~

如果你提交的是 bug 报告,请务必遵循 Issue 模板的规范,尽量用简洁的语言描述你的问题,最好能提供一个稳定简单的复现。🙏🙏🙏

如果你的信息提供过于模糊或不足,或者已经其他 issue 已经存在相关内容,你的 issue 有可能会被关闭。

Good luck and happy coding~

@zhengzhuang96 zhengzhuang96 changed the title 百度小程序始终获取不到手机号 (急急急)百度小程序始终获取不到手机号 Dec 24, 2019
@luckyadam
Copy link
Member

事件绑定写错了

@Inori-Lover
Copy link

image

@zhengzhuang96
Copy link
Author

image
这样也不可以啊

@Garfield550
Copy link
Collaborator

建议先看一遍文档 组件的事件传递都要以 on 开头

@zhengzhuang96
Copy link
Author

image
组件的事件传递都要以 on 开头, 变成这样吗,好像也不行,点击获取授权,没有回调

@Inori-Lover
Copy link

<Button openType='getPhoneNumber' onGetPhoneNumber={this.phoneNumberHandle}>(急急急)请按照issue文档新建issue</Button>

@luckyadam luckyadam added answered question Further information is requested labels Dec 26, 2019
@taro-bot
Copy link

taro-bot bot commented Dec 26, 2019

Hello~

您的问题楼上已经有了确切的回答,如果没有更多的问题这个 issue 将在 15 天后被自动关闭。

如果您在这 15 天中更新更多信息自动关闭的流程会自动取消,如有其他问题也可以发起新的 Issue。

Good luck and happy coding~

@shenghanqin
Copy link
Collaborator

@zhengzhuang95 我认为这个问题已经得到了比较详尽的解答,我先关掉了。如果还有问题,可以追问。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

6 participants