jwyu пре 2 година
родитељ
комит
8db2202285
1 измењених фајлова са 9 додато и 8 уклоњено
  1. 9 8
      components/videoBox/videoBox.vue

+ 9 - 8
components/videoBox/videoBox.vue

@@ -23,11 +23,11 @@
                     :class="[
                         'danmu-item',
                         play?'animat-run':'animat-pause',
-                        item.user_id==selfUserid?'border':''
+                        item.user_id==selfUserid?'danmu-item-self':''
                     ]"
                     v-for="item in danmuList"
                     :key="item.id"
-                    :style="{color:item.color,top:item.top,animationDuration:item.speed+'s'}"
+                    :style="{color:item.color,top:item.top,animationDuration:isFullScreen?item.speed+7+'s':item.speed+'s'}"
                 >{{item.content}}</view>
             </view>
 
@@ -493,6 +493,11 @@ export default {
             font-size: 12px;
             height: 18px;
             white-space: nowrap;
+            background: rgba(48, 48, 48, 0.5);
+            padding-left: 10rpx;
+            padding-right: 10rpx;
+            border-radius: 18px;
+            padding-top: 9px;
         }
         .animat-pause{
             animation-play-state: paused;
@@ -500,12 +505,8 @@ export default {
         .animat-run{
             animation-play-state: running;
         }
-        .border{
-            border: 1px solid #fff;
-            border-radius: 10px;
-            padding-top: 8px;
-            padding-left: 2px;
-            padding-right: 2px;
+        .danmu-item-self{
+            color: #F9AC3A !important;
         }
         @keyframes move {
             0%{