mirror of
https://github.com/kuaifan/dootask.git
synced 2026-03-07 18:07:05 +00:00
no message
This commit is contained in:
parent
7f5261ad93
commit
68af686139
@ -1024,3 +1024,10 @@ Pro版
|
||||
关闭:不需要输入图形验证。
|
||||
开启:每次登录都需要图形验证码。
|
||||
回应详情
|
||||
|
||||
复制链接
|
||||
复制文本
|
||||
复制图片
|
||||
下载图片
|
||||
复制失败
|
||||
不可复制的内容
|
||||
|
||||
@ -11223,7 +11223,7 @@
|
||||
"key": "设待办",
|
||||
"zh": "",
|
||||
"zh-CHT": "設待辦",
|
||||
"en": "Set To-do",
|
||||
"en": "To-do",
|
||||
"ko": "업무 설정",
|
||||
"ja": "未処理にする",
|
||||
"de": "Ich komme zurecht.",
|
||||
@ -14211,4 +14211,4 @@
|
||||
"fr": "Détails des réponses",
|
||||
"id": "Menanggapi detail"
|
||||
}
|
||||
]
|
||||
]
|
||||
|
||||
@ -134,7 +134,7 @@
|
||||
</div>
|
||||
</ScrollerY>
|
||||
<div class="messenger-menu">
|
||||
<div class="menu-icon">
|
||||
<div class="menu-icon" @click="onActive(null)">
|
||||
<Icon @click="tabActive='dialog'" :class="{active:tabActive==='dialog'}" type="ios-chatbubbles" />
|
||||
<Badge class="menu-num" :overflow-count="999" :count="msgUnread('all')"/>
|
||||
</div>
|
||||
@ -360,7 +360,7 @@ export default {
|
||||
}
|
||||
break;
|
||||
case 'user':
|
||||
if (type != dialog.type) {
|
||||
if (type != dialog.type || dialog.bot) {
|
||||
return false
|
||||
}
|
||||
break;
|
||||
@ -474,11 +474,27 @@ export default {
|
||||
},
|
||||
|
||||
onActive(type) {
|
||||
let block = "start"
|
||||
if (type === null) {
|
||||
if (this.tabActive !== 'dialog') {
|
||||
return;
|
||||
}
|
||||
type = this.dialogActive
|
||||
block = "end"
|
||||
}
|
||||
if (this.dialogActive == type) {
|
||||
// 再次点击滚动到未读条目
|
||||
const dialog = this.dialogList.find(dialog => $A.getDialogNum(dialog) > 0)
|
||||
if (dialog) {
|
||||
$A.scrollIntoViewIfNeeded(this.$refs[`dialog_${dialog.id}`][0])
|
||||
let index = this.dialogList.findIndex(dialog => $A.getDialogNum(dialog) > 0)
|
||||
if (index === -1) {
|
||||
index = this.dialogList.findIndex(dialog => $A.getDialogUnread(dialog, true) > 0)
|
||||
}
|
||||
if (index > -1) {
|
||||
const el = this.$refs[`dialog_${this.dialogList[index]?.id}`][0]
|
||||
$A.scrollToView(el, {behavior: "smooth", block, inline: "nearest"})
|
||||
requestAnimationFrame(_ => {
|
||||
$A(el).addClass("common-shake")
|
||||
setTimeout(_ => $A(el).removeClass("common-shake"), 1000)
|
||||
})
|
||||
}
|
||||
}
|
||||
this.dialogActive = type
|
||||
|
||||
3
resources/assets/js/store/actions.js
vendored
3
resources/assets/js/store/actions.js
vendored
@ -2553,7 +2553,8 @@ export default {
|
||||
saveBefore()
|
||||
const resData = result.data;
|
||||
if ($A.isJson(resData.dialog)) {
|
||||
dispatch("saveDialog", resData.dialog);
|
||||
const dialogData = Object.assign(resData.dialog, {user_ms: $A.TimeM(resData.dialog.user_at)})
|
||||
setTimeout(_ => dispatch("saveDialog", dialogData), 100) // 延迟更新对话详情是因为等消息处理完
|
||||
//
|
||||
const ids = resData.list.map(({id}) => id)
|
||||
state.dialogMsgs = state.dialogMsgs.filter(item => {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user