index.wxml
873 Bytes
<scroll-view class="news-page"
scroll-y="true"
style="height:{{height}}px;"
scroll-with-animation="true"
scroll-top="{{scrollTop}}"
bindscroll="onScroll"
bindscrolltolower="tapComponentsMore">
<slot />
</scroll-view>
<view class="quicknavigation">
<view class="quicknavigation-content">
<button bindtap="tapShare" class="share-btn" plain="true" type="default" hover-class="none"
wx:if="{{isShare}}">
<image class="img-share" src="/static/images/my-scroll-view/share@3x.png"></image>
</button>
<button class="back-btn" plain="true" animation="{{indicatorAnimation}}" wx:if="{{isTop}}"
type="default" hover-class="none" bindtap="backToTop">
<image class="img-back" src="/static/images/my-scroll-view/backtop@3x.png"></image>
</button>
</view>
</view>