|
@@ -48,6 +48,7 @@ var globalHead = new Vue({
|
|
|
userIdentity:'',
|
|
|
articleType: '',
|
|
|
topMenuList:[],
|
|
|
+ isFiexd:false,
|
|
|
TabList:[
|
|
|
{name:'产品',link:'/product/instrument.html',value:'1'},
|
|
|
{name:'仪器',link:'/product/instrument.html',value:'2'}
|
|
@@ -198,11 +199,22 @@ var globalHead = new Vue({
|
|
|
this.articleType = getUrlParam("type");
|
|
|
},
|
|
|
mounted:function(){
|
|
|
+ var _self = this;
|
|
|
var userData = JSON.parse(window.localStorage.getItem('userInfo'));
|
|
|
if(userData!=null){
|
|
|
this.userIdentity = userData.userIdentity;
|
|
|
this.shopId = userData.shopId;
|
|
|
}
|
|
|
+ $(window).on('scroll', function() {
|
|
|
+ var scrollTop = $(this).scrollTop();
|
|
|
+ console.log(scrollTop);
|
|
|
+ if(scrollTop>100){
|
|
|
+ _self.isFiexd = true;
|
|
|
+
|
|
|
+ }else{
|
|
|
+ _self.isFiexd = false;
|
|
|
+ }
|
|
|
+ })
|
|
|
}
|
|
|
});
|
|
|
// 初始化效果
|