Exemple #1
0
        public H5ResponseViewModel <HomePageList> HomePage2([FromBody] RequestViewModel Parameters)
        {
            var          sysCode  = _sys.CheckParameters(Parameters.Data, "homepage");
            HomePageList homePage = null;
            H5ResponseViewModel <HomePageList> response = null;

            if (sysCode == SysCode.Ok)
            {
                var strjson = _homeservice.homePage();
                homePage = strjson;
            }
            response = new H5ResponseViewModel <HomePageList>(sysCode, homePage ?? null);
            return(response);
        }
Exemple #2
0
        /// <summary>
        /// 海南竞技首页
        /// </summary>
        /// <returns></returns>
        public HomePageList homePage()
        {
            string banner1 = "https://hxjj-ls0.funhainan.com/Banner_01.png";
            string banner2 = "https://hxjj-ls0.funhainan.com/Banner_02.png";
            string banner3 = "https://hxjj-ls0.funhainan.com/Banner_03.png";
            string banner4 = "https://hxjj-ls0.funhainan.com/Banner_04.png";

            string[] strbanner = { banner1, banner2, banner3, banner4 };

            HomeIntroduce introduce = new HomeIntroduce()
            {
                Img     = "https://hxjj-ls0.funhainan.com/Artboard.png",
                Title   = "海峡骑行竞技",
                Content = "骑击是集娱乐、健康、竞技、文化为一体的新型游戏游艺项目,目前已获得十余项国际及国内专利。骑击,旨在增强民族素质,提升勇武精神,它利用了现代化的设施设备,结合传统武术技艺,按照现代体育竞技的要求,让经常参与者强身健体得到锻炼。骑击的主要形式为:身穿装备,手持器械(武器),骑于仿真动物(机械马)上,进行多人或多方的对战,由电脑自动计分,立判输赢。它的多人多方对战,演绎多方博弈,引领人们对多方博弈进行研究,可以弥补中华民族多方博弈方法论的不足。把项目推广进校园,结合传统武术教育,符合国家中长期教育改革和发展规划纲要的要求,对增强学生体质,锻炼学生意志品质,传承民族文化以及弘扬民族精神等方面,起到积极独特的作用。",
                Adress  = "福州市海峡奥体中心广场2号",
            };
            HomeRiding riding1 = new HomeRiding()
            {
                ReadImg    = "https://hxjj-ls0.funhainan.com/%E6%9C%AA%E6%A0%87%E9%A2%98-1.png",
                ReadTitle  = "5分钟乐趣票,市场价40元",
                ReadPrice  = "38",
                ReadMonery = "3800.00"
            }; HomeRiding riding2 = new HomeRiding()

            {
                ReadImg    = "https://hxjj-ls0.funhainan.com/%E8%AE%AD%E7%BB%83%E5%8C%BA.png",
                ReadTitle  = "10分钟乐趣票,市场价80元",
                ReadPrice  = "48",
                ReadMonery = "4800.00"
            };
            HomeRiding riding3 = new HomeRiding()
            {
                ReadImg    = "https://hxjj-ls0.funhainan.com/%E4%BD%93%E9%AA%8C%E5%8C%BA.png",
                ReadTitle  = "15分钟乐趣票,市场价120元",
                ReadPrice  = "69",
                ReadMonery = "6900.00"
            };
            HomeRiding riding4 = new HomeRiding()
            {
                ReadImg    = "https://hxjj-ls0.funhainan.com/%E7%83%AD%E8%A1%80%E7%AB%9E%E6%8A%80_%E9%9D%9E%E6%AF%94%E8%B5%9B%E6%97%B6%E9%97%B4.png",
                ReadTitle  = "30分钟训练票,市场价240元",
                ReadPrice  = "129",
                ReadMonery = "12900.00"
            };
            HomeRiding riding5 = new HomeRiding()
            {
                ReadImg    = "https://hxjj-ls0.funhainan.com/%E7%83%AD%E8%A1%80%E7%AB%9E%E6%8A%80_%E6%AF%94%E8%B5%9B%E6%97%B6%E9%97%B4.png",
                ReadTitle  = "15分钟竞技票,市场价598元",
                ReadPrice  = "298",
                ReadMonery = "298000.00"
            };
            HomeGame game1 = new HomeGame()
            {
                GameImg   = "https://pic.8win.com/game/events/2017/7/17/09c89888-1ab7-4663-aee1-7bf1f3622c41.png",
                GameTitle = "南海渔王",
                GameConet = "一网捞出金元宝",
                Gameurl   = "https://hainan.funhainan.com/ZsqImage/newapploading/index.html?gameType=2&gameUrl=\"\"&category=1&zy-action={\"showTitle\":1,\"titleName\":\"南海渔王\"}",
                Gameid    = 2
            };
            HomeGame game2 = new HomeGame()
            {
                GameImg   = "https://pic.8win.com/game/events/2017/6/7/fa0eb9b7-0cde-4913-a312-734e96e9aa65.png",
                GameTitle = "狗狗冲冲冲",
                GameConet = "猜猜谁跑的快",
                Gameurl   = "https://hainan.funhainan.com/ZsqImage/newapploading/index.html?gameType=3&gameUrl=\"\"&category=1&zy-action={\"showTitle\":1,\"titleName\":\"狗狗冲冲冲\"}",
                Gameid    = 1
            };
            HomeGame game3 = new HomeGame()
            {
                GameImg   = "https://pic.8win.com/game/events/2017/12/27/69c14369-a8ee-48d3-abb9-f2b2ce2ac5bd.png",
                GameTitle = "幸运大转盘",
                GameConet = "赚翻趣多多",
                //Gameurl = "https://hainan.funhainan.com:944/ZsqImage/SpinningLucky/dist/#/main",
                Gameurl = "https://luckyd.funhainan.com/new2/ZsqImage/SpinningLucky/dist/#/main",
                Gameid  = 0
            };

            List <HomeIntroduce> homeIntroduces = new List <HomeIntroduce>();

            homeIntroduces.Add(introduce);
            List <HomeRiding> homeRidings = new List <HomeRiding>();

            homeRidings.Add(riding1);
            homeRidings.Add(riding2);
            homeRidings.Add(riding3);
            homeRidings.Add(riding4);
            homeRidings.Add(riding5);
            List <HomeGame> homeGames = new List <HomeGame>();

            homeGames.Add(game1);
            homeGames.Add(game2);
            homeGames.Add(game3);
            HomePageList homePageList = new HomePageList();

            homePageList.BannerImgs    = strbanner;
            homePageList.homeIntroduce = homeIntroduces;
            homePageList.homeRiding    = homeRidings;
            homePageList.homeGame      = homeGames;
            return(homePageList);
        }
