Commit 39172dc5 by 李嘉林

导航修改

parent 21a3899f
......@@ -67,6 +67,7 @@ export default {
}
// tabbar 跳转
let homeIndex = checkTabbarPage("/");
console.log(homeIndex,tabIndex,'--tabIndex')
homeIndex != 0 && homeIndex == tabIndex && (tabIndex = 0);
console.log(this.mpApp.globalData.footerVal,tabIndex,this.mpApp.globalData.footerVal.componentData.list.length,'--this.mpApp.globalData.footerVal')
let urlLink = this.mpApp.globalData.footerVal.componentData.list[tabIndex].link;
......@@ -76,7 +77,14 @@ export default {
urlLink
);
let query=serialize(options)
this.params+=query?'&'+query:''
let urlPrams = urlLink.link.split('?')[1]?urlLink.link.split('?')[1]:"";
console.log(query,'==================', this.params,'-----------------',urlPrams)
// // 只兼容底部导航进入活动页面添加参数,跳转完成删除
if(query){
this.params+='&'+query
} else {
this.params+=urlPrams?'&'+urlPrams:''
}
}
let reg = /^\/pages\//;
console.log(this.pageUrl,'pageUrl======================',urlLink)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment