<template>
<main class="scroll-content" id="act-scroll">
<div id="aa" class="swipe-wrapper">
<cube-scroll ref="contentScroll">
<cube-swipe @item-click="onItemClick"
@btn-click="onBtnClick" :data="swipeData"></cube-swipe>
</cube-scroll>
</div>
</main>
</template>
mounted() {
console.log(document.body.clientHeight)
var h = document.documentElement.clientHeight || document.body.clientHeight
// var m = document.getElementById('act-scroll')
var a = document.getElementById('aa')
a.style.height = h - 68 + 'px' //减去顶部高度
a.style.height = document.body.clientHeight + 'px'
this.$refs.contentScroll.refresh()
},
<template>
<main class="scroll-conten