|
@@ -73,6 +73,7 @@
|
|
|
this.isChange = false
|
|
this.isChange = false
|
|
|
} else {
|
|
} else {
|
|
|
this.msgList = [...this.msgList, ...val.content]
|
|
this.msgList = [...this.msgList, ...val.content]
|
|
|
|
|
+ this.getRead()
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
immediate: true
|
|
immediate: true
|
|
@@ -85,6 +86,20 @@
|
|
|
onPullUpAction: function () {
|
|
onPullUpAction: function () {
|
|
|
this.page++
|
|
this.page++
|
|
|
this.reloadList()
|
|
this.reloadList()
|
|
|
|
|
+ },
|
|
|
|
|
+ getRead () {
|
|
|
|
|
+ let ids = []
|
|
|
|
|
+ this.msgList.forEach((value) => {
|
|
|
|
|
+ if (value.isRead !== 1) {
|
|
|
|
|
+ ids.push(value.id)
|
|
|
|
|
+ }
|
|
|
|
|
+ })
|
|
|
|
|
+ if (ids.length !== 0) {
|
|
|
|
|
+ this.$http.post('/messages/read', {receiverUu: this.user.data.userUU, receiverEnuu: this.user.data.enterprise.uu, messageId: ids.join(','), consumerApp: 'MALL'})
|
|
|
|
|
+ .then((res) => {
|
|
|
|
|
+ console.log(res.data)
|
|
|
|
|
+ })
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
@@ -108,7 +123,7 @@
|
|
|
position: relative;
|
|
position: relative;
|
|
|
b{
|
|
b{
|
|
|
position: absolute;
|
|
position: absolute;
|
|
|
- left: .2rem;
|
|
|
|
|
|
|
+ left: .1rem;
|
|
|
top: .25rem;
|
|
top: .25rem;
|
|
|
width: .16rem;
|
|
width: .16rem;
|
|
|
height: .16rem;
|
|
height: .16rem;
|