微信小程序获取来源场景值
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})}
},