修改报告bug

This commit is contained in:
zoujiandong
2023-08-29 14:31:02 +08:00
parent 26486d9d6d
commit d34a4c5b33
5 changed files with 32 additions and 11 deletions
+8 -3
View File
@@ -95,7 +95,7 @@ Page({
// console.log("app.globalData.unreadnnum_inter: ", app.globalData.unreadnnum_inter);
},
onShow: function () {
// console.log("onShow from wenzhen V2")
//console.log("onShow from wenzhen V2")
if(this.data.hasOnShow){
wx.stopPullDownRefresh()
return;
@@ -120,12 +120,16 @@ Page({
if(wx.$TUIKit){
wx.$TUIKit.on(wx.$TUIKitTIM.EVENT.MESSAGE_RECEIVED, this.$onMessageReceived, this);
console.log("1111");
wx.$TUIKit.off(wx.$TUIKitTIM.EVENT.SDK_READY, this.onSDKReady);
wx.$TUIKit.on(wx.$TUIKitTIM.EVENT.SDK_READY, this.onSDKReady, this);
wx.$TUIKit.on(wx.$TUIKitTIM.EVENT.MESSAGE_RECEIVED, this.$onMessageReceived, this);
}else{
console.log("222")
app.imInit().then(res => {
// console.log("wenzhen onload imInit");
wx.$TUIKit.on(wx.$TUIKitTIM.EVENT.SDK_READY, this.onSDKReady, this);
wx.$TUIKit.on(wx.$TUIKitTIM.EVENT.MESSAGE_RECEIVED, this.$onMessageReceived, this);
});
}
@@ -170,7 +174,8 @@ Page({
})
},
onSDKReady(){
console.log("onSDKReady from wenzhen")
console.log("onSDKReady from wenzhen");
this.getConversationList();
},
getConversationList(){
// console.log("getConversationListgetConversationListgetConversationList");