zssj.cshtml 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. @using CP.Model;
  2. @model zsindexlist
  3. @{
  4. Layout = "~/Views/Shared/_zslist.cshtml";
  5. Page.Title = Model.Cz.title;
  6. Page.Description = Model.Cz.descriptions;
  7. Page.Keywords = Model.Cz.keywords;
  8. var areaList = new CP.Business.AreaBLL().GetAreaList();
  9. }
  10. @{
  11. var ziXunDict = new Dictionary<string, NewManagerTypeEnum>
  12. {
  13. { "福彩3D",NewManagerTypeEnum.福彩3D资讯},
  14. { "排列三、五",NewManagerTypeEnum.排列三资讯},
  15. { "双色球",NewManagerTypeEnum.双色球资讯},
  16. { "七乐彩",NewManagerTypeEnum.七乐彩资讯},
  17. { "七星彩",NewManagerTypeEnum.七星彩资讯},
  18. { "大乐透",NewManagerTypeEnum.大乐透资讯}
  19. };
  20. }
  21. @helper CreateNews(List<CP.Model.ZiXun.newManagerModels> list, string name)
  22. {
  23. <ul>
  24. <li class="newstitle">@name</li>
  25. @foreach (var item in list)
  26. {
  27. <li><a href="https://zx.55128.cn/" target="_blank">@item.title</a><span class="time">@(item.createTime.ToString("MM-dd"))</span></li>
  28. }
  29. </ul>
  30. }
  31. @Html.Action("_dqwf", "Shared")
  32. <div class="wrap">
  33. <div class="navbar">
  34. <span>当前位置:</span><a href="/">首页</a> - 彩票缩水工具
  35. </div>
  36. </div>
  37. <div class="wrap">
  38. <div class="container">
  39. <div class="leftMain">
  40. <div class="title @Model.Cz.ename">
  41. <div class="recommend">
  42. <a href="http://zx.55128.cn/3d/3dyc_list/15.htm" target="_blank">3D预测</a>
  43. <a href="http://zx.55128.cn/3d/thzm/18.htm" target="_blank">太湖字谜</a>
  44. <a href="http://kjh.55128.cn/sdsjh.aspx" target="_blank">3D试机号</a>
  45. </div>
  46. <h1>
  47. <a style="background-image: url(/static/images/czicon/@(Model.Cz.ename).png);" href="javascript:void(0);">@Model.Cz.name</a>
  48. </h1>
  49. <!-- <h1><a href="javascript:void(0);">@Model.Cz.name</a></h1> -->
  50. </div>
  51. @if (Model.ZsList.Count != 0)
  52. {
  53. <ul>
  54. <li class="zsttitle">@(Model.Cz.name)走势图</li>
  55. @foreach (var item in Model.ZsList)
  56. {
  57. <li><a href="@Url.Action(item.action, item.controller == null ? "" : item.controller.ToString())" target="_blank">@item.name</a></li>
  58. }
  59. </ul>
  60. }
  61. @if (Model.GjList.Count != 0)
  62. {
  63. <ul>
  64. <li class="zsttitle">@(Model.Cz.name)工具</li>
  65. @foreach (var item in Model.GjList)
  66. {
  67. <li><a href="@Url.Action(item.action, item.controller == null ? "" : item.controller.ToString())" target="_blank">@item.name</a></li>
  68. }
  69. </ul>
  70. }
  71. @if (Model.YlList.Count != 0)
  72. {
  73. <ul>
  74. <li class="zsttitle">@(Model.Cz.name)遗漏</li>
  75. @foreach (var item in Model.YlList)
  76. {
  77. <li><a href="@Url.Action(item.action, item.controller == null ? "" : item.controller.ToString())" target="_blank">@item.name</a></li>
  78. }
  79. </ul>
  80. }
  81. </div>
  82. <div class="rightMain">
  83. @if (ziXunDict.ContainsKey(Model.Cz.name))
  84. {
  85. var data = new CP.Business.ZiXun.NewManager().GetNewManagerList(new CP.Model.ZiXun.Query.NewManagerTopQuery
  86. {
  87. NewsTypeList = new List<NewManagerTypeEnum> { ziXunDict[Model.Cz.name] },
  88. TopNumber = 9
  89. });
  90. @CreateNews(data, "最新" + ziXunDict[Model.Cz.name].ToString())
  91. }
  92. else
  93. {
  94. var data = new CP.Business.ZiXun.NewManager().GetNewManagerList(new CP.Model.ZiXun.Query.NewManagerTopQuery
  95. {
  96. NewsTypeList = new List<NewManagerTypeEnum> { NewManagerTypeEnum.福彩3D资讯 },
  97. TopNumber = 9
  98. });
  99. @CreateNews(data, "最新福彩3D资讯")
  100. }
  101. </div>
  102. </div>
  103. </div>