Commit f0be7037 authored by 罗超's avatar 罗超

修改了部分样式

parent 51c316fb
......@@ -166,8 +166,9 @@ export default {
setTimeout(()=>{
this.navs = uni.getStorageSync("basedata")
? uni.getStorageSync("basedata").navbar.navs
: [];
},2000)
: [];
this.activeHandler();
},3000)
}
this.activeHandler();
......@@ -175,9 +176,17 @@ export default {
methods: {
activeHandler() {
let t = getCurrentPages();
this.crtPath = "/" + t[t.length - 1].route;
let query=t[t.length - 1].__displayReporter.query
let queryString=''
for(var k in query){
queryString+=`&${k}=${query[k]}`
}
if(queryString!=''){
queryString="?"+queryString.substring(1,queryString.length)
}
this.crtPath = "/" + t[t.length - 1].route+queryString;
this.navs.forEach((x, i) => {
if (x.url.split("?")[0] == this.crtPath) {
if (x.url == this.crtPath) {
this.active = i;
}
});
......
This diff is collapsed.
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