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