initFloat() {
const elTop = Math.floor(Math.random() * (20 - 60 + 1)) + 60
$('.video_float').css('top', elTop + '%')
$('.video_float').css('right', '-' + Math.floor($('.video_float').width() + 100) + 'px')
const that = this
// 父级容器 #video_float
document.getElementById('video_float').addEventListener('transitionend', function(e) {
that.floatShow = false
setTimeout(() => {
that.floatShow = true
that.$nextTick(() => {
that.initFloat()
})
}, 50)
})
}