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 3d9a0a35
authored
Nov 09, 2022
by
luyt
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix:路由跳转调整
1 parent
5de451ae
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
5 deletions
pages/tab/index/components/indexClue/indexClue.js
pages/tab/index/components/product/product.js
pages/tab/index/index.js
pages/tab/index/components/indexClue/indexClue.js
View file @
3d9a0a3
...
@@ -325,11 +325,12 @@ Component({
...
@@ -325,11 +325,12 @@ Component({
// sceneCodeList: ['SC001', 'SC002','SC003','SC004']
// sceneCodeList: ['SC001', 'SC002','SC003','SC004']
};
};
//申请活动
//申请活动
wx
.
$router
.
go
(
"packageOutput.openBusiness"
,
params
);
// wx.$router.go("packageOutput.openBusiness", params);
wx
.
$router
.
go
(
"/packagesList/packageOutput/pages/openBusiness"
,
params
);
}
else
{
}
else
{
//申请门店
//申请门店
// let { type, item } = e.currentTarget.dataset
// let { type, item } = e.currentTarget.dataset
wx
.
$router
.
go
(
"apply"
,
item
?.
clueId
||
""
);
wx
.
$router
.
go
(
"
/packagesList/apply/pages/
apply"
,
item
?.
clueId
||
""
);
}
}
// wx.$router.go('apply',1235)
// wx.$router.go('apply',1235)
},
},
...
...
pages/tab/index/components/product/product.js
View file @
3d9a0a3
...
@@ -280,16 +280,15 @@ Component({
...
@@ -280,16 +280,15 @@ Component({
imgTopArr
,
imgTopArr
,
stickyTop
stickyTop
}
=
this
.
data
;
}
=
this
.
data
;
console
.
log
(
"idx: "
,
imgTopArr
[
idx
],
stickyTop
);
//
console.log("idx: ", imgTopArr[idx], stickyTop);
// this.setData({
// this.setData({
// intoViewId: `to-${idx}`,
// intoViewId: `to-${idx}`,
// });
// });
// 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
);
//
console.log('currentUrl: ', currentUrl);
if
(
currentUrl
==
"/pages/tab/index/index"
)
{
if
(
currentUrl
==
"/pages/tab/index/index"
)
{
console
.
log
(
123546
)
wx
.
pageScrollTo
({
wx
.
pageScrollTo
({
// scrollTop: imgTopArr[idx] - stickyTop + 88 + 34
// scrollTop: imgTopArr[idx] - stickyTop + 88 + 34
scrollTop
:
imgTopArr
[
idx
]
-
stickyTop
+
44
+
36
scrollTop
:
imgTopArr
[
idx
]
-
stickyTop
+
44
+
36
...
...
pages/tab/index/index.js
View file @
3d9a0a3
...
@@ -490,6 +490,10 @@ Page({
...
@@ -490,6 +490,10 @@ Page({
getVideoUrl
(
params
){
getVideoUrl
(
params
){
this
.
setData
(
params
)
this
.
setData
(
params
)
},
},
//申请活动
gotoApply
(){
wx
.
$router
.
go
(
"/packagesList/apply/pages/apply"
);
},
/**
/**
* 生命周期函数--监听页面隐藏
* 生命周期函数--监听页面隐藏
*/
*/
...
...
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