博客
关于我
强烈建议你试试无所不能的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

你可能感兴趣的文章
MySQL------报错Access denied for user 'root'@'localhost' (using password:NO)解决方法
查看>>
车牌识别LPR(三)-- LPR系统整体结构
查看>>
log4j异常:WARN No appenders could be found for logger
查看>>
新手村之顺序与分支
查看>>
4.秋招复习简单整理之java支持多继承吗?
查看>>
BZOJ2002: [Hnoi2010]Bounce 弹飞绵羊(LCT)
查看>>
Linux分区问题
查看>>
封装的ajax
查看>>
WP8 学习 Onnavigatedto和OnnavigatedFrom的区别
查看>>
java中Comparator接口的用法
查看>>
《Effective C#》读书笔记——条目3:推荐使用is或as而不是强制转换类型<C#语言习惯>...
查看>>
开发积累—泛型工具类
查看>>
iOS项目开发实战——制作视图的缩放动画
查看>>
关于在jquery动态修改css,html中,mouseenter,mouseleave,click等方法失效的处理
查看>>
[翻译] java NIO 教程---介绍
查看>>
Java开发小技巧(一)
查看>>
第二天简书
查看>>
iptables 用法
查看>>
MySQL的多表查询(笛卡尔积原理)
查看>>
史上讲得最清楚的树状数组(至少我是这么认为的)
查看>>