Commit 3d9a0a35 by luyt

fix:路由跳转调整

1 parent 5de451ae
...@@ -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)
}, },
......
...@@ -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
......
...@@ -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");
},
/** /**
* 生命周期函数--监听页面隐藏 * 生命周期函数--监听页面隐藏
*/ */
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!