1. 获取用户openid
const wxContext = cloud.getWXContext()
2. 获取用户头像等详细信息
getuserinfo(e){ wx.cloud.callFunction({ name: "getUserInfo", data:{ cloudID: e.detail.cloudID }, success: res => { console.log(res) } }) }let res= await cloud.getOpenData({ list: [event.cloudID] })