使用getUserProfile时候遇到了一个问题?

小程序 文章 2021-04-07 09:22 532 0 全屏看文

AI助手支持GPT4.0

使用getUserProfile时候遇到了一个问题?Encountered a problem when using getUserProfile?

使用getUserProfile时候遇到了一个问题?

首先是给我的按钮绑定了一个点击事件

这里是js代码

然后预期的效果是,如果用户没有注册过就会去注册页面,如果注册过就直接调用getUserProfile获取用户信息,

可是实际上当是注册过的时候,却点了没有反应,但是连续点击,又可以弹出授权窗口,如下

这里点了一下没有反应,只输出了console.log

没有授权窗口

当快速点击到第七下的时候,出现了授权窗口

不知道是什么问题,else也试过了,也是这样。。

First of all, a click event is bound to my button. Here is the JS code. Then the expected effect is that if the user has not registered, he will go to the registration page. If he has registered, he will directly call getuserprofile to get the user information. But actually, when he has registered, he has no response. However, if he clicks continuously, he can pop up an authorization window, as follows There's no response here, only output console.log There is no authorization window. When you quickly click the seventh time, there is an authorization window. I don't know what the problem is. Else has tried it, too..

回答:

孙刘森:

重启电脑

this:

打印一下fail看看

|G.XIAO|:

搞个简单的代码片段看看

-EOF-

AI助手支持GPT4.0


国内超级便宜服务器

摸鱼人热门新闻聚合

钻级赞助商 我要加入

开发者在线工具

第三方支付技术请加QQ群

相关文章
为什么公众号搜索名称搜索不出来?
云函数更新报错,新创建云函数一直显示创建中..?
云函数上传失败?
微信开放平台认证后, 微信公众平台还需要再次认证和支付认证费用?
小程序无法拉起云闪付支付?
随便看看
企业微信通讯录账号被管理员误/恶意删除,怎么办? 9568
问题? 9048
如何快速搭建抽奖助手小程序(无需代码知识) 6177
许涛 大哥在吗, 要解冻小程序的时候提示信息主体不一致, 能帮忙看下吗? 7472
小程序搜一搜全称搜索不显示 麻烦解决一下!谢谢 6793
我的小程序广告收款主体是个体工商户,每个月邮寄两次发票很是麻烦,我年底的时候打包邮寄一次可以么? 6128
如何解决渲染层网络错误Failed to load media? 17394
小程序找号找回 释放昵称? 3253
我的小程序广告主收入5301,实际进账4406,是怎么回事呀? 3108
删除部分微信用户个人数据的通知,怎么删除? 6381