@using KJH55128_Rec.ViewModels
@model  List<LotteryViewModel>
<!--高频彩时时彩共计6个彩种-->
<table class="table table-bordered  table-striped">
    <thead>
        <tr>
            <th scope="col" class="table-headtxt">开奖时间</th>
            <th scope="col" class="table-headtxt">期数</th>
            <th scope="col" class="table-headtxt">号码</th>
            @if (ViewBag.lottery != "GP_KLPK3_ShanDong")
            {
                <th scope="col" class="table-headtxt">和值</th>
                <th scope="col" class="table-headtxt">跨度</th><!--仅山东快乐扑克3无-->

                <th scope="col" class="table-headtxt">奇偶比</th><!--仅山东快乐扑克3无-->
                <th scope="col" class="table-headtxt">质合比</th><!--仅山东快乐扑克3无-->
            }
           
        </tr>
    </thead>
    <tbody>
        @if (Model != null && Model.Count > 0)
            {
                foreach (LotteryViewModel item in Model)
                {
                <tr>
                    <td class="td-number">@item.OpenTime</td>
                    <td class="td-number">@item.Term</td>
                    @*开奖号码处理*@
                    <td class="td-number">
                        @if (item.RedBall != null && item.RedBall.Length > 0)
                        {
                            foreach (string ball in item.RedBall)
                            {
                                <span class="ball-list red">@ball</span>
                            }
                        }
                        @if (item.BlueBall != null && item.BlueBall.Length > 0)
                        {
                            foreach (string ball in item.BlueBall)
                            {
                                <span class="ball-list blue">@ball</span>
                            }
                        }
                        @if (item.Details != null && item.Details.Count > 0)
                        {
                            foreach (LotteryViewModel.LotteryDetail ball in item.Details)
                            {
                                <div class="pk3-list @ball.Label">
                                    <span class="iconfont icon-pk3 icon-@ball.Label"></span>
                                    <span class="ball-pk3">@ball.Value</span>
                                </div>
                            }
                        }
                    </td>
                  
                    @if (ViewBag.lottery != "GP_KLPK3_ShanDong")
                    {
                        <td class="td-number">@item.hezhi</td>
                        <td class="td-number">@item.kuadu</td>
                        <td class="td-number">@item.jio</td>
                        <td class="td-number">@item.zihebi</td>
                    }
                </tr>
            }
        }
    </tbody>
</table>