|
|
@ -7,7 +7,14 @@ |
|
|
|
--> |
|
|
|
<template> |
|
|
|
<!-- <Barrier /> --> |
|
|
|
<scroll-view :scrollTop="scrollTop" :scrollY="true" :style="{ height: height }" @scroll="scroll"> |
|
|
|
<scroll-view |
|
|
|
:scrollTop="scrollTop" |
|
|
|
:scrollY="true" |
|
|
|
:style="{ height: height }" |
|
|
|
@scroll="scroll" |
|
|
|
@scrolltolower="handleScrollBottom" |
|
|
|
@scrolltoupper="handleScrollTop" |
|
|
|
> |
|
|
|
<!-- :style="{ height: height }" --> |
|
|
|
<TimeBox /> |
|
|
|
</scroll-view> |
|
|
@ -30,6 +37,16 @@ export default { |
|
|
|
scroll(e) { |
|
|
|
console.log(e.detail.scrollTop); |
|
|
|
}, |
|
|
|
|
|
|
|
// 滚动到顶部 |
|
|
|
handleScrollTop() { |
|
|
|
console.log('滚动到顶部'); |
|
|
|
}, |
|
|
|
|
|
|
|
// 滚动到底部 |
|
|
|
handleScrollBottom() { |
|
|
|
console.log('滚动到底部'); |
|
|
|
}, |
|
|
|
}, |
|
|
|
}; |
|
|
|
</script> |
|
|
|