|
@@ -54,7 +54,8 @@ var globalHead = new Vue({
|
|
|
{name:'仪器',link:'/product/instrument.html',value:'2'}
|
|
|
],
|
|
|
NavsList:[],
|
|
|
- currenIndex:1
|
|
|
+ currenIndex:1,
|
|
|
+ nav_linkName:''
|
|
|
},
|
|
|
methods: {
|
|
|
changeline:function(tab){
|
|
@@ -215,6 +216,15 @@ var globalHead = new Vue({
|
|
|
}
|
|
|
})
|
|
|
}
|
|
|
+ _self.nav_linkName = decodeURI(CAIMEI.getUrlParam('name'));
|
|
|
+ setTimeout(function(){
|
|
|
+ $('.navBox li').each(function () {
|
|
|
+ var _thisName = $(this).find('a').text();
|
|
|
+ if(_self.nav_linkName == _thisName){
|
|
|
+ $(this).find('a').addClass('on')
|
|
|
+ }
|
|
|
+ });
|
|
|
+ },500);
|
|
|
}
|
|
|
});
|
|
|
// 初始化效果
|