写直播页面评论框
This commit is contained in:
parent
286c7e6077
commit
f521587638
@ -46,8 +46,8 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="bottom">
|
<div class="bottom">
|
||||||
<div class="left">
|
<div class="left">
|
||||||
<div class="comments">
|
<div class="comments" ref="comments">
|
||||||
<div class="comments-wrapper">
|
<div class="comments-wrapper" ref="comments-wrapper">
|
||||||
<div class="comment notice">
|
<div class="comment notice">
|
||||||
<span class="text">欢迎来到直播间!抖音严禁未成年人直播或打赏,直接间内严禁出现违法违规、低俗色情、吸烟酗酒等内容。如主播在直播过程中以不当方式诱导打赏、私下交易,请谨慎判断,以防人身财产损失。请大家注意财产安全,谨防网络诈骗。</span>
|
<span class="text">欢迎来到直播间!抖音严禁未成年人直播或打赏,直接间内严禁出现违法违规、低俗色情、吸烟酗酒等内容。如主播在直播过程中以不当方式诱导打赏、私下交易,请谨慎判断,以防人身财产损失。请大家注意财产安全,谨防网络诈骗。</span>
|
||||||
</div>
|
</div>
|
||||||
@ -62,6 +62,9 @@
|
|||||||
<span class="text">{{ i }}</span>
|
<span class="text">{{ i }}</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="options">
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<base-button @click="t">点击</base-button>
|
<base-button @click="t">点击</base-button>
|
||||||
</div>
|
</div>
|
||||||
@ -71,6 +74,8 @@
|
|||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
import BaseButton from "../../components/BaseButton";
|
import BaseButton from "../../components/BaseButton";
|
||||||
|
import Dom from "../../utils/dom";
|
||||||
|
import {nextTick} from "vue";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "LivePage",
|
name: "LivePage",
|
||||||
@ -92,6 +97,10 @@ export default {
|
|||||||
methods: {
|
methods: {
|
||||||
t() {
|
t() {
|
||||||
this.list.push('asdfasdfasdfasdfffasdfasdfffasdfasdfffasdfasdfffff')
|
this.list.push('asdfasdfasdfasdfffasdfasdfffasdfasdfffasdfasdfffff')
|
||||||
|
nextTick(()=>{
|
||||||
|
let comments = this.$refs['comments']
|
||||||
|
comments.scrollTop = comments.scrollHeight - comments.clientHeight
|
||||||
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -52,6 +52,12 @@ export default class Dom {
|
|||||||
return this
|
return this
|
||||||
}
|
}
|
||||||
|
|
||||||
|
attr(...args) {
|
||||||
|
if (args.length === 1) {
|
||||||
|
return this.els[0][args[0]]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
css(...args) {
|
css(...args) {
|
||||||
if (args.length === 1) {
|
if (args.length === 1) {
|
||||||
//情况一:获取样式
|
//情况一:获取样式
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user