优化
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user