# movie **Repository Path**: lennywang/movie ## Basic Information - **Project Name**: movie - **Description**: 电影资讯小程序 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2024-01-22 - **Last Updated**: 2024-01-27 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README 1、app let app = getApp(); 2、canIUse wx.canIUse('button.open-type.getUserInfo') 3、userInfoReadyCallback app.userInfoReadyCallback 4、getUserInfo wx.getUserInfo 数据缓存 https://developers.weixin.qq.com/miniprogram/dev/api/storage/wx.setStorageSync.html 登录文档 https://developers.weixin.qq.com/miniprogram/dev/api/open-api/login/wx.login.html 获取用户信息 https://developers.weixin.qq.com/miniprogram/dev/api/open-api/user-info/wx.getUserInfo.html 授权 https://developers.weixin.qq.com/miniprogram/dev/api/open-api/authorize/wx.authorize.html https://developers.weixin.qq.com/miniprogram/dev/framework/open-ability/authorize.html button open-type 微信开放能力 bindgetuserinfo 用户点击该按钮时,会返回获取到的用户信息,回调的detail数据与wx.getUserInfo返回的一致,open-type="getUserInfo"时有效 1、设置跨域访问 2、调整样式