浏览代码

首页样式修改

zhengjinyi 4 年之前
父节点
当前提交
bf534bdc31
共有 1 个文件被更改,包括 11 次插入0 次删除
  1. 11 0
      src/main/resources/static/js/index.js

+ 11 - 0
src/main/resources/static/js/index.js

@@ -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() {