9. applet to obtain user information

Applet for user information

1. applet SDK prior to version 1.3.0:

Applets SDK versions prior to 1.3.0, obtain user information, you can call anywhere in the interface: wx.getUserInfo(Object object)obtaining user information after authorization.

2. applet SDK 1.3.0 version:

After the applet SDK 1.3.0 version, access to user information, only by using <button open-type="getUserInfo"/>to get the pop-up window authorized user information.

Gets the user's current authorization settings

Developers can use wx.getSettingto obtain the user's current authorization settings state.

2471034-00f0a13b0399edaf.png
scope list

Open the settings interface

Users can set up a small program interface ( "top right corner" - "About" - "top right corner" - "Setup") authorized state control of the applets.

Developers can call wx.openSettingto open the settings interface to guide the user to open authorization.

Reproduced in: https: //www.jianshu.com/p/402feb34391f

Guess you like

Origin blog.csdn.net/weixin_33858336/article/details/91165922