Commit 1230f417 authored by 黄奎's avatar 黄奎

供应商首页修改

parent c8262ae7
...@@ -1371,10 +1371,7 @@ export default { ...@@ -1371,10 +1371,7 @@ export default {
let x = this.sysMsgList[i]; let x = this.sysMsgList[i];
if (x.IMID === item.to) { if (x.IMID === item.to) {
if (x.unread != item.unread) { if (x.unread != item.unread) {
// console.log(x)
// console.log(item)
tempCount = 1; tempCount = 1;
// this.refreshSysNoteDate()
} }
x.unread = item.unread; x.unread = item.unread;
x.lastMsgShow = item.lastMsg.text; x.lastMsgShow = item.lastMsg.text;
...@@ -1434,7 +1431,6 @@ export default { ...@@ -1434,7 +1431,6 @@ export default {
item.updateTimeShow = util.formatDate(item.updateTime, true); item.updateTimeShow = util.formatDate(item.updateTime, true);
} }
if (item.unread > 0) { if (item.unread > 0) {
// console.log(item)
if (this.unReadMsgId.indexOf(item.lastMsg.idServer) == -1) { if (this.unReadMsgId.indexOf(item.lastMsg.idServer) == -1) {
if (!this.isFirst) { if (!this.isFirst) {
this.msgGet(item); this.msgGet(item);
...@@ -1446,17 +1442,10 @@ export default { ...@@ -1446,17 +1442,10 @@ export default {
this.enterChat(item) this.enterChat(item)
} }
} }
// else if(this.currentSession.id && item.lastMsg.sessionId==this.currentSession.id){
// if(item.lastMsg.tip && item.lastMsg.tip=='抖了一下'){
// this.dou()
// }
// }
// console.log(item.lastMsg)
return item; return item;
}); });
this.hasNewMsg = tempCount; this.hasNewMsg = tempCount;
this.isFirstLoad = false; this.isFirstLoad = false;
// this.allSsionList = JSON.parse(JSON.stringify(sessionlist));
return sessionlist; return sessionlist;
}, },
sessionId() { sessionId() {
...@@ -1536,8 +1525,6 @@ export default { ...@@ -1536,8 +1525,6 @@ export default {
} }
}; };
document.addEventListener(visibilityChangeEvent, onVisibilityChange); document.addEventListener(visibilityChangeEvent, onVisibilityChange);
// console.log('initIM',this.firstMenuList.indexOf('IM'))
console.log(localStorage,'localStorage');
if(!localStorage.menu) if(!localStorage.menu)
this.$store.dispatch("connect"); this.$store.dispatch("connect");
else{ else{
...@@ -1546,19 +1533,6 @@ export default { ...@@ -1546,19 +1533,6 @@ export default {
this.$store.dispatch("connect"); this.$store.dispatch("connect");
} }
} }
// this.userInfo = this.getLocalStorage();
// document.title=this.userInfo.GroupName
// if (this.userInfo.Icon != null) {
// this.userInfo.UserPhoto = this.userInfo.Icon;
// } else {
// this.userInfo.UserPhoto = "";
// }
// let UserInfo = this.getLocalStorage();
// this.userId = UserInfo.EmployeeId;
// this.allPartMsg.RB_Group_Id = this.deleteMsg.groupId = this.likeMsg.groupId = this.addDynamicMsg.rB_GroupId = this.dynamicMsg.groupId =
// UserInfo.RB_Group_id;
// this.addDynamicMsg.rB_BranchId = UserInfo.RB_Branch_id;
this.getDynamic(); this.getDynamic();
this.getMyDynamic(); this.getMyDynamic();
...@@ -2046,7 +2020,6 @@ export default { ...@@ -2046,7 +2020,6 @@ export default {
let t=0; let t=0;
let c=0; let c=0;
this.douTimer = setInterval(()=>{ this.douTimer = setInterval(()=>{
// console.log('come in ..........')
if(t==0) if(t==0)
this.$refs.resizeBox._data.top=y+2 this.$refs.resizeBox._data.top=y+2
if(t==2) if(t==2)
...@@ -2118,7 +2091,6 @@ export default { ...@@ -2118,7 +2091,6 @@ export default {
); );
if (add) { if (add) {
this.msgList.push(x); this.msgList.push(x);
// console.log(this.msgList)
} }
}); });
if (!add) { if (!add) {
...@@ -3019,7 +2991,6 @@ export default { ...@@ -3019,7 +2991,6 @@ export default {
res => { res => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.webAllpartList = res.data.data; this.webAllpartList = res.data.data;
console.log(this.webAllpartList,'sssssssssss');
} else { } else {
} }
}, },
...@@ -3722,7 +3693,6 @@ export default { ...@@ -3722,7 +3693,6 @@ export default {
} }
}); });
n.onshow = function() { n.onshow = function() {
//console.log("通知显示了!");
}; };
n.onclick = function(e) { n.onclick = function(e) {
//可以直接通过实例的方式获取data内自定义的数据 //可以直接通过实例的方式获取data内自定义的数据
...@@ -3734,10 +3704,8 @@ export default { ...@@ -3734,10 +3704,8 @@ export default {
n.close(); n.close();
}; };
n.onclose = function() { n.onclose = function() {
//console.log("用户点击关闭");
}; };
n.onerror = function(err) { n.onerror = function(err) {
//console.log("出错了,小伙子在检查一下吧");
throw err; throw err;
}; };
setTimeout(() => { setTimeout(() => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment