|
@@ -93,6 +93,16 @@ var homeData = new Vue({
|
|
|
}
|
|
|
},300);
|
|
|
},
|
|
|
+ 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, '确定');
|
|
|
+ }
|
|
|
+ });
|
|
|
+ },
|
|
|
GetHomeFloorData: function(){
|
|
|
var _self = this;
|
|
|
PublicApi.GetHomeData({userId:GLOBAL_USER_ID,soure:1},function(response){
|
|
@@ -250,6 +260,7 @@ var homeData = new Vue({
|
|
|
this.userId = JSON.parse(userInfo).userId;
|
|
|
}
|
|
|
this.GetBanners();
|
|
|
+ this.GetNavigationMenu();
|
|
|
this.GetHomeFloorData();
|
|
|
},
|
|
|
mounted: function() {
|