_navLotteryTable.cshtml 9.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173
  1. @using Models
  2. @using Common
  3. @model List<LotteryData>
  4. @if (Model != null && Model.Count > 0)
  5. {
  6. List<LotteryData> other = Model.Where(d => d.LotteryType == "GP_PK10_BeiJing" || d.LotteryType == "GP_KL8_BeiJing").ToList();
  7. List<LotteryData> normal = Model.Where(d => d.LotteryType != "GP_PK10_BeiJing" && d.LotteryType != "GP_KL8_BeiJing").ToList();
  8. if (other != null && other.Count > 0)
  9. {
  10. foreach (LotteryData item in other)
  11. {
  12. <div class="typecell-list-box col-xs-12">
  13. <div class="typecell-list" style="">
  14. <input type="hidden" class="lotCode" value="@item.LotteryType"> <input type="hidden" class="time" value="@item.NextOpenTime">
  15. <div class="typecell-header row">
  16. <div class="typecell-icon-wrapper">
  17. @*<div class="typecell-icon-wrapper col-xs-2 col-md-3">*@
  18. <a href="/kjls/gpc-@(item.LotteryText).html" target="_blank"><span class="iconfont icon-@item.LotteryType"></span></a>
  19. </div>
  20. <div class="typecell-hright-wrapper">
  21. @*<div class="typecell-hright-wrapper col-xs-10 col-md-9">*@
  22. <p class="hright-title">
  23. <a style="margin-right:15px;display: inline-block;" href="/kjls/gpc-@(item.LotteryText).html" target="_blank">
  24. <span class="lotName">@item.LotteryName</span>
  25. </a>第
  26. <span class="qishu">@item.Term</span>&nbsp;期
  27. </p>
  28. <div class="hright-kjsm">开奖时间:<span class="KJRate">每@(item.Interval)分钟开奖</span></div>@*@(StringHelper.getKjDesc(item.KJTime))@(item.StartHour):@(item.StartMinute.PadRight(2, '0'))*@
  29. <div class="hright-kjsm">距下期开奖仅剩: <span class="timebox">@item.NextOpenTime</span></div>
  30. </div>
  31. </div>
  32. <div class="typecell-ball">
  33. @if (item.RedBall != null && item.RedBall.Length > 0)
  34. {
  35. foreach (string ball in item.RedBall)
  36. {
  37. <span class="ball-list red">@ball</span>
  38. }
  39. }
  40. @if (item.BlueBall != null && item.BlueBall.Length > 0)
  41. {
  42. foreach (string ball in item.BlueBall)
  43. {
  44. <span class="ball-list blue">@ball</span>
  45. }
  46. }
  47. @if (item.Details != null && item.Details.Count > 0 && item.LotteryType == "GP_KLPK3_ShanDong")
  48. {
  49. foreach (LotteryDetail ball in item.Details)
  50. {
  51. <div class="pk3-list @ball.Label">
  52. <span class="iconfont icon-pk3 icon-@ball.Label"></span>
  53. <span class="ball-pk3">@ball.Value</span>
  54. </div>
  55. }
  56. }
  57. </div>
  58. <div class="typecell-button">
  59. <div class="btn-list">
  60. <a href="/kjls/gpc-@(item.LotteryText).html" target="_blank">历史开奖</a>
  61. </div>
  62. @*<div class="btn-list">
  63. <a href="#" target="_blank">@(item.LotteryName)走势图</a>
  64. </div>*@
  65. <div class="btn-list">
  66. <a href="/wfgz/@(item.MenuName)-@(item.LotteryText).html" target="_blank">玩法规则</a>
  67. </div>
  68. @{
  69. string zsname = "", zsurl = "", gjname = "", gjurl = "";
  70. if (item.Charts != null && item.Charts.Count > 0)
  71. {
  72. var zs = item.Charts.FirstOrDefault(d => d.Text.Contains("基本"));
  73. if (zs == null)
  74. {
  75. zs = item.Charts[0];
  76. }
  77. zsname = zs.Text.Replace(item.LotteryName, "");
  78. zsurl = zs.UrlStr;
  79. }
  80. }
  81. <div class="btn-list">
  82. <a href=@("http://www.55128.cn"+zsurl) target="_blank">@zsname</a>
  83. </div>
  84. </div>
  85. </div>
  86. </div>
  87. }
  88. }
  89. if (normal != null && normal.Count > 0)
  90. {
  91. foreach (LotteryData item in normal)
  92. {
  93. <div class="typecell-list-box col-xs-12 col-md-6">
  94. <div class="typecell-list" style="">
  95. <input type="hidden" class="lotCode" value="@item.LotteryType"> <input type="hidden" class="time" value="@item.NextOpenTime">
  96. <div class="typecell-header row">
  97. <div class="typecell-icon-wrapper">
  98. @*<div class="typecell-icon-wrapper col-xs-2 col-md-3">*@
  99. <a href="/kjls/gpc-@(item.LotteryText).html" target="_blank"><span class="iconfont icon-@item.LotteryType"></span></a>
  100. </div>
  101. <div class="typecell-hright-wrapper">
  102. @*<div class="typecell-hright-wrapper col-xs-10 col-md-9">*@
  103. <p class="hright-title">
  104. <a style="margin-right:15px;display: inline-block;" href="/kjls/gpc-@(item.LotteryText).html" target="_blank">
  105. <span class="lotName">@item.LotteryName</span>
  106. </a>第
  107. <span class="qishu">@item.Term</span>&nbsp;期
  108. </p>
  109. <div class="hright-kjsm">开奖时间:<span class="KJRate">每@(item.Interval)分钟开奖</span></div>@*@(StringHelper.getKjDesc(item.KJTime))@(item.StartHour):@(item.StartMinute.PadRight(2, '0'))*@
  110. <div class="hright-kjsm">距下期开奖仅剩: <span class="timebox">@item.NextOpenTime</span></div>
  111. </div>
  112. </div>
  113. <div class="typecell-ball">
  114. @if (item.RedBall != null && item.RedBall.Length > 0)
  115. {
  116. foreach (string ball in item.RedBall)
  117. {
  118. <span class="ball-list red">@ball</span>
  119. }
  120. }
  121. @if (item.BlueBall != null && item.BlueBall.Length > 0)
  122. {
  123. foreach (string ball in item.BlueBall)
  124. {
  125. <span class="ball-list blue">@ball</span>
  126. }
  127. }
  128. @if (item.Details != null && item.Details.Count > 0 && item.LotteryType == "GP_KLPK3_ShanDong")
  129. {
  130. foreach (LotteryDetail ball in item.Details)
  131. {
  132. <div class="pk3-list @ball.Label">
  133. <span class="iconfont icon-pk3 icon-@ball.Label"></span>
  134. <span class="ball-pk3">@ball.Value</span>
  135. </div>
  136. }
  137. }
  138. </div>
  139. <div class="typecell-button">
  140. <div class="btn-list">
  141. <a href="/kjls/gpc-@(item.LotteryText).html" target="_blank">历史开奖</a>
  142. </div>
  143. @*<div class="btn-list">
  144. <a href="#" target="_blank">@(item.LotteryName)走势图</a>
  145. </div>*@
  146. <div class="btn-list">
  147. <a href="/wfgz/@(item.MenuName)-@(item.LotteryText).html" target="_blank">玩法规则</a>
  148. </div>
  149. @{
  150. string zsname = "", zsurl = "", gjname = "", gjurl = "";
  151. if (item.Charts != null && item.Charts.Count > 0)
  152. {
  153. var zs = item.Charts.FirstOrDefault(d => d.Text.Contains("基本"));
  154. if (zs == null)
  155. {
  156. zs = item.Charts[0];
  157. }
  158. zsname = zs.Text.Replace(item.LotteryName, "");
  159. zsurl = zs.UrlStr;
  160. }
  161. }
  162. <div class="btn-list">
  163. <a href=@("http://www.55128.cn"+zsurl) target="_blank">@zsname</a>
  164. </div>
  165. </div>
  166. </div>
  167. </div>
  168. }
  169. }
  170. }