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)); }
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()); }