Web1. First login: click the authorization button, call the authorization function, obtain user information, send it and openid to the background, update the database, and save the … WebMay 18, 2024 · Using button component with "open-type"="getUserInfo".And then you will get userInfo in "bindgetuserinfo" function.
Authorized login of applet - get unionId
Weblog (e . detail . userInfo )} < button open -type = "getUserInfo" bindgetuserinfo = "bindGetUserInfo" > Authorized login < / button > After the user is authorized, the user information data can be obtained and the subsequent processing logic can be performed. WebPage({data: {avatarUrl: '',nickName: '',},bindGetUserInfo: function (e) {let that = this;let userInfo = e.detail.userInfo; //user informationwx.getStorage({ //Get cached openidkey: 'openid',success: function (res) {wx.request({url: 'http://***.com/hotpot/save',data:{openid:res.data,nickName: … how much are meals freshly
Web关于thinkphp 与微信小程序授权登录的心得,加上完整代码. 时间:2024-04-06 15:38 Webcode2accessToken. The login credential is verified. The temporary login credential code is obtained through the wx.login() interface and then passed to the developer server to call this interface to complete the login process. For more details, please refer to Mini Program Login.. Request address how much are megabytes