_gpcqt.cshtml 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. @using KJH55128_Rec.ViewModels
  2. @model List<LotteryViewModel>
  3. <!--高频彩时时彩共计6个彩种-->
  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. @if (ViewBag.lottery != "GP_KLPK3_ShanDong")
  11. {
  12. <th scope="col" class="table-headtxt">和值</th>
  13. <th scope="col" class="table-headtxt">跨度</th><!--仅山东快乐扑克3无-->
  14. <th scope="col" class="table-headtxt">奇偶比</th><!--仅山东快乐扑克3无-->
  15. <th scope="col" class="table-headtxt">质合比</th><!--仅山东快乐扑克3无-->
  16. }
  17. </tr>
  18. </thead>
  19. <tbody>
  20. @if (Model != null && Model.Count > 0)
  21. {
  22. foreach (LotteryViewModel item in Model)
  23. {
  24. <tr>
  25. <td class="td-number">@item.OpenTime</td>
  26. <td class="td-number">@item.Term</td>
  27. @*开奖号码处理*@
  28. <td class="td-number">
  29. @if (item.RedBall != null && item.RedBall.Length > 0)
  30. {
  31. foreach (string ball in item.RedBall)
  32. {
  33. <span class="ball-list red">@ball</span>
  34. }
  35. }
  36. @if (item.BlueBall != null && item.BlueBall.Length > 0)
  37. {
  38. foreach (string ball in item.BlueBall)
  39. {
  40. <span class="ball-list blue">@ball</span>
  41. }
  42. }
  43. @if (item.Details != null && item.Details.Count > 0)
  44. {
  45. foreach (LotteryViewModel.LotteryDetail ball in item.Details)
  46. {
  47. <div class="pk3-list @ball.Label">
  48. <span class="iconfont icon-pk3 icon-@ball.Label"></span>
  49. <span class="ball-pk3">@ball.Value</span>
  50. </div>
  51. }
  52. }
  53. </td>
  54. @if (ViewBag.lottery != "GP_KLPK3_ShanDong")
  55. {
  56. <td class="td-number">@item.hezhi</td>
  57. <td class="td-number">@item.kuadu</td>
  58. <td class="td-number">@item.jio</td>
  59. <td class="td-number">@item.zihebi</td>
  60. }
  61. </tr>
  62. }
  63. }
  64. </tbody>
  65. </table>