bayi 2 سال پیش
والد
کامیت
7ab3e07ca9

+ 14 - 0
components/videoPreview/index.less

@@ -255,10 +255,24 @@
     padding: 20rpx 20rpx 10rpx;
 
     .mangeL-box {
+      position: relative;
       display: flex;
       align-items: center;
       margin-right: 30rpx;
 
+      .noticeTips {
+        position: absolute;
+        right: -38rpx;
+        top: -10rpx;
+        width: 34rpx;
+        padding: 4rpx 0rpx;
+        border-radius: 40rpx;
+        color: white;
+        font-size: 16rpx;
+        text-align: center;
+        background-color: #FF0000;
+      }
+
       .icon {
         width: 44rpx;
         height: 44rpx;

+ 2 - 0
components/videoPreview/index.wxml

@@ -101,6 +101,8 @@
       <view class="icon-name">{{videoInfoCopy.isFavorites?'已收藏':'收藏'}}</view>
     </view>
     <view class="mangeL-box" bindtap="openComment">
+      <view class="noticeTips" wx:if="{{videoType=='my'&&videoInfoCopy.unReadPostsCount>0}}">
+        +{{videoInfoCopy.unReadPostsCount}}</view>
       <image src="/static/comment.png" mode="" class="icon" />
       <view class="icon-name">{{filters.numFilter(videoInfoCopy.userRead.commentAmount)}}</view>
     </view>

+ 13 - 0
components/videoPreview/index.wxss

@@ -219,10 +219,23 @@
   padding: 20rpx 20rpx 10rpx;
 }
 .work .workFooter .mangeL-box {
+  position: relative;
   display: flex;
   align-items: center;
   margin-right: 30rpx;
 }
+.work .workFooter .mangeL-box .noticeTips {
+  position: absolute;
+  right: -38rpx;
+  top: -10rpx;
+  width: 34rpx;
+  padding: 4rpx 0rpx;
+  border-radius: 40rpx;
+  color: white;
+  font-size: 16rpx;
+  text-align: center;
+  background-color: #FF0000;
+}
 .work .workFooter .mangeL-box .icon {
   width: 44rpx;
   height: 44rpx;

+ 0 - 1
custom-tab-bar/index.js

@@ -64,7 +64,6 @@ Component({
       wx.switchTab({
         url
       });
-      console.log(this.data.userInfo);
     }
   }
 })

+ 0 - 2
pages/chat/index.js

@@ -45,7 +45,6 @@ Page({
         scrollTop: 10000
       })
     })
-    this.getNewMsgDet()
     this.interval = setInterval(() => {
       this.getNewMsgDet()
     }, 5000)
@@ -132,7 +131,6 @@ Page({
     })
   },
   bindKeyInput(e) {
-    console.log(e);
     this.setData({
       value: e.detail.value
     })

+ 0 - 2
pages/message/index.js

@@ -62,7 +62,6 @@ Page({
   },
   async getAuthorityMsg() {
     let authorityMsg = await getAuthorityMsg()
-    console.log(authorityMsg);
     this.setData({
       authorityMsg
     })
@@ -80,7 +79,6 @@ Page({
     })
   },
   onLongPress(e) {
-    console.log(e);
     let {
       currentTarget,
       detail,