Browse Source

去掉console

bayi 2 years ago
parent
commit
17e430aece

+ 1 - 1
components/readingTips/index.js

@@ -81,7 +81,7 @@ Component({
       wx.showToast({
         title: '绑定成功!已获得7天VIP',
         icon: "none",
-        duration: 2000
+        duration: 4000
       })
     },
     // 调起广告

+ 9 - 0
mixins/video.js

@@ -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) {

+ 0 - 3
pages/comment/index.js

@@ -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({
     currentTarget
   }) {
-    console.log(currentTarget);
     wx.navigateTo({
       url: `/pages/userWorks/index?id=${currentTarget.dataset.id}`,
     })

+ 1 - 1
pages/editUser/index.js

@@ -169,7 +169,7 @@ Page({
     wx.showToast({
       title: '绑定成功!已获得7天VIP',
       icon: "none",
-      duration: 2000
+      duration: 4000
     })
   },
 })

+ 0 - 1
pages/like/index.js

@@ -14,7 +14,6 @@ Page({
   },
   async getBeLikeList() {
     let list = await getBeLikeList()
-    console.log(list);
     this.setData({
       list
     })

+ 1 - 1
pages/my/index.js

@@ -172,7 +172,7 @@ Page({
       wx.showToast({
         title: '绑定成功!已获得7天VIP',
         icon: "none",
-        duration: 2000
+        duration: 4000
       })
     }
   },