@@ -81,7 +81,7 @@ Component({
wx.showToast({
title: '绑定成功!已获得7天VIP',
icon: "none",
- duration: 2000
+ duration: 4000
})
},
// 调起广告
@@ -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) {
@@ -17,7 +17,6 @@ Page({
async getNewComment() {
let list = await getNewComment()
- console.log(list);
this.setData({
list
@@ -25,7 +24,6 @@ Page({
setReply({
currentTarget
- console.log(currentTarget);
wx.showModal({
title: '回复评论',
editable: true,
@@ -57,7 +55,6 @@ Page({
jumpWork({
wx.navigateTo({
url: `/pages/userWorks/index?id=${currentTarget.dataset.id}`,
@@ -169,7 +169,7 @@ Page({
@@ -14,7 +14,6 @@ Page({
async getBeLikeList() {
let list = await getBeLikeList()
@@ -172,7 +172,7 @@ Page({
}