_zst.cshtml 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473
  1. @using CP.Model;
  2. @{
  3. var chart = (CP.Model.Chart)Page.Chart;
  4. var cz = (Cz)Page.Cz;
  5. #region 匹配猜你喜欢的模板页
  6. var ename = cz.ename;
  7. var trendPageType = TrendPageType.pailie;
  8. if (Page.TrendPageType != null)
  9. {
  10. trendPageType = (TrendPageType)Page.TrendPageType;
  11. }
  12. var footerpage = "~/Views/Shared/qgc_footer/qgc_fcsd_footer.cshtml";
  13. QGEnum qgcflag;
  14. DFEnum dfcflag;
  15. GPEnum gpcflag;
  16. //全国彩
  17. if (Enum.TryParse<QGEnum>(ename, true, out qgcflag))
  18. {
  19. if (ename.Equals(QGEnum.fcqlc.ToString()))
  20. {
  21. footerpage = "~/Views/Shared/qgc_footer/qgc_fcqlc_footer.cshtml";
  22. }
  23. else if (ename.Equals(QGEnum.fcsd.ToString()))
  24. {
  25. footerpage = "~/Views/Shared/qgc_footer/qgc_fcsd_footer.cshtml";
  26. }
  27. else if (ename.Equals(QGEnum.fcssq.ToString()))
  28. {
  29. footerpage = "~/Views/Shared/qgc_footer/qgc_fcssq_footer.cshtml";
  30. }
  31. else if (ename.Equals(QGEnum.tcdlt.ToString()))
  32. {
  33. footerpage = "~/Views/Shared/qgc_footer/qgc_tcdlt_footer.cshtml";
  34. }
  35. else if (ename.Equals(QGEnum.tcp3.ToString()))
  36. {
  37. footerpage = "~/Views/Shared/qgc_footer/qgc_tcp3_footer.cshtml";
  38. }
  39. else if (ename.Equals(QGEnum.tcp5.ToString()))
  40. {
  41. footerpage = "~/Views/Shared/qgc_footer/qgc_tcp5_footer.cshtml";
  42. }
  43. else
  44. {
  45. footerpage = "~/Views/Shared/qgc_footer/qgc_fcsd_footer.cshtml";
  46. }
  47. }
  48. //地方彩
  49. else if (Enum.TryParse<DFEnum>(ename, true, out dfcflag))
  50. {
  51. if (ename.Contains("15x5"))
  52. {
  53. footerpage = "~/Views/Shared/dfc_footer/dfc_15x5_footer.cshtml";
  54. }
  55. else if (ename.Contains("18x7"))
  56. {
  57. footerpage = "~/Views/Shared/dfc_footer/dfc_18x7_footer.cshtml";
  58. }
  59. else if (ename.Contains("20x5"))
  60. {
  61. footerpage = "~/Views/Shared/dfc_footer/dfc_20x5_footer.cshtml";
  62. }
  63. else if (ename.Contains("22x5"))
  64. {
  65. footerpage = "~/Views/Shared/dfc_footer/dfc_22x5_footer.cshtml";
  66. }
  67. else if (ename.Contains("25x5"))
  68. {
  69. footerpage = "~/Views/Shared/dfc_footer/dfc_25x5_footer.cshtml";
  70. }
  71. else if (ename.Contains("26x5"))
  72. {
  73. footerpage = "~/Views/Shared/dfc_footer/dfc_26x5_footer.cshtml";
  74. }
  75. else if (ename.Contains("20x5"))
  76. {
  77. footerpage = "~/Views/Shared/dfc_footer/dfc_30x5_footer.cshtml";
  78. }
  79. else if (ename.Contains("31x7"))
  80. {
  81. footerpage = "~/Views/Shared/dfc_footer/dfc_31x7_footer.cshtml";
  82. }
  83. else if (ename.Contains("35x7"))
  84. {
  85. footerpage = "~/Views/Shared/dfc_footer/dfc_35x7_footer.cshtml";
  86. }
  87. else if (ename.Contains("36x7"))
  88. {
  89. footerpage = "~/Views/Shared/dfc_footer/dfc_36x7_footer.cshtml";
  90. }
  91. else if (ename.Contains("41"))
  92. {
  93. footerpage = "~/Views/Shared/dfc_footer/dfc_4+1_footer.cshtml";
  94. }
  95. else if (ename.Contains("61"))
  96. {
  97. footerpage = "~/Views/Shared/dfc_footer/dfc_6+1_footer.cshtml";
  98. }
  99. else if (ename.Contains("7ws"))
  100. {
  101. footerpage = "~/Views/Shared/dfc_footer/dfc_7ws_footer.cshtml";
  102. }
  103. else if (ename.Contains("hc1"))
  104. {
  105. footerpage = "~/Views/Shared/dfc_footer/dfc_hc1_footer.cshtml";
  106. }
  107. else if (ename.Contains("hyc"))
  108. {
  109. footerpage = "~/Views/Shared/dfc_footer/dfc_hyc_footer.cshtml";
  110. }
  111. else if (ename.Contains("klsf"))
  112. {
  113. footerpage = "~/Views/Shared/dfc_footer/dfc_klsc_footer.cshtml";
  114. }
  115. else if (ename.Contains("pl5"))
  116. {
  117. footerpage = "~/Views/Shared/dfc_footer/dfc_p5_footer.cshtml";
  118. }
  119. else if (ename.Contains("p62"))
  120. {
  121. footerpage = "~/Views/Shared/dfc_footer/dfc_p62_footer.cshtml";
  122. }
  123. else if (ename.Contains("pl7"))
  124. {
  125. footerpage = "~/Views/Shared/dfc_footer/dfc_p7_footer.cshtml";
  126. }
  127. else if (ename.Contains("szfc"))
  128. {
  129. footerpage = "~/Views/Shared/dfc_footer/dfc_szfc_footer.cshtml";
  130. }
  131. else if (ename.Contains("ttc"))
  132. {
  133. footerpage = "~/Views/Shared/dfc_footer/dfc_ttcx_footer.cshtml";
  134. }
  135. else if (ename.Contains("hk"))
  136. {
  137. footerpage = "~/Views/Shared/dfc_footer/dfc_xgc_footer.cshtml";
  138. }
  139. else
  140. {
  141. footerpage = "~/Views/Shared/dfc_footer/dfc_15x5_footer.cshtml";
  142. }
  143. }
  144. //高频彩
  145. else if (Enum.TryParse<GPEnum>(ename, true, out gpcflag))
  146. {
  147. if (ename.Contains("11x5"))
  148. {
  149. footerpage = "~/Views/Shared/gpc_footer/gpc_11x5_footer.cshtml";
  150. }
  151. else if (ename.Contains("k3"))
  152. {
  153. footerpage = "~/Views/Shared/gpc_footer/gpc_k3_footer.cshtml";
  154. }
  155. else if (ename.Contains("kl10f"))
  156. {
  157. footerpage = "~/Views/Shared/gpc_footer/gpc_kl10_footer.cshtml";
  158. }
  159. else if (ename.Contains("ssc"))
  160. {
  161. footerpage = "~/Views/Shared/gpc_footer/gpc_ssc_footer.cshtml";
  162. }
  163. else
  164. {
  165. footerpage = "~/Views/Shared/gpc_footer/gpc_other_footer.cshtml";
  166. }
  167. }
  168. #endregion
  169. var innerLinks = (List<CzLink>)Page.InnerLink;
  170. var zsList = (List<CP.Model.Chart>)Page.ZsList;
  171. var gjList = (List<CP.Model.Chart>)Page.GjList;
  172. var ylList = (List<CP.Model.Chart>)Page.YlList;
  173. var tbList = (List<CP.Model.Chart>)Page.TbList;
  174. var ztList = (List<CP.Model.ZtColumn>)Page.ZtList;
  175. }
  176. <!DOCTYPE html>
  177. <html lang="zh-cn">
  178. <head>
  179. <title>@Page.Title</title>
  180. @if (!string.IsNullOrWhiteSpace(Page.Description))
  181. {
  182. <meta name="description" content="@Page.Description" />
  183. }
  184. @if (!string.IsNullOrWhiteSpace(Page.Keywords))
  185. {
  186. <meta name="keywords" content="@Page.Keywords" />
  187. }
  188. <meta name="copyright" content="彩吧助手(www.55128.cn)" />
  189. <meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1">
  190. <link rel="icon" type="image/x-icon" href="/static/images/favicon.ico" mce_href="/static/images/favicon.ico">
  191. @Html.Raw(Statics.GetStatics("base:charts"))
  192. @Html.Raw(Statics.GetStatics("tool", "css"))
  193. @Html.Raw(Statics.GetStatics("ft-carousel", "css"))
  194. @Html.Raw(Statics.GetStatics("iconfont:jquery:function"))
  195. @(trendPageType == TrendPageType.renxuan? Html.Raw(Statics.GetStatics("trendChart", "js")): Html.Raw(Statics.GetStatics("trendChart2", "js")))
  196. @Html.Raw(Statics.GetStatics("hashtable", "js"))
  197. @Html.Raw(Statics.GetStatics("tool", "js"))
  198. @Html.Raw(Statics.GetStatics("ft-carousel", "js"))
  199. @RenderSection("head", required: false)
  200. </head>
  201. <body class="bg-f0">
  202. @*@{Html.RenderAction("hb", "Home", new { });}*@
  203. <div class="header">
  204. @Html.Action("header", "Shared")
  205. @RenderPage("~/Views/Shared/_Advertisement.cshtml")
  206. @Html.Action("_dqwf", "Shared")
  207. <div class="wrap">
  208. <div class="subnav">
  209. <div class="title">
  210. <h2>@cz.name</h2>
  211. <ul class="href">
  212. @if (innerLinks.Count > 0)
  213. {
  214. foreach (var link in innerLinks)
  215. {
  216. <li>
  217. <a href="@link.linkurl">@link.linkname</a>
  218. </li>
  219. }
  220. }
  221. </ul>
  222. </div>
  223. <div class="lottery">
  224. <div class="lot-icon">
  225. <img src="~/static/images/czicon/@(cz.ename).png" />
  226. </div>
  227. </div>
  228. <div class="subnav-right">
  229. @{ int num = 0;
  230. if (zsList != null && zsList.Count > 0)
  231. {
  232. num++;
  233. }
  234. if (gjList != null && gjList.Count > 0)
  235. {
  236. num++;
  237. }
  238. if (ylList != null && ylList.Count > 0)
  239. {
  240. num++;
  241. }
  242. if (tbList != null && tbList.Count > 0)
  243. {
  244. num++;
  245. }
  246. if (ztList != null && ztList.Count > 0)
  247. {
  248. num++;
  249. }
  250. }
  251. @if (num > 1)
  252. {
  253. <div id="tab_t" class="menu">
  254. <ul>
  255. @if (zsList != null && zsList.Count > 0)
  256. {
  257. <li class="@(chart.tid== ChartType.走势?"act":"")">
  258. <a href="javascript:void(0);">走势</a>
  259. </li>
  260. }
  261. @if (gjList != null && gjList.Count > 0)
  262. {
  263. <li class="@(chart.tid== ChartType.工具?"act":"")">
  264. <a href="javascript:void(0);">工具</a>
  265. </li>
  266. }
  267. @if (ylList != null && ylList.Count > 0)
  268. {
  269. <li class="@(chart.tid== ChartType.遗漏?"act":"")">
  270. <a href="javascript:void(0);">遗漏</a>
  271. </li>
  272. }
  273. @if (tbList != null && tbList.Count > 0)
  274. {
  275. <li class="@(chart.tid== ChartType.图表?"act":"")">
  276. <a href="javascript:void(0);">图表</a>
  277. </li>
  278. }
  279. @if (ztList != null && ztList.Count > 0)
  280. {
  281. <li class="@(chart.tid== ChartType.专题?"act":"")">
  282. <a href="javascript:void(0);">专题</a>
  283. </li>
  284. }
  285. </ul>
  286. </div>
  287. }
  288. <div id="tab_c">
  289. @if (zsList != null && zsList.Count > 0)
  290. {
  291. <div class="@(chart.tid==ChartType.走势?"":"hide")">
  292. <ul class="submenu">
  293. @for (var i = 0; i < zsList.Count; i++)
  294. {
  295. var item = zsList[i];
  296. if (item.chartid == chart.chartid)
  297. {
  298. <li class="select">
  299. <a title="@item.name" href="@($"/{item.url}")" target="_blank">@item.name</a>
  300. </li>
  301. }
  302. else
  303. {
  304. <li>
  305. <a title="@item.name" href="@($"/{item.url}")" target="_blank">@item.name</a>
  306. </li>
  307. }
  308. }
  309. </ul>
  310. </div>
  311. }
  312. @if (gjList != null && gjList.Count > 0)
  313. {
  314. <div class="@(chart.tid==ChartType.工具?"":"hide")">
  315. <ul class="submenu">
  316. @for (var i = 0; i < gjList.Count; i++)
  317. {
  318. var item = gjList[i];
  319. if (item.chartid == chart.chartid)
  320. {
  321. <li class="select">
  322. <a title="@item.name" href="@($"/{item.url}")" target="_blank">@item.name</a>
  323. </li>
  324. }
  325. else
  326. {
  327. <li>
  328. <a title="@item.name" href="@($"/{item.url}")" target="_blank">@item.name</a>
  329. </li>
  330. }
  331. }
  332. </ul>
  333. </div>
  334. }
  335. @if (ylList != null && ylList.Count > 0)
  336. {
  337. <div class="@(chart.tid==ChartType.遗漏?"":"hide")">
  338. <ul class="submenu">
  339. @for (var i = 0; i < ylList.Count; i++)
  340. {
  341. var item = ylList[i];
  342. if (item.chartid == chart.chartid)
  343. {
  344. <li class="select">
  345. <a title="@item.name" href="@($"/{item.url}")" target="_blank">@item.name</a>
  346. </li>
  347. }
  348. else
  349. {
  350. <li>
  351. <a title="@item.name" href="@($"/{item.url}")" target="_blank">@item.name</a>
  352. </li>
  353. }
  354. }
  355. </ul>
  356. </div>
  357. }
  358. @if (tbList != null && tbList.Count > 0)
  359. {
  360. <div class="@(chart.tid==ChartType.图表?"":"hide")">
  361. <ul class="submenu">
  362. @for (var i = 0; i < tbList.Count; i++)
  363. {
  364. var item = tbList[i];
  365. if (item.chartid == chart.chartid)
  366. {
  367. <li class="select">
  368. <a title="@item.name" href="@($"/{item.url}")" target="_blank">@item.name</a>
  369. </li>
  370. }
  371. else
  372. {
  373. <li>
  374. <a title="@item.name" href="@($"/{item.url}")" target="_blank">@item.name</a>
  375. </li>
  376. }
  377. }
  378. </ul>
  379. </div>
  380. }
  381. @if (ztList != null && ztList.Count > 0)
  382. {
  383. <div class="@(chart.tid==ChartType.专题?"":"hide")">
  384. <ul class="submenu">
  385. @for (var i = 0; i < ztList.Count; i++)
  386. {
  387. var item = ztList[i];
  388. <li>
  389. <a title="@item.Name" href="@($"/zt/{item.RewriteUrl}")" target="_blank">@item.Name</a>
  390. </li>
  391. }
  392. </ul>
  393. </div>
  394. }
  395. </div>
  396. </div>
  397. </div>
  398. </div>
  399. </div>
  400. @RenderBody()
  401. <div class="footer mb10">
  402. <div class="box">
  403. @RenderPage(footerpage)
  404. </div>
  405. @Html.Action("_help", "Shared", new { cid = cz.cid })
  406. @RenderPage("~/Views/Shared/_Hot.cshtml")
  407. <div class="box">
  408. @Html.Action("_Links", "Shared")
  409. </div>
  410. </div>
  411. @{Html.RenderAction("gg", "Home", new { });}
  412. @RenderPage("~/Views/Shared/footer.cshtml")
  413. <script type="text/javascript">
  414. showNavSelect();
  415. //走势图查询
  416. trendSearch({
  417. box: "#trendSearchBox",
  418. link: ".search-link",
  419. wSelectBox: "#wSelectBox",
  420. selectBox: "#mSelectBox",
  421. searchBtn: "#btnSearch",
  422. refreshBtn: "#btnRefresh"
  423. });
  424. trendInit(); //走势图相关功能
  425. $("#chartData").children("tr").click(function () { $(this).attr("class", $(this).attr("class") == "row-status" ? "" : "row-status"); });
  426. $(window).scroll(function () { scrollTrend(); });
  427. //帮助文章显示与隐藏
  428. $("#showAll").click(function () { this.style.display = "none"; $("#showPart").css("display", "inline"); $("#showBox").attr("style", "height:auto;"); });
  429. $("#showPart").click(function () { this.style.display = "none"; $("#showAll").css("display", "inline"); $("#showBox").attr("style", ""); });
  430. /*导航鼠标点击切换事件处理*/
  431. (function (tabMenu, tabContent) {
  432. var menu = $(tabMenu).children("ul").eq(0).children("li");
  433. if (1 >= menu.length) { return; }
  434. var list = $(tabContent).children("div");
  435. menu.each(function (i) {
  436. $(this).click(function () {
  437. menu.attr("class", "");
  438. list.attr("class", "hide");
  439. menu.eq(i).attr("class", "act");
  440. list.eq(i).attr("class", "");
  441. });
  442. });
  443. })("#tab_t", "#tab_c");
  444. </script>
  445. @RenderSection("script", required: false)
  446. <script type="text/javascript">
  447. /*导航鼠标点击切换事件处理*/
  448. (function (tabMenu, tabContent) {
  449. var menu = $(tabMenu).children("ul").eq(0).children("li");
  450. if (1 >= menu.length) { return; }
  451. var list = $(tabContent).children("div");
  452. menu.each(function (i) {
  453. $(this).click(function () {
  454. menu.attr("class", "");
  455. list.attr("class", "hide");
  456. menu.eq(i).attr("class", "act");
  457. list.eq(i).attr("class", "");
  458. });
  459. });
  460. })("#tab_t", "#tab_c");
  461. $('.tab_div .tab-item').click(function () {
  462. var index = $(this).index();
  463. $('.tab_div .tab-item').removeClass('active');
  464. $(this).addClass('active');
  465. $('.tab-content-box .tab-content-item').removeClass('active');
  466. $('.tab-content-box .tab-content-item').eq(index).addClass('active');
  467. });
  468. </script>
  469. </body>
  470. </html>