0
点赞
收藏
分享

微信扫一扫

谷粒学院项目redirect_uri 参数错误微信二维码登录

皮皮球场 2024-01-12 阅读 9

https://developers.weixin.qq.com/miniprogram/dev/framework/app-service/scene.html#返回来源信息的场景
https://developers.weixin.qq.com/miniprogram/dev/api/base/app/life-cycle/wx.getLaunchOptionsSync.html
场景值列表

只有1008是来源群聊

/**
* 生命周期函数--监听页面显示
*/
onShow() {
 const launchOps = wx.getLaunchOptionsSync();
 console.error(launchOps);
 if (launchOps.scene === 1008) {
   this.setData({
     isFromGroup: true
   })
 }
},
举报

相关推荐

0 条评论