Exemple #1
0
        public HomeModel GetHomeInfo()
        {
            HomeModel homeModel = new HomeModel();
            //首页Banner
            BannerManager bannerManager = new BannerManager();

            homeModel.Banners = bannerManager.GetHomeBanners();
            //热卖商品列表
            RecommendManager recommandManager = new RecommendManager();

            homeModel.HotSaleProducts = recommandManager.GetHomeHotSaleItemList();

            //新品上市商品列表:
            homeModel.RecommendProducts = recommandManager.GetHomeRecommendProductList();

            //今日特卖商品列表:
            homeModel.TodayHotSaleProducts = recommandManager.GetTodayHotSaleItemlist();

            //首页楼层列表
            FloorManager floorManager = new FloorManager();

            homeModel.Floors = floorManager.GetHomeFloors();

            //精选品牌
            homeModel.Brands = recommandManager.GetRecommendBrands();

            //限时抢购
            QueryResult <CountDownItemModel> countDownList = new CountdownManager().GetCountDownList(0, 3);

            homeModel.CountDownList = countDownList.ResultList;

            return(homeModel);
        }