123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105 |
- <!--全国彩共计7个彩种-->
- @using KJH55128_Rec.ViewModels
- @model List<LotteryViewModel>
- <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>
- <!--试机号 仅福彩3d||排列三--->
- @if (ViewBag.lottery == "QG_FC3D" || ViewBag.lottery == "QG_TCP3")
- {
- <th scope="col" class="table-headtxt">试机号</th>
- }
- <!--开机号 福彩3d||双色球--->
- @if (ViewBag.lottery == "QG_FC3D" || ViewBag.lottery == "QG_FCSSQ")
- {
- <th scope="col" class="table-headtxt">开机号</th>
- }
- <!--和值特征需要计算合并几列-->
- <th colspan="2" scope="col" class="table-headtxt">和值特征</th>
- <th scope="col" class="table-headtxt">奇偶比</th>
- <!--大小比 七乐彩||双色球||福彩3D--->
- @if (ViewBag.lottery == "QG_FC3D" || ViewBag.lottery == "QG_FCSSQ" || ViewBag.lottery == "QG_FCQLC")
- {
- <th scope="col" class="table-headtxt">大小比</th>
- }
- <th scope="col" class="table-headtxt">奇偶形态</th>
- <th scope="col" class="table-headtxt">其他</th>
- @*<th scope="col" class="table-headtxt">走势图</th>*@
- </tr>
- </thead>
- <tbody>
- @if (Model != null && Model.Count > 0)
- {
- foreach (LotteryViewModel item in Model)
- {
- <tr>
- <td class="td-number">@string.Format("{0:yyyy-MM-dd}", Convert.ToDateTime(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)
- {
- if (ball != "-1")
- {
- <span class="ball-list red">@ball</span>
- }
- else
- {
- <span>-</span>
- break;
- }
- }
- }
- @if (item.BlueBall != null && item.BlueBall.Length > 0)
- {
- foreach (string ball in item.BlueBall)
- {
- if (ball != "-1")
- {
- <span class="ball-list blue">@ball</span>
- }
- else
- {
- <span>-</span>
- break;
- }
- }
- }
- </td>
- <!--试机号 仅福彩3d||排列三 处理-->
- @if (ViewBag.lottery == "QG_FC3D" || ViewBag.lottery == "QG_TCP3")
- {
- <td class="td-number" style="color:#666;">@item.ShiJiHao</td>
- }
- <!--开机号 福彩3d||双色球 处理 -->
- @if (ViewBag.lottery == "QG_FC3D" || ViewBag.lottery == "QG_FCSSQ")
- {
- <th scope="col" class="table-headtxt" style="color:#666;">@item.KaiJiHao</th>
- }
- @*和值特征 处理*@
- <td class="td-number">@item.hezhi</td>
- @(int.Parse(item.hezhi) % 2 == 0 ? Html.Raw("<td class='td-number'>双</td>") : Html.Raw("<td class='td-number'>单</td>"))
- <td class="td-number">@item.jio</td>
- @*大小比 七乐彩||双色球||福彩3D 处理*@
- @if (ViewBag.lottery == "QG_FC3D" || ViewBag.lottery == "QG_FCSSQ" || ViewBag.lottery == "QG_FCQLC")
- {
- <td class="td-number">@item.daxiao</td>
- }
- <td class="td-number">@item.jioxt</td>
- <td class="td-number">
- <a href="/kjxq/qgc-@(item.LotteryText)-@(item.Term).html" target="_blank" style="font-weight:bold;">详情</a>
- <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>
- </td>
- @*<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>*@
- </tr>
- }
- }
- </tbody>
- </table>
|