@using Models
@using Common
@model LotteryData
@{
string lottery = "";
string nav = "";
string lotterytype = "";
string wf = "";
if (ViewBag.area == "qgc")//全国彩
{
lottery = "_qgc";
nav = "lotterynav";
lotterytype = "QGC";
wf = "qgc";
}
if (ViewBag.area == "dfc")//地方彩
{
lottery = "_dfc";
nav = "lotterynav";
lotterytype = "DFC";
wf = "dfc";
}
if (ViewBag.area == "gpc")//高频彩
{
nav = "gpcnav";
if (Model.LotteryType.IndexOf("11x5") > 0) //11x5
{
lottery = "_gpc11x5";
wf = "11x5";
}
else if (Model.LotteryType.IndexOf("K3") > 0 && Model.LotteryType != "GP_KLPK3_ShanDong")//k3
{
lottery = "_gpck3";
wf = "k3";
}
else if (Model.LotteryType.IndexOf("KL12") > 0)//kl12
{
lottery = "_gpckl12";
wf = "kl12";
}
else if (Model.LotteryType.IndexOf("KL10F") > 0 || Model.LotteryType == "GP_QYH_ShanDong") //kl10f
{
lottery = "_gpcklsf";
wf = "klsf";
}
else if (Model.LotteryType.IndexOf("SSC") > 0 || Model.LotteryType == "GP_SSL_ShangHai") //ssc
{
lottery = "_gpcssc";
wf = "ssc";
}
else //qt
{
lottery = "_gpcqt";
wf = "qtc";
}
}
}
@if (ViewBag.tdk != null)
{
@Html.Action(nav, "Shared", new { type = lotterytype, gpcnav = wf })
@Html.Action("ads", "Shared", new { className = "lg-margin" })
@if(Model != null)
{
if (Model.LotteryText == "hk6" && ViewBag.newBall != null)
{//香港彩
@Model.LotteryName 第 @Model.Term 期开奖号码
@{ int i = 1;
}
@foreach(var balls in ViewBag.newBall)
{
@balls.OpenCode
if (i == 6)
{
+
}
i++;
}
@{ i = 1;}
@foreach(var balls in ViewBag.newBall)
{
@(balls.LotteryAttrItem.ShengXiao)
if (i == 6)
{
}
i++;
}
@{ i = 1;}
@foreach(var balls in ViewBag.newBall)
{
@(balls.LotteryAttrItem.WuXing)
if (i == 6)
{
}
i++;
}
距 @(Convert.ToInt32(string.IsNullOrWhiteSpace(Model.Term) ? "0" : Model.Term) + 1) 期开奖仅有
开奖中...
@{
TimeSpan next = Convert.ToDateTime(Model.NextOpenTime) - DateTime.Now;
}
@next.Days 天
@next.Hours 时
@next.Minutes 分
@next.Seconds 秒
@{
string kjtime = "";
if (ViewBag.area == "qgc" || ViewBag.area == "dfc")
{
kjtime = StringHelper.getKjDesc(Model.KJTime) + Model.StartHour.PadLeft(2, '0') + ":" + Model.StartMinute.PadLeft(2, '0') + "开奖";
}
else
{
kjtime = "每" + Model.Interval + "分钟开奖";
}
}
开奖时间:@Html.Raw(kjtime)
@*
*@
}
else
{
@Model.LotteryName 第 @Model.Term 期开奖号码
@if(Model.RedBall != null && Model.RedBall.Length > 0)
{
foreach (string ball in Model.RedBall)
{
@ball
}
}
@if(Model.BlueBall != null && Model.BlueBall.Length > 0)
{
foreach (string ball in Model.BlueBall)
{
@ball
}
}
@if(Model.Details != null && Model.Details.Count > 0 && Model.LotteryType == "GP_KLPK3_ShanDong")
{
foreach (LotteryDetail ball in Model.Details)
{
@ball.Value
}
}
距 @(Convert.ToInt32(string.IsNullOrWhiteSpace(Model.Term) ? "0" : Model.Term) + 1) 期开奖仅有
开奖中...
@{
TimeSpan next = Convert.ToDateTime(Model.NextOpenTime) - DateTime.Now;
}
@next.Days 天
@next.Hours 时
@next.Minutes 分
@next.Seconds 秒
@{
string kjtime = "";
if (ViewBag.area == "qgc" || ViewBag.area == "dfc")
{
kjtime = StringHelper.getKjDesc(Model.KJTime) + Model.StartHour.PadLeft(2, '0') + ":" + Model.StartMinute.PadLeft(2, '0') + "开奖";
}
else
{
kjtime = "每" + Model.Interval + "分钟开奖";
}
}
开奖时间:@Html.Raw(kjtime)
@*
*@
}
}
@Html.Action("recomnews", "Shared", new { code = Model.LotteryText, type = ViewBag.area })
@Html.Action("_getTable", "Template", new
{
tablename = lottery,
lotterytype = Model.LotteryType,
day = ViewBag.day,
num = ViewBag.num,
date = ViewBag.date,
year = ViewBag.year,
qs = ViewBag.qs
})
@if (Model.LotteryText == "hk6" && ViewBag.newBall != null)
{
属性参照表
波色生肖五行
| 波色对照表 |
| 红波 |
蓝波 |
绿波 |
@foreach (var item in ViewBag.bs)
{
|
@foreach (int item1 in item.Value as List)
{
@item1
}
|
}
| 生肖对照表 |
| 鼠 |
牛 |
虎 |
兔 |
龙 |
蛇 |
马 |
羊 |
猴 |
鸡 |
狗 |
猪 |
@foreach (var item in ViewBag.sx)
{
|
@foreach (var item1 in item.Value)
{
@item1
}
|
}
| 五行对照表 |
| 金 |
木 |
水 |
火 |
土 |
@foreach (var item in ViewBag.wx)
{
|
@foreach (var item1 in item.Value)
{
@item1
}
|
}
}
@Html.Action("footer", "Shared")
@**@
@**@