BtxCMS.Net 项目
项目:
广告位:
<script type="text/javascript" src="http://yg1.jmcdn.cn/file/script/A538.x?v1539158091"></script>
if((Date.parse(new Date())/1000)>=1539843129 && (Date.parse(new Date())/1000)<=1548137480){ document.write('<a href="http://www.chinarebon.com/join.aspx" rel="nofollow" target="_blank"><img pos="A1-1" src="http://yg1.jmcdn.cn/skin/chinayigui.com/image/lazy.gif" class="lazy" original="http://yg.jmcdn.cn/201810/18/142531ps5bc8275b5c4342.816361278790.gif" width="1200" height="60" alt=""/></a>'); }
全站
// 打包 JS <script src="@Url.Domain_Scripts("Base-20181031.js","~/static/skin/base/js/config.js","~/static/skin/base/js/common.js","~/static/skin/base/js/GoMobile.js")"></script> // 打包 CSS <link rel="stylesheet" href="@Url.Domain_Styles("index-20181031.css","~/static/skin/base/css/global.css", "~/static/skin/base/css/index.css")" /> @(Html.Partial("~/Areas/Root/Views/Activity/_Menu.cshtml")) @(Html.Partial("~/Views/Shared/Common/_Partial/_Partial_Top.cshtml")) @(Html.Partial("~/Views/Shared/Common/_Partial/_Partial_Footer.cshtml")) @(Html.Action("_Partial_Detail_Right", "Case")) @(Html.Partial("~/Areas/Case/Views/Case/Detail/_Partial/_Partial_Detail_Right.cshtml")) //头部新闻 @(Html.RenderPartial("~/AreasCity/Shop/Views/Shop/Default/Index/Partial/_Partial_Index_NewTop.cshtml")) @{ if (true) { // 右侧 Html.RenderAction("_Partial_New_Right", "Module", new { area = "" }); } }
基础
ViewBag.Title = ConfigHelper.GetConfigString("Title"); ViewBag.Keywords = ConfigHelper.GetConfigString("Keywords"); ViewBag.Description = ConfigHelper.GetConfigString("Description"); ViewBag.Version = ConfigHelper.GetConfigString("Version"); ViewBag.WebDomain = ConfigHelper.GetConfigString("WebDomain"); ViewBag.WebName = ConfigHelper.GetConfigString("WebName"); ViewBag.WebTel400 = ConfigHelper.GetConfigString("WebTel400"); ViewBag.WebCode = ConfigHelper.GetConfigString("WebCode"); ViewBag.Title = "WEB " + ViewBag.Title; ViewBag.Keywords = "WEB" + ViewBag.Keywords; ViewBag.Description = "WEB " + ViewBag.Description; ViewBag.WebDomain=”bzw315.com”; ViewBag.WebName=”WEB”; @(ViewBag.WebName) ViewBag.WebTel400=”400-9900-000”; ViewBag.WebCode=”闽ICP备180085号”; @(Url.Domain_Content("/activity/sheji.html")) @(Url.Domain_Content("/activity/baojia.html")) @(Url.Domain_Content("/activity/baozhang.html")) @(Url.Route_Url("W.Design.Defaults",new { action="case"})) @(Url.Domain_Imgs(_Item["F_CompanyLogo"].DefaultIsNullOrEmpty("")))
@{
if (true)
{
// 内页 右侧
Html.RenderAction("_Partial_New_Right", "Module", new { area = "" });
}
}
城市
// 区域(省) ViewBag.Area_List_By_Province // 区域(市) ViewBag.Area_List_By_City // 区域(区) ViewBag.Area_List_By_Area @if (true) { // 省份 var _Area_List_By_Province = ViewBag.Area_List_By_Province as List<BtxCMS.Core.Entities.Connection.System.T_System_Area>; if (_Area_List_By_Province != null && _Area_List_By_Province.Count > 0) { for (var i = 0; i < _Area_List_By_Province.Count; i++) { var _Item = _Area_List_By_Province[i]; <text> <a href="#" title="@(_Item.F_Title.Replace("省",""))">@(_Item.F_Title.Replace("省", ""))</a> </text> } } } // 当前城市 var _City_Model = ViewBag.City_Model as BtxCMS.UIFramework.Model.CityModel; @(_City_Model.CityName) // 城市列表(开通) var _City_List = ViewBag.City_List as List<BtxCMS.Core.Entities.Connection.System.T_System_Area>; @if (true) { // A-Z 排列 for (int i = 'A'; i <= 'Z'; i++) { var _City_List = from t in City_List where t.F_Initial == Convert.ToChar(i).ToString() select t; foreach (var _Item in _City_List) { <text><a id="@(Convert.ToChar(i).ToString())" target="_blank" title="@(_Item.F_Title.Replace("市",""))网" href="@(Url.Domain_Url("WWW",string.Format("/{0}/",_Item.F_CityDomain)))">@(_Item.F_Title)</a></text> } } }
分页
/* 分页 */ /* 分页 */ .pagination { margin: 30px 0; text-align: center; clear: both; } .pagination .active { background: #db214c; border: 1px solid #eee; color: #fff; } .pagination a { display: inline-block; height: 30px; line-height: 30px; margin: 0 2px; padding: 3px 12px; font-size: 14px; background: #fff; border: 1px solid #eee; *display: inline; zoom: 1; } .pagination a:hover { text-decoration: none; color: #fff; background: #db214c; } .pagination .pages_inp, .pagination .pages_btn { height: 28px; line-height: 28px; } .pagination .pages_inp { width: 30px; } .pagination .pages_btn { width: 40px; margin: 0; padding: 0; text-indent: 0; } .pagination cite, .pagebox cite { display: none; } .pagination .total-page span { margin-left: 10px; } <!-- 页码 --> @{ if (true) { /* 分页 */ var _ListPage = ViewBag.Info_ListPage as BtxCMS.Core.Base.BaseListPage<Dictionary<string, object>>; if (_ListPage != null && _ListPage.ListPage != null && _ListPage.ListPage.Count > 0) { @(Html.GetPager(_ListPage.PagerInfoModel, Url.Route_Url("W.Info.ListPage", new { Page = "{Page}" }), 1, "yg-page")) } } }
资讯
资讯 列表 前端
<!--列表开始--> <div class="list-content"> @{ if (true) { /* 企业 列表 */ var _ListPage = ViewBag.AboutInfo as List<Dictionary<string, object>>; if (_ListPage != null && _ListPage != null && _ListPage.Count > 0) { for (var i = 0; i < _ListPage.Count; i++) { var _Item = _ListPage[i]; var _ToUrl = Url.Domain_RouteUrl("W.Info.Detail", new { Id = _Item["Id"] }); <text> <!--列表item--> <div class="list-content-item"> <!--代理标题--> <a class="title" href="/buy/143981.html" target="_blank"><i class="theme-tag-ico">寻找合作</i><span>@(_Item["F_InfoAddress"])</span>的<span>@(_Item["F_InfoName"])</span>想要代理<span>@(_Item["F_Title"])</span><time>@(_Item["F_CreateTime"].DefaultIsNullOrEmpty(DateTime.Now).ToString("yyyy-MM-dd"))</time></a> <!--代理信息简介--> <div class="agent-list-info"> <div class="agent-info-left"> <div class="agent-info-item"><span>投资金额:</span>@(_Item["F_InfoMoney"])</div> <div class="agent-info-item"><span>代理品类:</span>@(_Item["F_InfoClass"])</div> </div> <div class="agent-info-right"> <div class="agent-info-item"><span>开店地点:</span>@(_Item["F_InfoAddress"])</div> <div class="agent-info-item"><span>代理档次:</span>@(_Item["F_InfoLevel"])</div> </div> </div> <!--查看详情-->
<a class="detail-link" href="@(_ToUrl)" target="_blank">查看详情</a> </div> </text> } } } else { <text> <div><center class="no-content">暂无信息!</center></div> </text> } } </div>
资讯 详细 后端
#region Detail 资讯 详细 /// <summary> /// 资讯首页 /// </summary> /// <returns></returns> [OutputCache(CacheProfile = "Cache_Detail")] public async Task<ActionResult> Detail(int Id) { Response.Cache.SetOmitVaryStar(true); var _New_Detail = await _New_AppService.Get_Model_Async(Id); if (_New_Detail == null || _New_Detail.F_MarkStatus != 0) { // 不存在 或 不允许显示 // 404 Response.StatusCode = 404; Response.End(); } else { // 详细 ViewBag.New_Detail = _New_Detail; // 上一页 ViewBag.New_Last = _New_AppService.Get_Model_By_Last(Id, _New_Detail.F_ClassID); // 下一页 ViewBag.New_Next = _New_AppService.Get_Model_By_Next(Id, _New_Detail.F_ClassID); //ViewBag.AboutNews = _New_AppService.Get_SP_List(_New_Detail.F_ClassID); //ViewBag.Navication = _New_Class_AppService.GetListByChildId(_New_Detail.F_ClassID); } return View(NewPath + "Detail/Detail.cshtml"); } #endregion
资讯 详细 前端
var _New_Detail = ViewBag.New_Detail as BtxCMS.Core.Entities.Connection.Base.T_New; if (_New_Detail == null) { Response.SetStatus(404); Response.End(); } @(_New_Detail.F_Title) @(_New_Detail.F_NumHits) @(_New_Detail.F_Author) @(_New_Detail.F_Descriptions) @(_New_Detail.F_AddTime.ToString("yyyy-MM-dd HH:mm:ss")) @(Html.Raw(_New_Detail.F_Contents.DefaultIsNullOrEmpty("").Replace("\\","")))
@if (true) { // 上一页 var _New_List = ViewBag.New_Last as List<BtxCMS.Core.Entities.Connection.Base.T_New>; if (_New_List != null && _New_List.Count > 0) { for (var i = 0; i < _New_List.Count; i++) { var _Item = _New_List[i]; var _Url = Url.Route_Url("W.New.Detail", new { id = _Item.Id }); <text> <dt> 阅读上文 >> <a href="@(_Url)" target="_blank" title="@(_Item.F_Title)">@(_Item.F_Title)</a> </dt> </text> } } } @if (true) { // 下一页 var _New_List = ViewBag.New_Next as List<BtxCMS.Core.Entities.Connection.Base.T_New>; if (_New_List != null && _New_List.Count > 0) { for (var i = 0; i < _New_List.Count; i++) { var _Item = _New_List[i]; var _Url = Url.Route_Url("W.New.Detail", new { id = _Item.Id }); <text> <dd> 阅读下文 >> <a href="@(_Url)" target="_blank" title="@(_Item.F_Title)">@(_Item.F_Title)</a> </dd> </text> } } }