|
@@ -88,6 +88,15 @@ module.exports = Behavior({
|
|
|
target
|
|
|
}) {
|
|
|
this.selectComponent('#comment').open(target.dataset.id)
|
|
|
+ let worksListCopy = JSON.parse(JSON.stringify(this.data.worksListCopy))
|
|
|
+ worksListCopy.forEach(item => {
|
|
|
+ if (item.userRead.id == target.dataset.id) {
|
|
|
+ item.unReadPostsCount = 0
|
|
|
+ }
|
|
|
+ })
|
|
|
+ this.setData({
|
|
|
+ worksListCopy
|
|
|
+ })
|
|
|
},
|
|
|
// 分享
|
|
|
creatShare(video) {
|