小程序
weixin_45897915
这个作者很懒,什么都没留下…
展开
-
小程序前几天wx.getUserInfo不能弹出授权窗口而且只能获取灰色头像和微信用户名称
代码没有问题,是微信团队改了方法… https://developers.weixin.qq.com/community/develop/doc/000cacfa20ce88df04cb468bc52801 现在你要想弹出授权窗口获取信息的话用wx.getUserProfile <button wx:if="{{canIUseGetUserProfile}}" bindtap="getUserProfile"> 获取头像昵称 </button> <button wx:else原创 2021-04-13 15:50:04 · 1332 阅读 · 0 评论 -
小程序获取二维码传来的参数
Page({ onLoad (options) { // scene 需要使用 decodeURIComponent 才能获取到生成二维码时传入的 scene if (options.scene) { //获取二维码的携带的链接信息 let qrUrl = decodeURIComponent(options.scene) console.log(qrUrl) } } }) 开发文档链接 https://developers.weixin.qq.com/miniprogram/dev/api-backend原创 2020-08-24 16:30:16 · 662 阅读 · 0 评论