_qgc.cshtml 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. <!--全国彩共计7个彩种-->
  2. @using KJH55128_Rec.ViewModels
  3. @model List<LotteryViewModel>
  4. <table class="table table-bordered table-striped">
  5. <thead>
  6. <tr>
  7. <th scope="col" class="table-headtxt">开奖时间</th>
  8. <th scope="col" class="table-headtxt">期数</th>
  9. <th scope="col" class="table-headtxt">号码</th>
  10. <!--试机号 仅福彩3d||排列三--->
  11. @if (ViewBag.lottery == "QG_FC3D" || ViewBag.lottery == "QG_TCP3")
  12. {
  13. <th scope="col" class="table-headtxt">试机号</th>
  14. }
  15. <!--开机号 福彩3d||双色球--->
  16. @if (ViewBag.lottery == "QG_FC3D" || ViewBag.lottery == "QG_FCSSQ")
  17. {
  18. <th scope="col" class="table-headtxt">开机号</th>
  19. }
  20. <!--和值特征需要计算合并几列-->
  21. <th colspan="2" scope="col" class="table-headtxt">和值特征</th>
  22. <th scope="col" class="table-headtxt">奇偶比</th>
  23. <!--大小比 七乐彩||双色球||福彩3D--->
  24. @if (ViewBag.lottery == "QG_FC3D" || ViewBag.lottery == "QG_FCSSQ" || ViewBag.lottery == "QG_FCQLC")
  25. {
  26. <th scope="col" class="table-headtxt">大小比</th>
  27. }
  28. <th scope="col" class="table-headtxt">奇偶形态</th>
  29. <th scope="col" class="table-headtxt">其他</th>
  30. @*<th scope="col" class="table-headtxt">走势图</th>*@
  31. </tr>
  32. </thead>
  33. <tbody>
  34. @if (Model != null && Model.Count > 0)
  35. {
  36. foreach (LotteryViewModel item in Model)
  37. {
  38. <tr>
  39. <td class="td-number">@string.Format("{0:yyyy-MM-dd}", Convert.ToDateTime(item.OpenTime))</td>
  40. <td class="td-number">@item.Term</td>
  41. @*开奖号码处理*@
  42. <td class="td-number">
  43. @if (item.RedBall != null && item.RedBall.Length > 0)
  44. {
  45. foreach (string ball in item.RedBall)
  46. {
  47. if (ball != "-1")
  48. {
  49. <span class="ball-list red">@ball</span>
  50. }
  51. else
  52. {
  53. <span>-</span>
  54. break;
  55. }
  56. }
  57. }
  58. @if (item.BlueBall != null && item.BlueBall.Length > 0)
  59. {
  60. foreach (string ball in item.BlueBall)
  61. {
  62. if (ball != "-1")
  63. {
  64. <span class="ball-list blue">@ball</span>
  65. }
  66. else
  67. {
  68. <span>-</span>
  69. break;
  70. }
  71. }
  72. }
  73. </td>
  74. <!--试机号 仅福彩3d||排列三 处理-->
  75. @if (ViewBag.lottery == "QG_FC3D" || ViewBag.lottery == "QG_TCP3")
  76. {
  77. <td class="td-number" style="color:#666;">@item.ShiJiHao</td>
  78. }
  79. <!--开机号 福彩3d||双色球 处理 -->
  80. @if (ViewBag.lottery == "QG_FC3D" || ViewBag.lottery == "QG_FCSSQ")
  81. {
  82. <th scope="col" class="table-headtxt" style="color:#666;">@item.KaiJiHao</th>
  83. }
  84. @*和值特征 处理*@
  85. <td class="td-number">@item.hezhi</td>
  86. @(int.Parse(item.hezhi) % 2 == 0 ? Html.Raw("<td class='td-number'>双</td>") : Html.Raw("<td class='td-number'>单</td>"))
  87. <td class="td-number">@item.jio</td>
  88. @*大小比 七乐彩||双色球||福彩3D 处理*@
  89. @if (ViewBag.lottery == "QG_FC3D" || ViewBag.lottery == "QG_FCSSQ" || ViewBag.lottery == "QG_FCQLC")
  90. {
  91. <td class="td-number">@item.daxiao</td>
  92. }
  93. <td class="td-number">@item.jioxt</td>
  94. <td class="td-number">
  95. <a href="/kjxq/qgc-@(item.LotteryText)-@(item.Term).html" target="_blank" style="font-weight:bold;">详情</a>
  96. <a href="@(string.IsNullOrWhiteSpace(ViewBag.zsSrc)?"http://www.55128.cn/zs/":"http://www.55128.cn"+ViewBag.zsSrc)" target="_blank" style="font-weight:bold; color:blue">走势图</a>
  97. </td>
  98. @*<td class="td-number"><a href="@(string.IsNullOrWhiteSpace(ViewBag.zsSrc)?"http://www.55128.cn/zs/":"http://www.55128.cn"+ViewBag.zsSrc)" target="_blank" style="font-weight:bold;">走势图</a></td>*@
  99. </tr>
  100. }
  101. }
  102. </tbody>
  103. </table>