mirror of
https://github.com/kuaifan/dootask.git
synced 2026-02-28 12:50:48 +00:00
处理消息阅读不消数的问题
This commit is contained in:
parent
3f959918af
commit
e67dc0a637
@ -239,7 +239,7 @@ class EmailNoticeTask extends AbstractTask
|
||||
}
|
||||
$content .= view('email.unread', [
|
||||
'type' => 'content',
|
||||
'dialogUrl' => config("app.url") . "/manage/messenger/{$dialogId}",
|
||||
'dialogUrl' => config("app.url") . "/manage/messenger?dialog_id={$dialogId}",
|
||||
'dialogName' => $dialogName,
|
||||
'unread' => count($items),
|
||||
'items' => $items,
|
||||
|
||||
@ -8,10 +8,7 @@
|
||||
<div
|
||||
class="dialog-head"
|
||||
:class="headClass"
|
||||
v-longpress="{
|
||||
callback: handleLongpress,
|
||||
delay: 300,
|
||||
}">
|
||||
v-longpress="{callback: handleLongpress, delay: 300}">
|
||||
<!--详情-->
|
||||
<div class="dialog-content" :class="contentClass">
|
||||
<!--文本-->
|
||||
@ -170,7 +167,7 @@ export default {
|
||||
},
|
||||
|
||||
computed: {
|
||||
...mapState(['dialogMsgs', 'audioPlaying', 'windowActive']),
|
||||
...mapState(['audioPlaying', 'windowActive']),
|
||||
|
||||
viewClass() {
|
||||
const {msgData, operateAction, operateEnter} = this;
|
||||
@ -251,18 +248,13 @@ export default {
|
||||
|
||||
methods: {
|
||||
handleLongpress(event, el) {
|
||||
this.$emit("on-longpress", {
|
||||
event,
|
||||
el,
|
||||
msgData: this.msgData
|
||||
})
|
||||
this.$emit("on-longpress", {event, el, msgData: this.msgData})
|
||||
},
|
||||
|
||||
msgRead() {
|
||||
if (!this.windowActive || this.msgData._r === true) {
|
||||
if (!this.windowActive) {
|
||||
return;
|
||||
}
|
||||
this.msgData._r = true;
|
||||
this.$store.dispatch("dialogMsgRead", this.msgData);
|
||||
},
|
||||
|
||||
|
||||
@ -179,6 +179,13 @@ export default {
|
||||
}
|
||||
},
|
||||
|
||||
mounted() {
|
||||
const id = $A.runNum(this.$route.query.dialog_id);
|
||||
if (id > 0) {
|
||||
this.openDialog(id)
|
||||
}
|
||||
},
|
||||
|
||||
activated() {
|
||||
this.updateDialogs(1000);
|
||||
},
|
||||
@ -332,6 +339,7 @@ export default {
|
||||
break;
|
||||
}
|
||||
},
|
||||
|
||||
contactsKey(val) {
|
||||
if (val == '') {
|
||||
return;
|
||||
@ -344,6 +352,7 @@ export default {
|
||||
this.contactsLoad--;
|
||||
}, 600);
|
||||
},
|
||||
|
||||
tabActive: {
|
||||
handler(val) {
|
||||
if (val == 'contacts') {
|
||||
@ -361,6 +370,7 @@ export default {
|
||||
},
|
||||
immediate: true
|
||||
},
|
||||
|
||||
dialogId: {
|
||||
handler(id) {
|
||||
if (id > 0) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user