@using Models @using Common @model List @if (Model != null && Model.Count > 0) { List other = Model.Where(d => d.LotteryType == "GP_PK10_BeiJing" || d.LotteryType == "GP_KL8_BeiJing").ToList(); List normal = Model.Where(d => d.LotteryType != "GP_PK10_BeiJing" && d.LotteryType != "GP_KL8_BeiJing").ToList(); if (other != null && other.Count > 0) { foreach (LotteryData item in other) {
@*
*@
@*
*@

@item.LotteryName @item.Term 期

开奖时间:每@(item.Interval)分钟开奖
@*@(StringHelper.getKjDesc(item.KJTime))@(item.StartHour):@(item.StartMinute.PadRight(2, '0'))*@
距下期开奖仅剩: @item.NextOpenTime
@if (item.RedBall != null && item.RedBall.Length > 0) { foreach (string ball in item.RedBall) { @ball } } @if (item.BlueBall != null && item.BlueBall.Length > 0) { foreach (string ball in item.BlueBall) { @ball } } @if (item.Details != null && item.Details.Count > 0 && item.LotteryType == "GP_KLPK3_ShanDong") { foreach (LotteryDetail ball in item.Details) {
@ball.Value
} }
@**@ @{ string zsname = "", zsurl = "", gjname = "", gjurl = ""; if (item.Charts != null && item.Charts.Count > 0) { var zs = item.Charts.FirstOrDefault(d => d.Text.Contains("基本")); if (zs == null) { zs = item.Charts[0]; } zsname = zs.Text.Replace(item.LotteryName, ""); zsurl = zs.UrlStr; } }
} } if (normal != null && normal.Count > 0) { foreach (LotteryData item in normal) {
@*
*@
@*
*@

@item.LotteryName @item.Term 期

开奖时间:每@(item.Interval)分钟开奖
@*@(StringHelper.getKjDesc(item.KJTime))@(item.StartHour):@(item.StartMinute.PadRight(2, '0'))*@
距下期开奖仅剩: @item.NextOpenTime
@if (item.RedBall != null && item.RedBall.Length > 0) { foreach (string ball in item.RedBall) { @ball } } @if (item.BlueBall != null && item.BlueBall.Length > 0) { foreach (string ball in item.BlueBall) { @ball } } @if (item.Details != null && item.Details.Count > 0 && item.LotteryType == "GP_KLPK3_ShanDong") { foreach (LotteryDetail ball in item.Details) {
@ball.Value
} }
@**@ @{ string zsname = "", zsurl = "", gjname = "", gjurl = ""; if (item.Charts != null && item.Charts.Count > 0) { var zs = item.Charts.FirstOrDefault(d => d.Text.Contains("基本")); if (zs == null) { zs = item.Charts[0]; } zsname = zs.Text.Replace(item.LotteryName, ""); zsurl = zs.UrlStr; } }
} } }