send(){
let that = this
wx.login({
success(res) {
if (res.code) {
wx.request({
url: 'http://localhost:3000/name',
data: res.code,
success(res) {
let { activity_id } = res.data
wx.updateShareMenu({
withShareTicket: true,
isUpdatableMessage: true,
targetState: 0,
activityId: '1051_CmHKFrNSnB/hWvbKt5gJzIory3GzxJYkSTuihAUUdM96O0PGtg6FCXA-dy65MdRtUpVyckedq1gNATFB',
templateInfo: {
parameterList: [{
name: 'member_count',
value: '1'
}, {
name: 'room_limit',
value: '3'
}]
}
})
}
})
} else {
console.log('登录失败!' + res.errMsg)
}
}
})
}
解决了嘛?