1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798 |
- @using CP.Model
- @using CP.Kjh.Models
- @model WFModel
- @{
- Layout = "~/Views/Shared/_Layout.cshtml";
- var routeList = RouteHelper.GetRouteList(null);
- var czTypeEnumList = OtherHelper.CzTypeEnumList.Where(p => p.Key != CzTypeEnum.高频彩.ToString());
- var data = GetWf(Model.NewTypeName);
- Page.ViewEnum = ViewEnum.WF;
- Page.NewTypeName = Model.NewTypeName;
- Page.Cid = OtherHelper.CzList.SingleOrDefault(p => p.ename == Model.NewTypeName).cid;
- }
- <link rel="stylesheet" type="text/css" href="~/Content/css/wfgz.css">
- @functions
- {
- public WF GetWf(string newName)
- {
- var czdata = OtherHelper.CzList.FirstOrDefault(p => p.ename == newName);
- var data = OtherHelper.WfList.FirstOrDefault(p => p.cid == (czdata != null ? czdata.cid : 0));
- return data == null ? new WF() : data;
- }
- }
- @helper WFHtml(List<RouteModel> list)
- {
- <ul class="lot-list-wrapper @(list.Where(p=>p.NewName==Model.NewTypeName).Count()>0?"active":"")">
- @foreach (var item in list)
- {
- var data = GetWf(item.NewName);
- var name = data.cid > 0 ? data.itemname : item.Name;
- <li class="lot-list @(data.cid>0 && Model.NewTypeName == item.NewName?"active":"")">
- <a href="/@(item.OldName)-zjgz/" title="@(name)规则">@name</a>
- </li>
- }
- </ul>
- }
- <div class="main" style="margin-top: 130px;">
- <section class="bread-nav">
- <span class="lable">当前位置:玩法规则</span>
- <span class="iconfont icon-right"></span>
- <span class="lable">玩法规则</span>
- </section>
- @Html.Partial("ads")
- <section class="mainContent row">
- <section class="main-nav">
- @foreach (var item in czTypeEnumList)
- {
- var list = routeList.Where(p => p.CzTypeEnum == item.Value).ToList();
- <section class="lot-wrapper">
- <div class="lot-title @(list.Where(p => p.NewName == Model.NewTypeName).Count() > 0 ? "active" : "")">
- @item.Name <span class="trangle"></span>
- </div>
- @WFHtml(list)
- </section>
- }
- </section>
- <section class="wfgz-wrapper" style="margin-left:160px;">
- <section class="wfgz-title">
- <span class="wfgz-lable active">玩法介绍</span>
- @if (data.cid > 0 && !string.IsNullOrWhiteSpace(data.lotterytime))
- {
- <span class="wfgz-lable">开奖时间</span>
- }
- @Html.Action("RecomUrl", "Shared", new { ename = Model.NewTypeName, typeCode = RecomUrlTypeEnum.WF })
- </section>
- <section class="wfgz-content-box">
- <section class="wfgz-content active">
- @( !string.IsNullOrWhiteSpace(data.gameplay) ? Html.Raw(data.gameplay) : Html.Raw("暂无此彩种玩法介绍"))
- </section>
- @if (!string.IsNullOrWhiteSpace(data.lotterytime))
- {
- <section class="wfgz-content">
- @Html.Raw(data.lotterytime)
- </section>
- }
- <section class="wfgz-content">
- @(!string.IsNullOrWhiteSpace(data.winning) ? Html.Raw(data.winning) : Html.Raw("暂无此彩种中奖规则"))
- </section>
- </section>
- </section>
- </section>
- </div>
|