This commit is contained in:
haomingming
2023-04-26 09:57:07 +08:00
parent 9e3cb69030
commit e7be139b04
8 changed files with 132 additions and 68 deletions
+6 -1
View File
@@ -395,7 +395,7 @@ Page({
if(payload) {
console.log("payload: ",payload.data);
let payloadJson = JSON.parse(payload.data);
text = payloadJson.title.replace(/-/g, "");
text = payloadJson.title.replaceAll(/-/g, "").replaceAll(/—/g, "");
}
lastMessage.messageForShow = text;
}
@@ -428,6 +428,10 @@ Page({
if(item.inquiry_status == 3){
totalUnreadCount = totalUnreadCount + 1;
session_item.message_dot = true;
let dot_name = "dot_"+inquiry_type
this.setData({
[dot_name]: true
})
}else{
session_item.message_dot = false;
}
@@ -435,6 +439,7 @@ Page({
session_list[inquiry_type - 1].push(session_item);
})
wx.setStorageSync(userID+'_wenzhen_info', totalUnreadCount);