123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473 |
- @using CP.Model;
- @{
- var chart = (CP.Model.Chart)Page.Chart;
- var cz = (Cz)Page.Cz;
- #region 匹配猜你喜欢的模板页
- var ename = cz.ename;
- var trendPageType = TrendPageType.pailie;
- if (Page.TrendPageType != null)
- {
- trendPageType = (TrendPageType)Page.TrendPageType;
- }
- var footerpage = "~/Views/Shared/qgc_footer/qgc_fcsd_footer.cshtml";
- QGEnum qgcflag;
- DFEnum dfcflag;
- GPEnum gpcflag;
- //全国彩
- if (Enum.TryParse<QGEnum>(ename, true, out qgcflag))
- {
- if (ename.Equals(QGEnum.fcqlc.ToString()))
- {
- footerpage = "~/Views/Shared/qgc_footer/qgc_fcqlc_footer.cshtml";
- }
- else if (ename.Equals(QGEnum.fcsd.ToString()))
- {
- footerpage = "~/Views/Shared/qgc_footer/qgc_fcsd_footer.cshtml";
- }
- else if (ename.Equals(QGEnum.fcssq.ToString()))
- {
- footerpage = "~/Views/Shared/qgc_footer/qgc_fcssq_footer.cshtml";
- }
- else if (ename.Equals(QGEnum.tcdlt.ToString()))
- {
- footerpage = "~/Views/Shared/qgc_footer/qgc_tcdlt_footer.cshtml";
- }
- else if (ename.Equals(QGEnum.tcp3.ToString()))
- {
- footerpage = "~/Views/Shared/qgc_footer/qgc_tcp3_footer.cshtml";
- }
- else if (ename.Equals(QGEnum.tcp5.ToString()))
- {
- footerpage = "~/Views/Shared/qgc_footer/qgc_tcp5_footer.cshtml";
- }
- else
- {
- footerpage = "~/Views/Shared/qgc_footer/qgc_fcsd_footer.cshtml";
- }
- }
- //地方彩
- else if (Enum.TryParse<DFEnum>(ename, true, out dfcflag))
- {
- if (ename.Contains("15x5"))
- {
- footerpage = "~/Views/Shared/dfc_footer/dfc_15x5_footer.cshtml";
- }
- else if (ename.Contains("18x7"))
- {
- footerpage = "~/Views/Shared/dfc_footer/dfc_18x7_footer.cshtml";
- }
- else if (ename.Contains("20x5"))
- {
- footerpage = "~/Views/Shared/dfc_footer/dfc_20x5_footer.cshtml";
- }
- else if (ename.Contains("22x5"))
- {
- footerpage = "~/Views/Shared/dfc_footer/dfc_22x5_footer.cshtml";
- }
- else if (ename.Contains("25x5"))
- {
- footerpage = "~/Views/Shared/dfc_footer/dfc_25x5_footer.cshtml";
- }
- else if (ename.Contains("26x5"))
- {
- footerpage = "~/Views/Shared/dfc_footer/dfc_26x5_footer.cshtml";
- }
- else if (ename.Contains("20x5"))
- {
- footerpage = "~/Views/Shared/dfc_footer/dfc_30x5_footer.cshtml";
- }
- else if (ename.Contains("31x7"))
- {
- footerpage = "~/Views/Shared/dfc_footer/dfc_31x7_footer.cshtml";
- }
- else if (ename.Contains("35x7"))
- {
- footerpage = "~/Views/Shared/dfc_footer/dfc_35x7_footer.cshtml";
- }
- else if (ename.Contains("36x7"))
- {
- footerpage = "~/Views/Shared/dfc_footer/dfc_36x7_footer.cshtml";
- }
- else if (ename.Contains("41"))
- {
- footerpage = "~/Views/Shared/dfc_footer/dfc_4+1_footer.cshtml";
- }
- else if (ename.Contains("61"))
- {
- footerpage = "~/Views/Shared/dfc_footer/dfc_6+1_footer.cshtml";
- }
- else if (ename.Contains("7ws"))
- {
- footerpage = "~/Views/Shared/dfc_footer/dfc_7ws_footer.cshtml";
- }
- else if (ename.Contains("hc1"))
- {
- footerpage = "~/Views/Shared/dfc_footer/dfc_hc1_footer.cshtml";
- }
- else if (ename.Contains("hyc"))
- {
- footerpage = "~/Views/Shared/dfc_footer/dfc_hyc_footer.cshtml";
- }
- else if (ename.Contains("klsf"))
- {
- footerpage = "~/Views/Shared/dfc_footer/dfc_klsc_footer.cshtml";
- }
- else if (ename.Contains("pl5"))
- {
- footerpage = "~/Views/Shared/dfc_footer/dfc_p5_footer.cshtml";
- }
- else if (ename.Contains("p62"))
- {
- footerpage = "~/Views/Shared/dfc_footer/dfc_p62_footer.cshtml";
- }
- else if (ename.Contains("pl7"))
- {
- footerpage = "~/Views/Shared/dfc_footer/dfc_p7_footer.cshtml";
- }
- else if (ename.Contains("szfc"))
- {
- footerpage = "~/Views/Shared/dfc_footer/dfc_szfc_footer.cshtml";
- }
- else if (ename.Contains("ttc"))
- {
- footerpage = "~/Views/Shared/dfc_footer/dfc_ttcx_footer.cshtml";
- }
- else if (ename.Contains("hk"))
- {
- footerpage = "~/Views/Shared/dfc_footer/dfc_xgc_footer.cshtml";
- }
- else
- {
- footerpage = "~/Views/Shared/dfc_footer/dfc_15x5_footer.cshtml";
- }
- }
- //高频彩
- else if (Enum.TryParse<GPEnum>(ename, true, out gpcflag))
- {
- if (ename.Contains("11x5"))
- {
- footerpage = "~/Views/Shared/gpc_footer/gpc_11x5_footer.cshtml";
- }
- else if (ename.Contains("k3"))
- {
- footerpage = "~/Views/Shared/gpc_footer/gpc_k3_footer.cshtml";
- }
- else if (ename.Contains("kl10f"))
- {
- footerpage = "~/Views/Shared/gpc_footer/gpc_kl10_footer.cshtml";
- }
- else if (ename.Contains("ssc"))
- {
- footerpage = "~/Views/Shared/gpc_footer/gpc_ssc_footer.cshtml";
- }
- else
- {
- footerpage = "~/Views/Shared/gpc_footer/gpc_other_footer.cshtml";
- }
- }
- #endregion
- var innerLinks = (List<CzLink>)Page.InnerLink;
- var zsList = (List<CP.Model.Chart>)Page.ZsList;
- var gjList = (List<CP.Model.Chart>)Page.GjList;
- var ylList = (List<CP.Model.Chart>)Page.YlList;
- var tbList = (List<CP.Model.Chart>)Page.TbList;
- var ztList = (List<CP.Model.ZtColumn>)Page.ZtList;
- }
- <!DOCTYPE html>
- <html lang="zh-cn">
- <head>
- <title>@Page.Title</title>
- @if (!string.IsNullOrWhiteSpace(Page.Description))
- {
- <meta name="description" content="@Page.Description" />
- }
- @if (!string.IsNullOrWhiteSpace(Page.Keywords))
- {
- <meta name="keywords" content="@Page.Keywords" />
- }
- <meta name="copyright" content="彩吧助手(www.55128.cn)" />
- <meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1">
- <link rel="icon" type="image/x-icon" href="/static/images/favicon.ico" mce_href="/static/images/favicon.ico">
- @Html.Raw(Statics.GetStatics("base:charts"))
- @Html.Raw(Statics.GetStatics("tool", "css"))
- @Html.Raw(Statics.GetStatics("ft-carousel", "css"))
- @Html.Raw(Statics.GetStatics("iconfont:jquery:function"))
- @(trendPageType == TrendPageType.renxuan? Html.Raw(Statics.GetStatics("trendChart", "js")): Html.Raw(Statics.GetStatics("trendChart2", "js")))
- @Html.Raw(Statics.GetStatics("hashtable", "js"))
- @Html.Raw(Statics.GetStatics("tool", "js"))
- @Html.Raw(Statics.GetStatics("ft-carousel", "js"))
- @RenderSection("head", required: false)
- </head>
- <body class="bg-f0">
- @*@{Html.RenderAction("hb", "Home", new { });}*@
- <div class="header">
- @Html.Action("header", "Shared")
- @RenderPage("~/Views/Shared/_Advertisement.cshtml")
- @Html.Action("_dqwf", "Shared")
- <div class="wrap">
- <div class="subnav">
- <div class="title">
- <h2>@cz.name</h2>
- <ul class="href">
- @if (innerLinks.Count > 0)
- {
- foreach (var link in innerLinks)
- {
- <li>
- <a href="@link.linkurl">@link.linkname</a>
- </li>
- }
- }
- </ul>
- </div>
- <div class="lottery">
- <div class="lot-icon">
- <img src="~/static/images/czicon/@(cz.ename).png" />
- </div>
- </div>
- <div class="subnav-right">
- @{ int num = 0;
- if (zsList != null && zsList.Count > 0)
- {
- num++;
- }
- if (gjList != null && gjList.Count > 0)
- {
- num++;
- }
- if (ylList != null && ylList.Count > 0)
- {
- num++;
- }
- if (tbList != null && tbList.Count > 0)
- {
- num++;
- }
- if (ztList != null && ztList.Count > 0)
- {
- num++;
- }
- }
- @if (num > 1)
- {
- <div id="tab_t" class="menu">
- <ul>
- @if (zsList != null && zsList.Count > 0)
- {
- <li class="@(chart.tid== ChartType.走势?"act":"")">
- <a href="javascript:void(0);">走势</a>
- </li>
- }
- @if (gjList != null && gjList.Count > 0)
- {
- <li class="@(chart.tid== ChartType.工具?"act":"")">
- <a href="javascript:void(0);">工具</a>
- </li>
- }
- @if (ylList != null && ylList.Count > 0)
- {
- <li class="@(chart.tid== ChartType.遗漏?"act":"")">
- <a href="javascript:void(0);">遗漏</a>
- </li>
- }
- @if (tbList != null && tbList.Count > 0)
- {
- <li class="@(chart.tid== ChartType.图表?"act":"")">
- <a href="javascript:void(0);">图表</a>
- </li>
- }
- @if (ztList != null && ztList.Count > 0)
- {
- <li class="@(chart.tid== ChartType.专题?"act":"")">
- <a href="javascript:void(0);">专题</a>
- </li>
- }
- </ul>
- </div>
- }
- <div id="tab_c">
- @if (zsList != null && zsList.Count > 0)
- {
- <div class="@(chart.tid==ChartType.走势?"":"hide")">
- <ul class="submenu">
- @for (var i = 0; i < zsList.Count; i++)
- {
- var item = zsList[i];
- if (item.chartid == chart.chartid)
- {
- <li class="select">
- <a title="@item.name" href="@($"/{item.url}")" target="_blank">@item.name</a>
- </li>
- }
- else
- {
- <li>
- <a title="@item.name" href="@($"/{item.url}")" target="_blank">@item.name</a>
- </li>
- }
- }
- </ul>
- </div>
- }
- @if (gjList != null && gjList.Count > 0)
- {
- <div class="@(chart.tid==ChartType.工具?"":"hide")">
- <ul class="submenu">
- @for (var i = 0; i < gjList.Count; i++)
- {
- var item = gjList[i];
- if (item.chartid == chart.chartid)
- {
- <li class="select">
- <a title="@item.name" href="@($"/{item.url}")" target="_blank">@item.name</a>
- </li>
- }
- else
- {
- <li>
- <a title="@item.name" href="@($"/{item.url}")" target="_blank">@item.name</a>
- </li>
- }
- }
- </ul>
- </div>
- }
- @if (ylList != null && ylList.Count > 0)
- {
- <div class="@(chart.tid==ChartType.遗漏?"":"hide")">
- <ul class="submenu">
- @for (var i = 0; i < ylList.Count; i++)
- {
- var item = ylList[i];
- if (item.chartid == chart.chartid)
- {
- <li class="select">
- <a title="@item.name" href="@($"/{item.url}")" target="_blank">@item.name</a>
- </li>
- }
- else
- {
- <li>
- <a title="@item.name" href="@($"/{item.url}")" target="_blank">@item.name</a>
- </li>
- }
- }
- </ul>
- </div>
- }
- @if (tbList != null && tbList.Count > 0)
- {
- <div class="@(chart.tid==ChartType.图表?"":"hide")">
- <ul class="submenu">
- @for (var i = 0; i < tbList.Count; i++)
- {
- var item = tbList[i];
- if (item.chartid == chart.chartid)
- {
- <li class="select">
- <a title="@item.name" href="@($"/{item.url}")" target="_blank">@item.name</a>
- </li>
- }
- else
- {
- <li>
- <a title="@item.name" href="@($"/{item.url}")" target="_blank">@item.name</a>
- </li>
- }
- }
- </ul>
- </div>
- }
- @if (ztList != null && ztList.Count > 0)
- {
- <div class="@(chart.tid==ChartType.专题?"":"hide")">
- <ul class="submenu">
- @for (var i = 0; i < ztList.Count; i++)
- {
- var item = ztList[i];
- <li>
- <a title="@item.Name" href="@($"/zt/{item.RewriteUrl}")" target="_blank">@item.Name</a>
- </li>
- }
- </ul>
- </div>
- }
- </div>
- </div>
- </div>
- </div>
- </div>
- @RenderBody()
- <div class="footer mb10">
- <div class="box">
- @RenderPage(footerpage)
- </div>
- @Html.Action("_help", "Shared", new { cid = cz.cid })
- @RenderPage("~/Views/Shared/_Hot.cshtml")
- <div class="box">
- @Html.Action("_Links", "Shared")
- </div>
- </div>
- @{Html.RenderAction("gg", "Home", new { });}
- @RenderPage("~/Views/Shared/footer.cshtml")
- <script type="text/javascript">
- showNavSelect();
- //走势图查询
- trendSearch({
- box: "#trendSearchBox",
- link: ".search-link",
- wSelectBox: "#wSelectBox",
- selectBox: "#mSelectBox",
- searchBtn: "#btnSearch",
- refreshBtn: "#btnRefresh"
- });
- trendInit(); //走势图相关功能
- $("#chartData").children("tr").click(function () { $(this).attr("class", $(this).attr("class") == "row-status" ? "" : "row-status"); });
- $(window).scroll(function () { scrollTrend(); });
- //帮助文章显示与隐藏
- $("#showAll").click(function () { this.style.display = "none"; $("#showPart").css("display", "inline"); $("#showBox").attr("style", "height:auto;"); });
- $("#showPart").click(function () { this.style.display = "none"; $("#showAll").css("display", "inline"); $("#showBox").attr("style", ""); });
- /*导航鼠标点击切换事件处理*/
- (function (tabMenu, tabContent) {
- var menu = $(tabMenu).children("ul").eq(0).children("li");
- if (1 >= menu.length) { return; }
- var list = $(tabContent).children("div");
- menu.each(function (i) {
- $(this).click(function () {
- menu.attr("class", "");
- list.attr("class", "hide");
- menu.eq(i).attr("class", "act");
- list.eq(i).attr("class", "");
- });
- });
- })("#tab_t", "#tab_c");
- </script>
- @RenderSection("script", required: false)
- <script type="text/javascript">
- /*导航鼠标点击切换事件处理*/
- (function (tabMenu, tabContent) {
- var menu = $(tabMenu).children("ul").eq(0).children("li");
- if (1 >= menu.length) { return; }
- var list = $(tabContent).children("div");
- menu.each(function (i) {
- $(this).click(function () {
- menu.attr("class", "");
- list.attr("class", "hide");
- menu.eq(i).attr("class", "act");
- list.eq(i).attr("class", "");
- });
- });
- })("#tab_t", "#tab_c");
- $('.tab_div .tab-item').click(function () {
- var index = $(this).index();
- $('.tab_div .tab-item').removeClass('active');
- $(this).addClass('active');
- $('.tab-content-box .tab-content-item').removeClass('active');
- $('.tab-content-box .tab-content-item').eq(index).addClass('active');
- });
- </script>
- </body>
- </html>
|