Commit 6933a17c by luyt

fix;1.处理滚动距离兼容问题 2.处理ios全屏播放,回到顶部问题

1 parent 6bd1dfb3
......@@ -267,8 +267,9 @@ Component({
// console.log(123546)
// wx.pageScrollTo({ scrollTop: imgTopArr[idx] - stickyTop + 88 + 34 });
// // wx.pageScrollTo({ scrollTop: imgTopArr[idx] - stickyTop });
// } else {
wx.pageScrollTo({ scrollTop: imgTopArr[idx] - stickyTop/2-10 });
// } else {
// -10 处理兼容
wx.pageScrollTo({ scrollTop: imgTopArr[idx]- stickyTop/2 - 36 - 10 });
// }
},
// async changeTab(e){
......
......@@ -42,10 +42,11 @@
</view>
<!-- style="{height:{{allHeight}}px}" scroll-y="{{true}}" bindscroll="scrolltoupper"-->
<scroll-view
<!-- <scroll-view
class="project-img"
scroll-into-view="{{intoViewId}}"
>
> -->
<view class="project-img" hover-class="none" hover-stop-propagation="false">
<block wx:for="{{tab}}" wx:key="index">
<!-- wx:if="{{showVideo && index==5 && tab.length < 5}}" -->
<view id="to-{{index}}" class="img-item img-item{{actNum+1}}{{index+1}}" wx:if="{{index != 5}}">
......@@ -95,6 +96,7 @@
</block>
</scroll-view>
</view>
<!-- </scroll-view> -->
</view>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!