123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173 |
- @using Models
- @using Common
- @model List<LotteryData>
- @if (Model != null && Model.Count > 0)
- {
- List<LotteryData> other = Model.Where(d => d.LotteryType == "GP_PK10_BeiJing" || d.LotteryType == "GP_KL8_BeiJing").ToList();
- List<LotteryData> 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)
- {
- <div class="typecell-list-box col-xs-12">
- <div class="typecell-list" style="">
- <input type="hidden" class="lotCode" value="@item.LotteryType"> <input type="hidden" class="time" value="@item.NextOpenTime">
- <div class="typecell-header row">
- <div class="typecell-icon-wrapper">
- @*<div class="typecell-icon-wrapper col-xs-2 col-md-3">*@
- <a href="/kjls/gpc-@(item.LotteryText).html" target="_blank"><span class="iconfont icon-@item.LotteryType"></span></a>
- </div>
- <div class="typecell-hright-wrapper">
- @*<div class="typecell-hright-wrapper col-xs-10 col-md-9">*@
- <p class="hright-title">
- <a style="margin-right:15px;display: inline-block;" href="/kjls/gpc-@(item.LotteryText).html" target="_blank">
- <span class="lotName">@item.LotteryName</span>
- </a>第
- <span class="qishu">@item.Term</span> 期
- </p>
- <div class="hright-kjsm">开奖时间:<span class="KJRate">每@(item.Interval)分钟开奖</span></div>@*@(StringHelper.getKjDesc(item.KJTime))@(item.StartHour):@(item.StartMinute.PadRight(2, '0'))*@
- <div class="hright-kjsm">距下期开奖仅剩: <span class="timebox">@item.NextOpenTime</span></div>
- </div>
- </div>
- <div class="typecell-ball">
- @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 && item.LotteryType == "GP_KLPK3_ShanDong")
- {
- foreach (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>
- }
- }
- </div>
- <div class="typecell-button">
- <div class="btn-list">
- <a href="/kjls/gpc-@(item.LotteryText).html" target="_blank">历史开奖</a>
- </div>
- @*<div class="btn-list">
- <a href="#" target="_blank">@(item.LotteryName)走势图</a>
- </div>*@
- <div class="btn-list">
- <a href="/wfgz/@(item.MenuName)-@(item.LotteryText).html" target="_blank">玩法规则</a>
- </div>
- @{
- 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;
- }
- }
- <div class="btn-list">
- <a href=@("http://www.55128.cn"+zsurl) target="_blank">@zsname</a>
- </div>
- </div>
- </div>
- </div>
- }
- }
- if (normal != null && normal.Count > 0)
- {
- foreach (LotteryData item in normal)
- {
- <div class="typecell-list-box col-xs-12 col-md-6">
- <div class="typecell-list" style="">
- <input type="hidden" class="lotCode" value="@item.LotteryType"> <input type="hidden" class="time" value="@item.NextOpenTime">
- <div class="typecell-header row">
- <div class="typecell-icon-wrapper">
- @*<div class="typecell-icon-wrapper col-xs-2 col-md-3">*@
- <a href="/kjls/gpc-@(item.LotteryText).html" target="_blank"><span class="iconfont icon-@item.LotteryType"></span></a>
- </div>
- <div class="typecell-hright-wrapper">
- @*<div class="typecell-hright-wrapper col-xs-10 col-md-9">*@
- <p class="hright-title">
- <a style="margin-right:15px;display: inline-block;" href="/kjls/gpc-@(item.LotteryText).html" target="_blank">
- <span class="lotName">@item.LotteryName</span>
- </a>第
- <span class="qishu">@item.Term</span> 期
- </p>
- <div class="hright-kjsm">开奖时间:<span class="KJRate">每@(item.Interval)分钟开奖</span></div>@*@(StringHelper.getKjDesc(item.KJTime))@(item.StartHour):@(item.StartMinute.PadRight(2, '0'))*@
- <div class="hright-kjsm">距下期开奖仅剩: <span class="timebox">@item.NextOpenTime</span></div>
- </div>
- </div>
- <div class="typecell-ball">
- @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 && item.LotteryType == "GP_KLPK3_ShanDong")
- {
- foreach (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>
- }
- }
- </div>
- <div class="typecell-button">
- <div class="btn-list">
- <a href="/kjls/gpc-@(item.LotteryText).html" target="_blank">历史开奖</a>
- </div>
- @*<div class="btn-list">
- <a href="#" target="_blank">@(item.LotteryName)走势图</a>
- </div>*@
- <div class="btn-list">
- <a href="/wfgz/@(item.MenuName)-@(item.LotteryText).html" target="_blank">玩法规则</a>
- </div>
- @{
- 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;
- }
- }
- <div class="btn-list">
- <a href=@("http://www.55128.cn"+zsurl) target="_blank">@zsname</a>
- </div>
- </div>
- </div>
- </div>
- }
- }
- }
|