关于小程序获取昵称问题?

小程序 文章 2020-08-26 10:21 835 0 全屏看文

AI助手支持GPT4.0

关于小程序获取昵称问题?About the problem of obtaining nicknames for applets?

关于小程序获取昵称问题?

问大伙一个问题,一个小程序中有的功能需要授权登录,有的呢可能又无所谓,如果小程序中加一个条件,通过这个条件比如是true或者false来决定进入某个页面的时候,如果是true且没有授权登录过就直接弹框提示授权,如果是false就不用弹框,这种方式会不会不符合规范,在审核那边会不会有什么问题。

Let's ask you a question. Some functions in a small program need to be authorized to log in, and some of them may not matter. If a condition is added to the applet, such as true or false, to decide whether to enter a page, if it is true and no authorization has been registered, the box will be popped directly to prompt authorization; if it is false, no pop-up box will be needed. Will this method be inconsistent According to the standard, there will be any problems in the audit.

回答:

จุ๊บ:

授权必须通过点击button按钮,你只能根据true或false来控制按钮是否显示。用户点击按钮才会弹授权框,敏感操作需要用户授权,非敏感操作不授权也能浏览小程序,这样是可以的

木有鱼丸:

有些操作需要授权就弹窗提示就行 绑定button事件呗 授权就继续不授权就返回。

搞文艺的猿:

可以啊。

-EOF-

AI助手支持GPT4.0