'!'
This commit is contained in:
@@ -59,8 +59,14 @@
|
||||
/>
|
||||
</div>
|
||||
<div style="margin-left: 10px;">
|
||||
<div class="titleText" style="width:300px">
|
||||
{{ item.userID + `【${item.storeInfo ? item.storeInfo.name + '(' + item.storeInfo.id +')' : '' }】` }}
|
||||
<div class="titleText" style="width:300px;display: flex" >
|
||||
<div style="width: 100px;white-space: nowrap;text-overflow: ellipsis;overflow: hidden;">
|
||||
{{ item.userID }}
|
||||
</div>
|
||||
<div style="width: 200px;">
|
||||
{{ `【${item.storeInfo ? item.storeInfo.name + '(' + item.storeInfo.id +')' : '' }】` }}
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="latestMsg">{{ item.latestMsg }}</div>
|
||||
</div>
|
||||
@@ -160,7 +166,10 @@
|
||||
</div>
|
||||
|
||||
<div class="chatBox" style="margin-left: 20px;border-left: 1px solid #bdbaba;">
|
||||
<div class="chatBoxTitle" v-if="currentUser">{{ currentUser.storeInfo ? currentUser.userID + '【' + currentUser.storeInfo.name + '('+ currentUser.storeInfo.id +')' + '】' : '' }}</div>
|
||||
<div class="chatBoxTitle" v-if="currentUser">
|
||||
<!-- {{ currentUser }} -->
|
||||
{{ currentUser.storeInfo ? currentUser.userID + '【' + currentUser.storeInfo.name + '('+ currentUser.storeInfo.id +')' + '】' : '' }}
|
||||
</div>
|
||||
<div class="chatBoxCenter">
|
||||
<!-- 头像 -->
|
||||
<div v-for="(item,index) in chatDetail" :key="index"
|
||||
@@ -503,7 +512,7 @@ export default {
|
||||
latestMsgHandler = findItem && findItem.length > 0 ? JSON.parse(findItem[0].elementContent).text.replace('@商家', '') : latestMsgHandler
|
||||
}
|
||||
|
||||
let find = this.personalStore.find(i => i.mtStoreID === userArr[1])
|
||||
let find = this.personalStore.find(i => i.elmStoreID === userArr[1])
|
||||
this.allUserList['elm'].push({
|
||||
...resData,
|
||||
latestMsg: latestMsgHandler,
|
||||
@@ -514,7 +523,6 @@ export default {
|
||||
vendorStoreID:userArr[1],
|
||||
storeInfo:find || ""
|
||||
})
|
||||
console.log('111111111,,饿了么',this.allUserList['elm'])
|
||||
}else{
|
||||
// this.allUserList['elm'][findIndex] = {
|
||||
// ...resData,
|
||||
@@ -528,7 +536,6 @@ export default {
|
||||
// }
|
||||
}
|
||||
})
|
||||
console.log('1111111111,获取用户列表,,, this.allUserList,饿了么', this.allUserList)
|
||||
// debugger
|
||||
}else if(userArr[2] === '0'){
|
||||
// 京东
|
||||
@@ -538,7 +545,7 @@ export default {
|
||||
let findIndex = this.allUserList[userArr[0]][userArr[1]].findIndex(item => item.payLoad.groupId === resData.payLoad.groupId)
|
||||
if(findIndex === -1){
|
||||
let latestMsgHandler = resData.latestMsg
|
||||
|
||||
let find = this.personalStore.find(i => i.jdStoreID === userArr[1])
|
||||
this.allUserList[userArr[0]][userArr[1]].push({
|
||||
...resData,
|
||||
latestMsg: latestMsgHandler,
|
||||
@@ -604,7 +611,7 @@ export default {
|
||||
queryDetailBut:debounce(
|
||||
function name(query,falg,type) {
|
||||
if(type && type === 'click'){
|
||||
console.log(this.currentUser,'11111111111,,聊天记里',query)
|
||||
// console.log(this.currentUser,'11111111111,,聊天记里',query)
|
||||
if(query.userID === this.currentUser.userID) return // 不用重复点击
|
||||
// return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user