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.getSetting
to obtain the user's current authorization settings state.
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.openSetting
to open the settings interface to guide the user to open authorization.
Reproduced in: https: //www.jianshu.com/p/402feb34391f