Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas_plus
/
business-assistant
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 c830b6a5
authored
Oct 26, 2022
by
luyt
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
feat:首页滑动
1 parent
443e547d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
pages/tab/index/components/product/product.js
pages/tab/index/components/product/product.js
View file @
c830b6a
...
@@ -248,8 +248,11 @@ Component({
...
@@ -248,8 +248,11 @@ Component({
// wx.$eventbus.emit('evt_page_index',idx)
// wx.$eventbus.emit('evt_page_index',idx)
//判断当前路径
//判断当前路径
let
currentUrl
=
this
.
getCurrentPageUrl
();
let
currentUrl
=
this
.
getCurrentPageUrl
();
console
.
log
(
'currentUrl: '
,
currentUrl
);
if
(
currentUrl
==
"/pages/tab/index/index"
)
{
if
(
currentUrl
==
"/pages/tab/index/index"
)
{
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 });
}
else
{
}
else
{
wx
.
pageScrollTo
({
scrollTop
:
imgTopArr
[
idx
]
-
stickyTop
});
wx
.
pageScrollTo
({
scrollTop
:
imgTopArr
[
idx
]
-
stickyTop
});
}
}
...
...
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