thirdScriptError VM134:1
Cannot read property 'identifier' of undefined;at pages/index/index page bindTap function
TypeError: Cannot read property 'identifier' of undefined
at Object.sendGroupLoveMsg (http://127.0.0.1:30547/appservice/utils/webim_handler.js:622:19)
at e.bindTap (http://127.0.0.1:30547/appservice/pages/index/index.js:50:20)
at e.<anonymous> (http://127.0.0.1:30547/appservice/__dev__/WAService.js:1:28270)
at e.i (http://127.0.0.1:30547/appservice/__dev__/WAService.js:1:18491)
at oe (http://127.0.0.1:30547/appservice/__dev__/WAService.js:1:12762)
at Function.<anonymous> (http://127.0.0.1:30547/appservice/__dev__/WAService.js:1:14435)
at http://127.0.0.1:30547/appservice/__dev__/WAService.js:1:19990
at http://127.0.0.1:30547/appservice/__dev__/WAService.js:9:25060
at e.(anonymous function) (http://127.0.0.1:30547/appservice/__dev__/WAService.js:6:11129)
at a (http://127.0.0.1:30547/appservice/appservice?t=1529462480180:1008:9472)
console.error @ VM134:1
errorReport @ WAService.js:5
thirdErrorReport @ WAService.js:5
(anonymous) @ WAService.js:5
(anonymous) @ WAService.js:1
i @ WAService.js:1
oe @ WAService.js:1
(anonymous) @ WAService.js:1
(anonymous) @ WAService.js:1
(anonymous) @ WAService.js:9
e.(anonymous function) @ WAService.js:6
a @ appservice?t=1529462480180:1008
e.registerCallback @ appservice?t=1529462480180:1008
m.forEach @ appservice?t=1529462480180:1008
d @ appservice?t=1529462480180:1008
j.onmessage @ appservice?t=1529462480180:1008

at e.bindTap (http://127.0.0.1:30547/appservice/pages/index/index.js:50:20)
bindTap : function(){
webimhandler.sendGroupLoveMsg();
},
哪有问题
你输出下sdkLogin的loginInfo看看
onLoad: function () {
var that = this;
//调用应用实例的方法获取全局数据
app.getUserInfo(function(userInfo){
//更新数据
console.debug(userInfo);
that.setData({
userInfo:userInfo
})
that.login(function(){
that.initIM(userInfo);
});
})
}
这里面的app.getUserInfo(function(userInfo){ }方法里面没有走
getUserInfo:function(cb){
var that = this
if(this.globalData.userInfo){
typeof cb == "function" && cb(this.globalData.userInfo)
}else{
//调用登录接口
wx.login({
success: function () {
wx.getUserInfo({
success: function (res) {
that.globalData.userInfo = res.userInfo
typeof cb == "function" && cb(that.globalData.userInfo)
}
})
}
})
}
},
这个方法wx.login没走
你可以下载官方的小程序SDK看看,看你的报错信息,好像是SDK的sdkLogin参数不全