1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768 |
- @using Models
- @model List<LotteryData>
- @{ string[] items = null;}
- @if (Model != null && Model.Count > 0)
- {
- foreach (LotteryData item in Model)
- {
- <div class="ads-recomkjh">
- <span class="ads-name">@item.LotteryName</span>
- <div class="ads-kjh">
- <a href="/@(ViewBag.type)/@(item.LotteryText).html" target="_blank">
- @if (ViewBag.type == "kjh")
- {
- items = item.KaiJiHao.Split(',');
- }
- else
- {
- items = item.ShiJiHao.Split(',');
- }
- @if (items != null && items.Length > 0)
- {
- string ball = "";
- if (item.LotteryText == "ssq")
- {
- for (int i = 0; i < items.Length; i++)
- {
- ball = items[i];
- if (i == items.Length - 1)
- {
- <span class="ball-list blue" style="width:20px;height:20px;line-height:20px;font-size:1.2rem;margin: 0;">@ball</span>
- }
- else
- {
- <span class="ball-list red" style="width:20px;height:20px;line-height:20px;font-size:1.2rem;margin: 0;">@ball</span>
- }
- }
- }
- if (item.LotteryText == "dlt")
- {
- for (int i = 0; i < items.Length; i++)
- {
- ball = items[i];
- if (i == items.Length - 1 || i == items.Length - 2)
- {
- <span class="ball-list blue" style="width:20px;height:20px;line-height:20px;font-size:1.2rem;margin: 0;">@ball</span>
- }
- else
- {
- <span class="ball-list red" style="width:20px;height:20px;line-height:20px;font-size:1.2rem;margin: 0;">@ball</span>
- }
- }
- }
- if (item.LotteryText == "fc3d" || item.LotteryText == "pl3")
- {
- for (int i = 0; i < items.Length; i++)
- {
- ball = items[i];
- <span class="ball-list red" style="width:20px;height:20px;line-height:20px;font-size:1.2rem;margin: 0;">@ball</span>
- }
- }
- }
- </a>
- </div>
- <a href="/kjxq/qgc-@(item.LotteryText).html" target="_blank" class="ads-kjh-more"><i class="iconfont icon-right"></i></a>
- </div>
- }
- }
|