博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
BtxCMS.Net 项目
阅读量:5322 次
发布时间:2019-06-14

本文共 7885 字,大约阅读时间需要 26 分钟。

 项目:

广告位: 
if((Date.parse(new Date())/1000)>=1539843129 && (Date.parse(new Date())/1000)<=1548137480){document.write('');}

 

全站

// 打包 JS // 打包 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
; 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];
@(_Item.F_Title.Replace("省", ""))
} }}// 当前城市var _City_Model = ViewBag.City_Model as BtxCMS.UIFramework.Model.CityModel;@(_City_Model.CityName)// 城市列表(开通)var _City_List = ViewBag.City_List as List
;@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) {
@(_Item.F_Title)
} }}

 分页

/* 分页 *//* 分页 */.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
>; 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")) } }}

 

 

 

资讯

资讯 列表  前端

@{ if (true) { /* 企业 列表 */ var _ListPage = ViewBag.AboutInfo as List
>; 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"] });
寻找合作@(_Item["F_InfoAddress"])@(_Item["F_InfoName"])想要代理@(_Item["F_Title"])
投资金额:@(_Item["F_InfoMoney"])
代理品类:@(_Item["F_InfoClass"])
开店地点:@(_Item["F_InfoAddress"])
代理档次:@(_Item["F_InfoLevel"])
                  
查看详情
} } } else {
暂无信息!
} }

 

 

资讯 详细 后端

#region Detail 资讯 详细/// /// 资讯首页/// /// 
[OutputCache(CacheProfile = "Cache_Detail")]public async Task
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
; 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 });
阅读上文 >>
@(_Item.F_Title)
} }}@if (true){ // 下一页 var _New_List = ViewBag.New_Next as List
; 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 });
阅读下文 >>
@(_Item.F_Title)
} }}

 

转载于:https://www.cnblogs.com/haiyabtx/p/9752671.html

你可能感兴趣的文章
使用GIT的失败过程
查看>>
Unity3d 协程的注意问题(新手须注意,老手须加勉)
查看>>
python爬虫学习(10) —— 专利检索DEMO
查看>>
日历 java方法实现
查看>>
Integer值判断是否相等问题
查看>>
实验中心服务器配置记录
查看>>
js数组去重
查看>>
UIView 设置背景图片
查看>>
$2018/8/15 = Day \ \ 1$杂题整理
查看>>
SpringBoot整合ActiveMQ
查看>>
[PCB设计] 2、畸形PCB板子的制作核心——AD14导入dwg格式文件的方法
查看>>
[每日电路图] 5、心率检测电路设计详解——送给想了解心率计的小白(博主推荐)...
查看>>
C#对 Dictionary进行排序 转
查看>>
51nod 1563 坐标轴上的最大团(今日gg模拟第一题) | 线段覆盖 贪心 思维题
查看>>
C#捕捉异常try catch finally throw(一)
查看>>
POJ-3683-Priest John's Busiest Day(2-sat)
查看>>
asp.net生成高质量缩略图通用函数(c#代码),支持多种生成方式
查看>>
使用R语言-操作data.frame
查看>>
文件系统管理
查看>>
[导入]古装武侠剧《神农碧血刀》全20集
查看>>