|
@@ -88,15 +88,21 @@ 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
|
|
|
- })
|
|
|
+ // if (this.data.videoInfo) {
|
|
|
+ // this.setData({
|
|
|
+ // ['videoInfo.unReadPostsCount']: 0
|
|
|
+ // })
|
|
|
+ // }
|
|
|
+ /* let worksListCopy = JSON.parse(JSON.stringify(this.data.worksListCopy))
|
|
|
+ worksListCopy.forEach(item => {
|
|
|
+ console.log('zz');
|
|
|
+ if (item.userRead.id == target.dataset.id) {
|
|
|
+ item.unReadPostsCount = 0
|
|
|
+ }
|
|
|
+ })
|
|
|
+ this.setData({
|
|
|
+ worksListCopy
|
|
|
+ }) */
|
|
|
},
|
|
|
// 分享
|
|
|
creatShare(video) {
|