Exemple #3
0
        /// <summary>
        /// 海南竞技首页2
        /// </summary>
        /// <returns></returns>
        public async Task <HomePageList> homePage2()
        {
            string banner1 = "https://hxjj-ls0.funhainan.com/Banner_01.png";
            string banner2 = "https://hxjj-ls0.funhainan.com/Banner_02.png";
            string banner3 = "https://hxjj-ls0.funhainan.com/Banner_03.png";
            string banner4 = "https://hxjj-ls0.funhainan.com/Banner_04.png";

            string[] strbanner = { banner1, banner2, banner3, banner4 };

            HomeIntroduce introduce = new HomeIntroduce()
            {
                Img     = "https://hxjj-ls0.funhainan.com/Artboard.png",
                Title   = "海峡骑行竞技",
                Content = "骑击是集娱乐、健康、竞技、文化为一体的新型游戏游艺项目,目前已获得十余项国际及国内专利。骑击,旨在增强民族素质,提升勇武精神,它利用了现代化的设施设备,结合传统武术技艺,按照现代体育竞技的要求,让经常参与者强身健体得到锻炼。骑击的主要形式为:身穿装备,手持器械(武器),骑于仿真动物(机械马)上,进行多人或多方的对战,由电脑自动计分,立判输赢。它的多人多方对战,演绎多方博弈,引领人们对多方博弈进行研究,可以弥补中华民族多方博弈方法论的不足。把项目推广进校园,结合传统武术教育,符合国家中长期教育改革和发展规划纲要的要求,对增强学生体质,锻炼学生意志品质,传承民族文化以及弘扬民族精神等方面,起到积极独特的作用。",
                Adress  = "福州市海峡奥体中心广场2号",
            };

            HomeGame game1 = new HomeGame()
            {
                GameImg   = "https://pic.8win.com/game/events/2017/7/17/09c89888-1ab7-4663-aee1-7bf1f3622c41.png",
                GameTitle = "南海渔王",
                GameConet = "一网捞出金元宝",
                Gameurl   = "https://hi-h5.8win.com/#/lqhn/transferpage?keep=1&url=http://120.92.154.66:8080/proslot/SouthFish/index.html/FoperatorKey/DNHYW/gameId/FishTycoon/language/zh&category=1&zy-action%3d%7b%26quot%3bshowTitle%26quot%3b%3a1%2c%26quot%3btitleName%26quot%3b%3a%26quot%3b%e5%8d%97%e6%b5%b7%e6%b8%94%e7%8e%8b%26quot%3b%7d",
                Gameid    = 2
            };
            HomeGame game2 = new HomeGame()
            {
                GameImg   = "https://pic.8win.com/game/events/2017/6/7/fa0eb9b7-0cde-4913-a312-734e96e9aa65.png",
                GameTitle = "狗狗冲冲冲",
                GameConet = "猜猜谁跑的快",
                Gameurl   = "https://hi-h5.8win.com/#/lqhn/transferpage?keep=1&url=https://8win.joyboat6.cn/zycp_hi/v1/index.html&category=1&zy-action=%7b%22showTitle%22%3a1%2c%22titleName%22%3a%22%e7%8b%97%e7%8b%97%e5%86%b2%e5%86%b2%e5%86%b2%22%7d",
                Gameid    = 1
            };
            HomeGame game3 = new HomeGame()
            {
                GameImg   = "https://pic.8win.com/game/events/2017/12/27/69c14369-a8ee-48d3-abb9-f2b2ce2ac5bd.png",
                GameTitle = "幸运大转盘",
                GameConet = "赚翻趣多多",
                //Gameurl = "https://hainan.funhainan.com:944/ZsqImage/SpinningLucky/dist/#/main",
                Gameurl = "https://luckyd.funhainan.com/new2/ZsqImage/SpinningLucky/dist/#/main",
                Gameid  = 0
            };

            try
            {
                List <HomeIntroduce> homeIntroduces = new List <HomeIntroduce>();
                homeIntroduces.Add(introduce);
                List <HomeRiding> homeRidings = await HomeRidings();

                List <HomeGame>   homeGames  = new List <HomeGame>();
                List <HomeGames2> homeGames2 = await HomeGames();


                HomeGames2 homeGamelist = new HomeGames2();
                foreach (var item in homeGames2)
                {
                    HomeGame homeGame = new HomeGame();
                    homeGame.GameImg   = item.ReadImg;
                    homeGame.GameTitle = item.ReadTitle;
                    homeGame.GameConet = item.Description;
                    homeGame.Gameurl   = item.Link_Url;
                    homeGame.Gameid    = 1;

                    homeGames.Add(homeGame);
                }


                HomePageList homePageList = new HomePageList();
                homePageList.BannerImgs    = strbanner;
                homePageList.homeIntroduce = homeIntroduces;
                homePageList.homeRiding    = homeRidings;
                homePageList.homeGame      = homeGames;
                return(homePageList);
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }