Exemplo n.º 1
0
        // GET: Event
        public ActionResult Index()
        {
            HomePageBll homePageBll   = new HomePageBll();
            var         homePageModel = homePageBll.CreateEventPageModel();

            return(View(homePageModel));
        }
Exemplo n.º 2
0
        public ActionResult RedAndGrayHomePage()
        {
            var redData  = HomePageBll.GetAllTypeHomePage("8", 2);
            var grayData = HomePageBll.GetAllTypeHomePage("9", 6);
            var result   = new { redData = redData, grayData = grayData };

            return(Json(result, JsonRequestBehavior.AllowGet));
        }
Exemplo n.º 3
0
        public ActionResult Index()
        {
            HomePageBll homePageBll   = new HomePageBll();
            var         homePageModel = homePageBll.CreateHomePageModel();
            string      city          = "";

            try
            {
                city = Request.Params["city"] ?? "";
            }
            catch (Exception)
            {
            }
            if (string.IsNullOrEmpty(city))
            {
                city = "郑州";
            }
            Session["CurrentCity"] = city;

            return(View(homePageModel));
        }
Exemplo n.º 4
0
 public ActionResult Index()
 {
     ViewData["smallImg"]   = AdvertisementBll.GetAllTypeAdvert("2", 9);
     ViewData["advert"]     = AdvertisementBll.GetAllTypeAdvert("3", 2);
     ViewBag.IndexBigImg    = AdvertisementBll.GetAllTypeAdvert("1", 1);
     ViewBag.SiYe           = AdvertisementBll.GetAllTypeAdvert("4", 1);
     ViewData["recGame"]    = HomePageBll.GetAllTypeHomePage("11", 11);
     ViewData["joinCpy"]    = HomePageBll.GetAllTypeHomePage("12", 13);
     ViewData["SlideShow"]  = HomePageBll.GetAllTypeHomePage("7", 10);
     ViewData["TenTopArea"] = HomePageBll.GetAllTypeHomePage("10", 10);
     //网站首页所有新闻类型
     ViewData["allTypeNews"] = NewsBll.GetAllNewsIndex();
     //开测
     ViewData["TestInfo"] = TestBll.TestDataTen();
     //最爽礼包
     ViewData["NewestCoolPackage"] = PackageBll.NewestCoolPackage();
     //最热游戏
     ViewData["NewestHotGame"] = HomePageBll.GetAllTypeHomePage("13", 5);
     // 最强福利
     ViewBag.NewsetGameDemo = GameDemoBll.GetNewestGameDemo();
     //直播热点
     ViewData["DirectHot"]      = HomePageBll.GetAllTypeHomePage("5", 1);
     ViewData["threeDirectHot"] = NewsBll.AccondingTypeGetNews("5");
     //手游
     ViewData["MobileGame"]      = HomePageBll.GetAllTypeHomePage("6", 1);
     ViewData["threeMobileGame"] = NewsBll.AccondingTypeGetNews("6");
     //最赞攻略结合游戏库拿游戏的logo图
     ViewData["MostGreatRaiders"] = UserRaidersBll.GetMostGreatRaiders(10);
     //福利美图
     ViewData["NewestIndexRecGirls"] = BeautifulGirlsBll.NewestIndexRecGirls();
     //热游排行
     ViewBag.InLikeNumHotGame = GameBll.InLikeNumHotGame();
     //开服
     ViewBag.sevenData = OpenServiceBll.WillSevenDayService();
     //资讯排行
     ViewBag.LikeNumNews = NewsBll.InLikeNumNews();
     ViewBag.RecCpy      = CompanyBll.RecCompany();
     return(View());
 }