Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
mini-program
/
ai-card
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 6933a17c
authored
Oct 29, 2022
by
luyt
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix;1.处理滚动距离兼容问题 2.处理ios全屏播放,回到顶部问题
1 parent
6bd1dfb3
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
4 deletions
pages/scene/components/product/product.js
pages/scene/components/product/product.wxml
pages/scene/components/product/product.js
View file @
6933a17
...
@@ -268,7 +268,8 @@ Component({
...
@@ -268,7 +268,8 @@ Component({
// 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){
...
...
pages/scene/components/product/product.wxml
View file @
6933a17
...
@@ -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>
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment