|
@@ -49,13 +49,7 @@ var globalHead = new Vue({
|
|
|
shopId:'',
|
|
|
userIdentity:'',
|
|
|
articleType: '',
|
|
|
- // topMenuList:[],
|
|
|
isFiexd:false,
|
|
|
- /*TabList:[
|
|
|
- {name:'产品',link:'/product/instrument.html',value:'1'},
|
|
|
- {name:'仪器',link:'/product/instrument.html',value:'2'}
|
|
|
- ],*/
|
|
|
- //NavsList:[],
|
|
|
classifyIndex:1,
|
|
|
nav_linkName:''
|
|
|
},
|
|
@@ -63,69 +57,7 @@ var globalHead = new Vue({
|
|
|
changeClassify: function(value){
|
|
|
this.classifyIndex=value;
|
|
|
},
|
|
|
- // GetNavigationMenu :function(){//获取顶部导航分类
|
|
|
- // var _self = this;
|
|
|
- // PublicApi.GetNavigationMenu({source:1},function(response){
|
|
|
- // if(response.code == 0){
|
|
|
- // _self.topMenuList = response.data.topMenuList;
|
|
|
- // }else{
|
|
|
- // CAIMEI.Alert(response.msg, '确定');
|
|
|
- // }
|
|
|
- // });
|
|
|
- // },
|
|
|
- // GetProductClassify: function(index) { // 导航分类菜单
|
|
|
- // var _self = this;
|
|
|
- // PublicApi.GetProductClassify({typeSort:index,source :'www'},function(response){
|
|
|
- // if(response.code == 0){
|
|
|
- // if(index == 1){
|
|
|
- // var navObject = {
|
|
|
- // name:'产品',
|
|
|
- // list:response.data
|
|
|
- // };
|
|
|
- // _self.NavsList.push(navObject)
|
|
|
- // }else{
|
|
|
- // var navObject = {
|
|
|
- // name:'仪器',
|
|
|
- // list:response.data
|
|
|
- // };
|
|
|
- // _self.NavsList.push(navObject)
|
|
|
- // }
|
|
|
- // if(isPC){
|
|
|
- // setTimeout(function(){
|
|
|
- // $('#mainClassify').slide({
|
|
|
- // mainCell:".clsCon",
|
|
|
- // titCell:".clsTab a",
|
|
|
- // trigger: "mouseover"
|
|
|
- // });
|
|
|
- // },500);
|
|
|
- // setTimeout(function(){
|
|
|
- // $('#mainClassify').slide({
|
|
|
- // mainCell:".tabItem_right",
|
|
|
- // titCell:".tabItem_lift a",
|
|
|
- // trigger: "mouseover"
|
|
|
- // });
|
|
|
- // },500);
|
|
|
- // }else{
|
|
|
- // setTimeout(function(){
|
|
|
- // $('#mainClassify').slide({
|
|
|
- // mainCell:".clsCon",
|
|
|
- // titCell:".clsTab a",
|
|
|
- // trigger: "click"
|
|
|
- // });
|
|
|
- // },500);
|
|
|
- // setTimeout(function(){
|
|
|
- // $('#mainClassify').slide({
|
|
|
- // mainCell:".tabItem_right",
|
|
|
- // titCell:".tabItem_lift a",
|
|
|
- // trigger: "click"
|
|
|
- // });
|
|
|
- // },500);
|
|
|
- // }
|
|
|
- // }else{
|
|
|
- // CAIMEI.Alert(response.msg, '确定');
|
|
|
- // }
|
|
|
- // });
|
|
|
- // },
|
|
|
+ // 初始化分类菜单效果
|
|
|
initClassufyTab: function(){
|
|
|
if(isPC){
|
|
|
setTimeout(function(){
|
|
@@ -228,10 +160,6 @@ var globalHead = new Vue({
|
|
|
}
|
|
|
},
|
|
|
created: function () {
|
|
|
- // 导航分类数据
|
|
|
- // this.GetProductClassify(1);
|
|
|
- // this.GetProductClassify(2);
|
|
|
- // this.GetNavigationMenu();
|
|
|
// 判断登录状态
|
|
|
if (globalUserData.token) {
|
|
|
this.loginStatus = true;
|