Commit 6933a17c by luyt

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

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