Commit 04ff84cd by 李嘉林

评论滚动

parent 48b8d2cf
<template> <template>
<!-- 公告组件 --> <!-- 公告组件 -->
<div class="livedAnnouncement" v-if="isShow"> <div class="livedAnnouncement" v-show="isShow">
<div class="label"> <div class="label">
<span class="label">公告:</span><span class="test">欢迎来到直播间欢迎来到直播间欢迎来到直播间欢迎来到直播间欢迎来到直播间欢迎来到直播间欢迎来到直播间欢迎来到直播间欢迎来到直播间欢迎来到直播间</span> <span class="label">公告:</span><span class="test">欢迎来到直播间欢迎来到直播间欢迎来到直播间欢迎来到直播间欢迎来到直播间欢迎来到直播间欢迎来到直播间欢迎来到直播间欢迎来到直播间欢迎来到直播间</span>
</div> </div>
...@@ -23,7 +23,7 @@ export default { ...@@ -23,7 +23,7 @@ export default {
this.isShow=true; this.isShow=true;
setTimeout(() => { setTimeout(() => {
this.isShow=false; this.isShow=false;
}, 5900); }, 7000);
}, },
mounted() {}, mounted() {},
methods: {} methods: {}
...@@ -40,8 +40,8 @@ export default { ...@@ -40,8 +40,8 @@ export default {
border-radius: 10px; border-radius: 10px;
padding: 8px; padding: 8px;
margin-bottom: 10px; margin-bottom: 10px;
animation:toLeft 1s linear 5s; animation:toLeft 5s linear;
opacity: 1; opacity: 0;
span{ span{
font-size: 14px; font-size: 14px;
color: #f1f1f1; color: #f1f1f1;
...@@ -51,8 +51,8 @@ export default { ...@@ -51,8 +51,8 @@ export default {
} }
} }
@keyframes toLeft { @keyframes toLeft {
50%{ 0%{
opacity: 0.5; opacity: 1;
} }
100%{ 100%{
opacity: 0; opacity: 0;
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
<!-- 评论模块 --> <!-- 评论模块 -->
<div class="livedIsMsg"> <div class="livedIsMsg">
<div class="list"> <div class="list">
<scroll-view :style="{'height': '24vh','width':'52vw;'}" :scroll-y="true" :scroll-top="scrollTop" @scrolltolower="scrolltolower"> <scroll-view :style="{'height': '24vh','width':'52vw'}" :scroll-y="true" :scroll-top="scrollTop" :scroll-with-animation="true" @scrolltolower="scrolltolower">
<div class="item flex" v-for="(item,index) in list" :key="index"> <div class="item flex" v-for="(item,index) in list" :key="index">
<div class="user"> <div class="user">
<p class="live"></p> <p class="live"></p>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment