@@ -75,4 +75,4 @@ typings/ | |||||
unpackage | unpackage | ||||
Learun.Framework.Ultimate V7/LearunApp-2.2.0/config.js | Learun.Framework.Ultimate V7/LearunApp-2.2.0/config.js | ||||
/Learun.Framework.Ultimate V7/Learun.Application.Web/Resource/System/20200831 | |||||
/Learun.Framework.Ultimate V7/Learun.Application.Web/Resource/ |
@@ -339,7 +339,7 @@ var bootstrap = function ($, learun) { | |||||
}, | }, | ||||
search: function (param) { | search: function (param) { | ||||
param = param || {}; | param = param || {}; | ||||
param.SqlParameter = ' AND IsReport=1'; | |||||
//param.SqlParameter = ' AND IsReport=1'; | |||||
param.Grade = "20"; | param.Grade = "20"; | ||||
$('#gridtable').jfGridSet('reload', { queryJson: JSON.stringify(param) }); | $('#gridtable').jfGridSet('reload', { queryJson: JSON.stringify(param) }); | ||||
} | } | ||||
@@ -369,7 +369,7 @@ var bootstrap = function ($, learun) { | |||||
}, | }, | ||||
search: function (param) { | search: function (param) { | ||||
param = param || {}; | param = param || {}; | ||||
param.SqlParameter = ' AND IsReport=1'; | |||||
//param.SqlParameter = ' AND IsReport=1'; | |||||
param.Grade = "20"; | param.Grade = "20"; | ||||
$('#gridtable').jfGridSet('reload', { queryJson: JSON.stringify(param) }); | $('#gridtable').jfGridSet('reload', { queryJson: JSON.stringify(param) }); | ||||
} | } | ||||
@@ -347,7 +347,7 @@ var bootstrap = function ($, learun) { | |||||
}, | }, | ||||
search: function (param) { | search: function (param) { | ||||
param = param || {}; | param = param || {}; | ||||
param.SqlParameter = ' AND IsCheckIn IS NOT NULL AND IsSubsidize1 IS NOT NULL'; | |||||
//param.SqlParameter = ' AND IsCheckIn IS NOT NULL AND IsSubsidize1 IS NOT NULL'; | |||||
param.Grade = "20"; | param.Grade = "20"; | ||||
$('#gridtable').jfGridSet('reload', { queryJson: JSON.stringify(param) }); | $('#gridtable').jfGridSet('reload', { queryJson: JSON.stringify(param) }); | ||||
} | } | ||||
@@ -292,7 +292,7 @@ var bootstrap = function ($, learun) { | |||||
search: function (param) { | search: function (param) { | ||||
param = param || {}; | param = param || {}; | ||||
//param.SqlParameter = " AND IsPay ='true'"; | //param.SqlParameter = " AND IsPay ='true'"; | ||||
param.Grade = "20"; | |||||
//param.Grade = "20"; | |||||
$('#gridtable').jfGridSet('reload', { queryJson: JSON.stringify(param) }); | $('#gridtable').jfGridSet('reload', { queryJson: JSON.stringify(param) }); | ||||
} | } | ||||
}; | }; | ||||
@@ -347,7 +347,7 @@ var bootstrap = function ($, learun) { | |||||
}, | }, | ||||
search: function (param) { | search: function (param) { | ||||
param = param || {}; | param = param || {}; | ||||
param.SqlParameter = ' AND IsReport=1'; | |||||
//param.SqlParameter = ' AND IsReport=1'; | |||||
param.Grade = "20"; | param.Grade = "20"; | ||||
$('#gridtable').jfGridSet('reload', { queryJson: JSON.stringify(param) }); | $('#gridtable').jfGridSet('reload', { queryJson: JSON.stringify(param) }); | ||||
} | } | ||||
@@ -423,7 +423,7 @@ var bootstrap = function ($, learun) { | |||||
}, | }, | ||||
search: function (param) { | search: function (param) { | ||||
param = param || {}; | param = param || {}; | ||||
param.SqlParameter = ' AND IsReport=1'; | |||||
//param.SqlParameter = ' AND IsReport=1'; | |||||
param.Grade = "20"; | param.Grade = "20"; | ||||
$('#gridtable').jfGridSet('reload', { queryJson: JSON.stringify(param) }); | $('#gridtable').jfGridSet('reload', { queryJson: JSON.stringify(param) }); | ||||
} | } | ||||
@@ -17,7 +17,7 @@ | |||||
.lr-scroll-vertical { | .lr-scroll-vertical { | ||||
position: absolute; | position: absolute; | ||||
width: 4px; | |||||
width: 10px; | |||||
height: 100%; | height: 100%; | ||||
top: 0; | top: 0; | ||||
right: 0; | right: 0; | ||||
@@ -50,7 +50,7 @@ | |||||
.lr-scroll-horizontal { | .lr-scroll-horizontal { | ||||
position: absolute; | position: absolute; | ||||
width: 100%; | width: 100%; | ||||
height: 4px; | |||||
height: 10px; | |||||
bottom: 0; | bottom: 0; | ||||
right: 0; | right: 0; | ||||
display: none; | display: none; | ||||
@@ -1,5 +1,5 @@ | |||||
/* | /* | ||||
* 版 本 Learun-ADMS V7.0.0 数字化智慧校园(http://www.learun.cn) | |||||
* 版 本 Learun-ADMS V7.0.3 力软敏捷开发框架(http://www.learun.cn) | |||||
* Copyright (c) 2013-2018 上海力 软信息技术有限公司 | * Copyright (c) 2013-2018 上海力 软信息技术有限公司 | ||||
* 创建人:力 软-前端开发组 | * 创建人:力 软-前端开发组 | ||||
* 日 期:2018.04.19 | * 日 期:2018.04.19 | ||||
@@ -72,15 +72,17 @@ | |||||
$this.resize(function () { | $this.resize(function () { | ||||
var $this = $(this); | var $this = $(this); | ||||
var op = $this[0].op; | var op = $this[0].op; | ||||
var h = $this.height(); | |||||
var w = $this.width(); | |||||
if (h != op.h) { | |||||
op.h = h; | |||||
methods.updateY($this); | |||||
} | |||||
if (w != op.w) { | |||||
op.w = w; | |||||
methods.updateX($this); | |||||
if (op) { | |||||
var h = $this.height(); | |||||
var w = $this.width(); | |||||
if (h != op.h) { | |||||
op.h = h; | |||||
methods.updateY($this); | |||||
} | |||||
if (w != op.w) { | |||||
op.w = w; | |||||
methods.updateX($this); | |||||
} | |||||
} | } | ||||
$this = null; | $this = null; | ||||
}); | }); | ||||
@@ -88,9 +90,10 @@ | |||||
var $this = $(this); | var $this = $(this); | ||||
var $scrollWrap = $this.parent(); | var $scrollWrap = $this.parent(); | ||||
var op = $scrollWrap[0].op; | var op = $scrollWrap[0].op; | ||||
var sh = $this.innerHeight(); | |||||
var sw = $this.innerWidth(); | |||||
if (op != null && op != undefined) { | |||||
if (op) { | |||||
var sh = $this.innerHeight(); | |||||
var sw = $this.innerWidth(); | |||||
if (sh != op.sh) { | if (sh != op.sh) { | ||||
op.sh = sh; | op.sh = sh; | ||||
methods.updateY($scrollWrap); | methods.updateY($scrollWrap); | ||||
@@ -100,7 +103,6 @@ | |||||
methods.updateX($scrollWrap); | methods.updateX($scrollWrap); | ||||
} | } | ||||
} | } | ||||
$this = null; | $this = null; | ||||
$scrollWrap = null; | $scrollWrap = null; | ||||
}); | }); | ||||
@@ -108,20 +110,43 @@ | |||||
// 监听鼠标滚动 | // 监听鼠标滚动 | ||||
$this.mousewheel(function (event, delta, deltaX, deltaY) { | $this.mousewheel(function (event, delta, deltaX, deltaY) { | ||||
console.log(delta); | |||||
var $this = $(this); | var $this = $(this); | ||||
var $select = $this.find('.lr-select-focus'); | |||||
if ($select.length > 0) { | |||||
var selectId = "learun_select_option_" + $select.attr('id'); | |||||
$('#' + selectId).slideUp(150); | |||||
$select.removeClass('lr-select-focus'); | |||||
} | |||||
var _v = 4 + (Math.abs(delta) - 1) * 0.1 * event.deltaFactor; | |||||
if (_v > 16 && _v < 300) { | |||||
_v = 16; | |||||
} | |||||
else if (_v >= 300) { | |||||
_v = 20; | |||||
} | |||||
var op = $this[0].op; | var op = $this[0].op; | ||||
var d = delta * 18; | |||||
var d = delta * _v;// var d = delta * 20; | |||||
if (op.sh > op.h) { | if (op.sh > op.h) { | ||||
op.oldsy = op.sy; | op.oldsy = op.sy; | ||||
op.sy = op.sy - d; | op.sy = op.sy - d; | ||||
methods.moveY($this, true); | |||||
$this = null; | |||||
return false; | |||||
setTimeout(function () { | |||||
methods.moveY($this, true, true); | |||||
$this = null; | |||||
}); | |||||
if (op.h + op.sy < op.sh && op.sy > 0) { | |||||
return false; | |||||
} | |||||
} else if (op.sw > op.w) { | } else if (op.sw > op.w) { | ||||
op.oldsx = op.sx; | op.oldsx = op.sx; | ||||
op.sx = op.sx - d; | op.sx = op.sx - d; | ||||
methods.moveX($this, true); | |||||
$this = null; | |||||
setTimeout(function () { | |||||
methods.moveX($this, true); | |||||
$this = null; | |||||
}); | |||||
return false; | return false; | ||||
} | } | ||||
}); | }); | ||||
@@ -149,7 +174,16 @@ | |||||
top.$(document).on('mousemove', { $obj: $this }, function (e) { | top.$(document).on('mousemove', { $obj: $this }, function (e) { | ||||
var op = e.data.$obj[0].op; | var op = e.data.$obj[0].op; | ||||
if (op.isYMousedown) { | if (op.isYMousedown) { | ||||
var $select = e.data.$obj.find('.lr-select-focus'); | |||||
if ($select.length > 0) { | |||||
var selectId = "learun_select_option_" + $select.attr('id'); | |||||
$('#' + selectId).slideUp(150); | |||||
$select.removeClass('lr-select-focus'); | |||||
} | |||||
var y = e.pageY; | var y = e.pageY; | ||||
var _yd = y - op.yMousedown; | var _yd = y - op.yMousedown; | ||||
op.yMousedown = y; | op.yMousedown = y; | ||||
@@ -163,10 +197,16 @@ | |||||
op.blockY = 0; | op.blockY = 0; | ||||
} | } | ||||
methods.getY(op); | methods.getY(op); | ||||
methods.moveY(e.data.$obj); | |||||
methods.moveY(e.data.$obj, true); | |||||
} | } | ||||
else if (op.isXMousedown) { | else if (op.isXMousedown) { | ||||
var op = e.data.$obj[0].op; | |||||
var $select = e.data.$obj.find('.lr-select-focus'); | |||||
if ($select.length > 0) { | |||||
var selectId = "learun_select_option_" + $select.attr('id'); | |||||
$('#' + selectId).slideUp(150); | |||||
$select.removeClass('lr-select-focus'); | |||||
} | |||||
var x = e.pageX; | var x = e.pageX; | ||||
var _xd = x - op.xMousedown; | var _xd = x - op.xMousedown; | ||||
op.xMousedown = x; | op.xMousedown = x; | ||||
@@ -292,7 +332,7 @@ | |||||
$scroll = null; | $scroll = null; | ||||
$horizontal = null; | $horizontal = null; | ||||
}, | }, | ||||
moveY: function ($this, isMousewheel) { | |||||
moveY: function ($this, isMousewheel, isCallBack) { | |||||
var op = $this[0].op; | var op = $this[0].op; | ||||
var $scroll = $this.find('#' + op.id + '_box'); | var $scroll = $this.find('#' + op.id + '_box'); | ||||
var $vertical = $this.find('#' + op.id + '_vertical'); | var $vertical = $this.find('#' + op.id + '_vertical'); | ||||
@@ -330,7 +370,9 @@ | |||||
'top': op.blockY + 'px' | 'top': op.blockY + 'px' | ||||
}); | }); | ||||
} | } | ||||
op.callback && op.callback(op.sx, op.sy); | |||||
if (isCallBack) { | |||||
op.callback && op.callback(op.sx, op.sy); | |||||
} | |||||
$scroll = null; | $scroll = null; | ||||
$vertical = null; | $vertical = null; | ||||
}, | }, | ||||
@@ -425,10 +467,13 @@ | |||||
}); | }); | ||||
} | } | ||||
$.fn.lrscrollSet = function (name, data) { | |||||
$.fn.lrscrollSet = function (name, data, isCallBack) { | |||||
var $this = $(this); | |||||
if (!$this[0] || !$this[0].op) { | |||||
return; | |||||
} | |||||
switch (name) { | switch (name) { | ||||
case 'moveRight': | case 'moveRight': | ||||
var $this = $(this); | |||||
setTimeout(function () { | setTimeout(function () { | ||||
var op = $this[0].op; | var op = $this[0].op; | ||||
op.oldsx = op.sx; | op.oldsx = op.sx; | ||||
@@ -438,15 +483,25 @@ | |||||
}, 250); | }, 250); | ||||
break; | break; | ||||
case 'moveBottom': | case 'moveBottom': | ||||
var $this = $(this); | |||||
setTimeout(function () { | setTimeout(function () { | ||||
var op = $this[0].op; | var op = $this[0].op; | ||||
op.oldsy = op.sx; | |||||
op.oldsy = op.sy; | |||||
op.sy = op.sh - op.h; | op.sy = op.sh - op.h; | ||||
methods.moveY($this, true); | |||||
methods.moveY($this, true, isCallBack); | |||||
$this = null; | $this = null; | ||||
}, 250); | }, 250); | ||||
break; | break; | ||||
case 'moveY': | |||||
setTimeout(function () { | |||||
var op = $this[0].op; | |||||
op.oldsy = op.sy; | |||||
op.sy = data; | |||||
methods.moveY($this, true, isCallBack); | |||||
$this = null; | |||||
}); | |||||
break; | |||||
case 'moveX': | |||||
break; | |||||
} | } | ||||
} | } | ||||
@@ -0,0 +1,13 @@ | |||||
using System.Web; | |||||
using System.Web.Mvc; | |||||
namespace Learun.Application.Website | |||||
{ | |||||
public class FilterConfig | |||||
{ | |||||
public static void RegisterGlobalFilters(GlobalFilterCollection filters) | |||||
{ | |||||
filters.Add(new HandleErrorAttribute()); | |||||
} | |||||
} | |||||
} |
@@ -0,0 +1,84 @@ | |||||
using Learun.Util; | |||||
using System.Web.Mvc; | |||||
namespace Learun.Application.Website | |||||
{ | |||||
/// <summary> | |||||
/// 版 本 Learun-ADMS V7.0.3 力软敏捷开发框架 | |||||
/// Copyright (c) 2013-2018 上海力软信息技术有限公司 | |||||
/// 创建人:力软-框架开发组 | |||||
/// 日 期:2017.03.08 | |||||
/// 描 述:基础控制器 | |||||
/// </summary> | |||||
public abstract class MvcControllerBase : Controller | |||||
{ | |||||
#region 请求响应 | |||||
/// <summary> | |||||
/// 返回成功消息 | |||||
/// </summary> | |||||
/// <param name="data">数据</param> | |||||
/// <returns></returns> | |||||
protected virtual ActionResult ToJsonResult(object data) | |||||
{ | |||||
return Content(data.ToJson()); | |||||
} | |||||
/// <summary> | |||||
/// 返回成功消息 | |||||
/// </summary> | |||||
/// <param name="info">消息</param> | |||||
/// <returns></returns> | |||||
protected virtual ActionResult Success(string info) | |||||
{ | |||||
return Content(new ResParameter { code = ResponseCode.success, info = info, data = new object { } }.ToJson()); | |||||
} | |||||
/// <summary> | |||||
/// 返回成功消息 | |||||
/// </summary> | |||||
/// <param name="data">数据</param> | |||||
/// <returns></returns> | |||||
protected virtual ActionResult SuccessString(string data) | |||||
{ | |||||
return Content(new ResParameter { code = ResponseCode.success, info = "响应成功", data = data }.ToJson()); | |||||
} | |||||
/// <summary> | |||||
/// 返回成功数据 | |||||
/// </summary> | |||||
/// <param name="data">数据</param> | |||||
/// <returns></returns> | |||||
protected virtual ActionResult Success(object data) | |||||
{ | |||||
return Content(new ResParameter { code = ResponseCode.success, info = "响应成功", data = data }.ToJson()); | |||||
} | |||||
/// <summary> | |||||
/// 返回成功消息 | |||||
/// </summary> | |||||
/// <param name="info">消息</param> | |||||
/// <param name="data">数据</param> | |||||
/// <returns></returns> | |||||
protected virtual ActionResult Success(string info, object data) | |||||
{ | |||||
return Content(new ResParameter { code = ResponseCode.success, info = info, data = data }.ToJson()); | |||||
} | |||||
/// <summary> | |||||
/// 返回失败消息 | |||||
/// </summary> | |||||
/// <param name="info">消息</param> | |||||
/// <returns></returns> | |||||
protected virtual ActionResult Fail(string info) | |||||
{ | |||||
return Content(new ResParameter { code = ResponseCode.fail, info = info }.ToJson()); | |||||
} | |||||
/// <summary> | |||||
/// 返回失败消息 | |||||
/// </summary> | |||||
/// <param name="info">消息</param> | |||||
/// <param name="data">消息</param> | |||||
/// <returns></returns> | |||||
protected virtual ActionResult Fail(string info, object data) | |||||
{ | |||||
return Content(new ResParameter { code = ResponseCode.fail, info = info, data = data }.ToJson()); | |||||
} | |||||
#endregion | |||||
} | |||||
} |
@@ -0,0 +1,23 @@ | |||||
using System; | |||||
using System.Collections.Generic; | |||||
using System.Linq; | |||||
using System.Web; | |||||
using System.Web.Mvc; | |||||
using System.Web.Routing; | |||||
namespace Learun.Application.Website | |||||
{ | |||||
public class RouteConfig | |||||
{ | |||||
public static void RegisterRoutes(RouteCollection routes) | |||||
{ | |||||
routes.IgnoreRoute("{resource}.axd/{*pathInfo}"); | |||||
routes.MapRoute( | |||||
name: "Default", | |||||
url: "{controller}/{action}/{id}", | |||||
defaults: new { controller = "Home", action = "Index", id = UrlParameter.Optional } | |||||
); | |||||
} | |||||
} | |||||
} |
@@ -0,0 +1,4 @@ | |||||
/** | |||||
* @preserve HTML5 Shiv 3.7.3 | @afarkas @jdalton @jon_neal @rem | MIT/GPL2 Licensed | |||||
*/ | |||||
!function (a, b) { function c(a, b) { var c = a.createElement("p"), d = a.getElementsByTagName("head")[0] || a.documentElement; return c.innerHTML = "x<style>" + b + "</style>", d.insertBefore(c.lastChild, d.firstChild) } function d() { var a = t.elements; return "string" == typeof a ? a.split(" ") : a } function e(a, b) { var c = t.elements; "string" != typeof c && (c = c.join(" ")), "string" != typeof a && (a = a.join(" ")), t.elements = c + " " + a, j(b) } function f(a) { var b = s[a[q]]; return b || (b = {}, r++, a[q] = r, s[r] = b), b } function g(a, c, d) { if (c || (c = b), l) return c.createElement(a); d || (d = f(c)); var e; return e = d.cache[a] ? d.cache[a].cloneNode() : p.test(a) ? (d.cache[a] = d.createElem(a)).cloneNode() : d.createElem(a), !e.canHaveChildren || o.test(a) || e.tagUrn ? e : d.frag.appendChild(e) } function h(a, c) { if (a || (a = b), l) return a.createDocumentFragment(); c = c || f(a); for (var e = c.frag.cloneNode(), g = 0, h = d(), i = h.length; i > g; g++) e.createElement(h[g]); return e } function i(a, b) { b.cache || (b.cache = {}, b.createElem = a.createElement, b.createFrag = a.createDocumentFragment, b.frag = b.createFrag()), a.createElement = function (c) { return t.shivMethods ? g(c, a, b) : b.createElem(c) }, a.createDocumentFragment = Function("h,f", "return function(){var n=f.cloneNode(),c=n.createElement;h.shivMethods&&(" + d().join().replace(/[\w\-:]+/g, function (a) { return b.createElem(a), b.frag.createElement(a), 'c("' + a + '")' }) + ");return n}")(t, b.frag) } function j(a) { a || (a = b); var d = f(a); return !t.shivCSS || k || d.hasCSS || (d.hasCSS = !!c(a, "article,aside,dialog,figcaption,figure,footer,header,hgroup,main,nav,section{display:block}mark{background:#FF0;color:#000}template{display:none}")), l || i(a, d), a } var k, l, m = "3.7.3", n = a.html5 || {}, o = /^<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/i, p = /^(?:a|b|code|div|fieldset|h1|h2|h3|h4|h5|h6|i|label|li|ol|p|q|span|strong|style|table|tbody|td|th|tr|ul)$/i, q = "_html5shiv", r = 0, s = {}; !function () { try { var a = b.createElement("a"); a.innerHTML = "<xyz></xyz>", k = "hidden" in a, l = 1 == a.childNodes.length || function () { b.createElement("a"); var a = b.createDocumentFragment(); return "undefined" == typeof a.cloneNode || "undefined" == typeof a.createDocumentFragment || "undefined" == typeof a.createElement }() } catch (c) { k = !0, l = !0 } }(); var t = { elements: n.elements || "abbr article aside audio bdi canvas data datalist details dialog figcaption figure footer header hgroup main mark meter nav output picture progress section summary template time video", version: m, shivCSS: n.shivCSS !== !1, supportsUnknownElements: l, shivMethods: n.shivMethods !== !1, type: "default", shivDocument: j, createElement: g, createDocumentFragment: h, addElements: e }; a.html5 = t, j(b), "object" == typeof module && module.exports && (module.exports = t) }("undefined" != typeof window ? window : this, document); |
@@ -0,0 +1,20 @@ | |||||
/* NUGET: BEGIN LICENSE TEXT | |||||
* | |||||
* Microsoft grants you the right to use these script files for the sole | |||||
* purpose of either: (i) interacting through your browser with the Microsoft | |||||
* website or online service, subject to the applicable licensing or use | |||||
* terms; or (ii) using the files as included with a Microsoft product subject | |||||
* to that product's license terms. Microsoft reserves all other rights to the | |||||
* files not expressly granted by Microsoft, whether by implication, estoppel | |||||
* or otherwise. Insofar as a script file is dual licensed under GPL, | |||||
* Microsoft neither took the code under GPL nor distributes it thereunder but | |||||
* under the terms set out in this paragraph. All notices and licenses | |||||
* below are for informational purposes only. | |||||
* | |||||
* NUGET: END LICENSE TEXT */ | |||||
/*! matchMedia() polyfill - Test a CSS media type/query in JS. Authors & copyright (c) 2012: Scott Jehl, Paul Irish, Nicholas Zakas. Dual MIT/BSD license */ | |||||
/*! NOTE: If you're already including a window.matchMedia polyfill via Modernizr or otherwise, you don't need this part */ | |||||
window.matchMedia=window.matchMedia||(function(e,f){var c,a=e.documentElement,b=a.firstElementChild||a.firstChild,d=e.createElement("body"),g=e.createElement("div");g.id="mq-test-1";g.style.cssText="position:absolute;top:-100em";d.style.background="none";d.appendChild(g);return function(h){g.innerHTML='­<style media="'+h+'"> #mq-test-1 { width: 42px; }</style>';a.insertBefore(d,b);c=g.offsetWidth==42;a.removeChild(d);return{matches:c,media:h}}})(document); | |||||
/*! Respond.js v1.2.0: min/max-width media query polyfill. (c) Scott Jehl. MIT/GPLv2 Lic. j.mp/respondjs */ | |||||
(function(e){e.respond={};respond.update=function(){};respond.mediaQueriesSupported=e.matchMedia&&e.matchMedia("only all").matches;if(respond.mediaQueriesSupported){return}var w=e.document,s=w.documentElement,i=[],k=[],q=[],o={},h=30,f=w.getElementsByTagName("head")[0]||s,g=w.getElementsByTagName("base")[0],b=f.getElementsByTagName("link"),d=[],a=function(){var D=b,y=D.length,B=0,A,z,C,x;for(;B<y;B++){A=D[B],z=A.href,C=A.media,x=A.rel&&A.rel.toLowerCase()==="stylesheet";if(!!z&&x&&!o[z]){if(A.styleSheet&&A.styleSheet.rawCssText){m(A.styleSheet.rawCssText,z,C);o[z]=true}else{if((!/^([a-zA-Z:]*\/\/)/.test(z)&&!g)||z.replace(RegExp.$1,"").split("/")[0]===e.location.host){d.push({href:z,media:C})}}}}u()},u=function(){if(d.length){var x=d.shift();n(x.href,function(y){m(y,x.href,x.media);o[x.href]=true;u()})}},m=function(I,x,z){var G=I.match(/@media[^\{]+\{([^\{\}]*\{[^\}\{]*\})+/gi),J=G&&G.length||0,x=x.substring(0,x.lastIndexOf("/")),y=function(K){return K.replace(/(url\()['"]?([^\/\)'"][^:\)'"]+)['"]?(\))/g,"$1"+x+"$2$3")},A=!J&&z,D=0,C,E,F,B,H;if(x.length){x+="/"}if(A){J=1}for(;D<J;D++){C=0;if(A){E=z;k.push(y(I))}else{E=G[D].match(/@media *([^\{]+)\{([\S\s]+?)$/)&&RegExp.$1;k.push(RegExp.$2&&y(RegExp.$2))}B=E.split(",");H=B.length;for(;C<H;C++){F=B[C];i.push({media:F.split("(")[0].match(/(only\s+)?([a-zA-Z]+)\s?/)&&RegExp.$2||"all",rules:k.length-1,hasquery:F.indexOf("(")>-1,minw:F.match(/\(min\-width:[\s]*([\s]*[0-9\.]+)(px|em)[\s]*\)/)&&parseFloat(RegExp.$1)+(RegExp.$2||""),maxw:F.match(/\(max\-width:[\s]*([\s]*[0-9\.]+)(px|em)[\s]*\)/)&&parseFloat(RegExp.$1)+(RegExp.$2||"")})}}j()},l,r,v=function(){var z,A=w.createElement("div"),x=w.body,y=false;A.style.cssText="position:absolute;font-size:1em;width:1em";if(!x){x=y=w.createElement("body");x.style.background="none"}x.appendChild(A);s.insertBefore(x,s.firstChild);z=A.offsetWidth;if(y){s.removeChild(x)}else{x.removeChild(A)}z=p=parseFloat(z);return z},p,j=function(I){var x="clientWidth",B=s[x],H=w.compatMode==="CSS1Compat"&&B||w.body[x]||B,D={},G=b[b.length-1],z=(new Date()).getTime();if(I&&l&&z-l<h){clearTimeout(r);r=setTimeout(j,h);return}else{l=z}for(var E in i){var K=i[E],C=K.minw,J=K.maxw,A=C===null,L=J===null,y="em";if(!!C){C=parseFloat(C)*(C.indexOf(y)>-1?(p||v()):1)}if(!!J){J=parseFloat(J)*(J.indexOf(y)>-1?(p||v()):1)}if(!K.hasquery||(!A||!L)&&(A||H>=C)&&(L||H<=J)){if(!D[K.media]){D[K.media]=[]}D[K.media].push(k[K.rules])}}for(var E in q){if(q[E]&&q[E].parentNode===f){f.removeChild(q[E])}}for(var E in D){var M=w.createElement("style"),F=D[E].join("\n");M.type="text/css";M.media=E;f.insertBefore(M,G.nextSibling);if(M.styleSheet){M.styleSheet.cssText=F}else{M.appendChild(w.createTextNode(F))}q.push(M)}},n=function(x,z){var y=c();if(!y){return}y.open("GET",x,true);y.onreadystatechange=function(){if(y.readyState!=4||y.status!=200&&y.status!=304){return}z(y.responseText)};if(y.readyState==4){return}y.send(null)},c=(function(){var x=false;try{x=new XMLHttpRequest()}catch(y){x=new ActiveXObject("Microsoft.XMLHTTP")}return function(){return x}})();a();respond.update=a;function t(){j(true)}if(e.addEventListener){e.addEventListener("resize",t,false)}else{if(e.attachEvent){e.attachEvent("onresize",t)}}})(this); |
@@ -0,0 +1,19 @@ | |||||
@font-face {font-family: "iconfont"; | |||||
src: url('iconfont.eot?t=1489644057918'); /* IE9*/ | |||||
src: url('iconfont.eot?t=1489644057918#iefix') format('embedded-opentype'), /* IE6-IE8 */ | |||||
url('iconfont.woff?t=1489644057918') format('woff'), /* chrome, firefox */ | |||||
url('iconfont.ttf?t=1489644057918') format('truetype'), /* chrome, firefox, opera, Safari, Android, iOS 4.2+*/ | |||||
url('iconfont.svg?t=1489644057918#iconfont') format('svg'); /* iOS 4.1- */ | |||||
} | |||||
.iconfont { | |||||
font-family:"iconfont" !important; | |||||
font-size:16px; | |||||
font-style:normal; | |||||
-webkit-font-smoothing: antialiased; | |||||
-moz-osx-font-smoothing: grayscale; | |||||
} | |||||
.icon-logo:before { content: "\e60d"; } | |||||
@@ -0,0 +1,46 @@ | |||||
<?xml version="1.0" standalone="no"?> | |||||
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd" > | |||||
<svg xmlns="http://www.w3.org/2000/svg"> | |||||
<metadata> | |||||
Created by FontForge 20120731 at Thu Mar 16 14:00:57 2017 | |||||
By admin | |||||
</metadata> | |||||
<defs> | |||||
<font id="iconfont" horiz-adv-x="1024" > | |||||
<font-face | |||||
font-family="iconfont" | |||||
font-weight="500" | |||||
font-stretch="normal" | |||||
units-per-em="1024" | |||||
panose-1="2 0 6 3 0 0 0 0 0 0" | |||||
ascent="896" | |||||
descent="-128" | |||||
x-height="792" | |||||
bbox="44 -31 4779 792" | |||||
underline-thickness="0" | |||||
underline-position="0" | |||||
unicode-range="U+0078-E60D" | |||||
/> | |||||
<missing-glyph | |||||
/> | |||||
<glyph glyph-name=".notdef" | |||||
/> | |||||
<glyph glyph-name=".notdef" | |||||
/> | |||||
<glyph glyph-name=".null" horiz-adv-x="0" | |||||
/> | |||||
<glyph glyph-name="nonmarkingreturn" horiz-adv-x="341" | |||||
/> | |||||
<glyph glyph-name="x" unicode="x" horiz-adv-x="1001" | |||||
d="M281 543q-27 -1 -53 -1h-83q-18 0 -36.5 -6t-32.5 -18.5t-23 -32t-9 -45.5v-76h912v41q0 16 -0.5 30t-0.5 18q0 13 -5 29t-17 29.5t-31.5 22.5t-49.5 9h-133v-97h-438v97zM955 310v-52q0 -23 0.5 -52t0.5 -58t-10.5 -47.5t-26 -30t-33 -16t-31.5 -4.5q-14 -1 -29.5 -0.5 | |||||
t-29.5 0.5h-32l-45 128h-439l-44 -128h-29h-34q-20 0 -45 1q-25 0 -41 9.5t-25.5 23t-13.5 29.5t-4 30v167h911zM163 247q-12 0 -21 -8.5t-9 -21.5t9 -21.5t21 -8.5q13 0 22 8.5t9 21.5t-9 21.5t-22 8.5zM316 123q-8 -26 -14 -48q-5 -19 -10.5 -37t-7.5 -25t-3 -15t1 -14.5 | |||||
t9.5 -10.5t21.5 -4h37h67h81h80h64h36q23 0 34 12t2 38q-5 13 -9.5 30.5t-9.5 34.5q-5 19 -11 39h-368zM336 498v228q0 11 2.5 23t10 21.5t20.5 15.5t34 6h188q31 0 51.5 -14.5t20.5 -52.5v-227h-327z" /> | |||||
<glyph glyph-name="newlogo" unicode="" horiz-adv-x="4778" | |||||
d="M632 711q-84 -16 -159 -62.5t-127 -103.5t-98 -131t-72.5 -133t-48 -121.5t-27 -84.5l-8.5 -34v0h434q4 35 7 44q75 256 316 460q30 26 69 57t89.5 69.5t71.5 54.5h-25v0q-37 1 -93.5 1t-169.5 -3.5t-159 -12.5zM1040 56q83 17 158 62.5t128 105t97.5 129.5t72.5 134.5 | |||||
t47.5 120t28 86t8.5 33.5h-435q-4 -35 -6 -44q-76 -257 -316 -460q-30 -26 -70 -57t-89 -69t-71 -55h24q319 -6 423 14zM1980 145v546h-137v-614h342v68h-205zM2636 509q-43 73 -116.5 106t-152 17t-136.5 -77q-63 -67 -74.5 -164t33.5 -179q44 -79 126.5 -117t173.5 -20 | |||||
q113 23 179 119l-90 60q-55 -50 -112.5 -66.5t-102.5 5t-66 76.5l378 157q-4 10 -12 28t-14.5 31t-13.5 24zM2278 360q-6 58 27.5 104.5t90.5 61.5q38 10 82 -7.5t52 -53.5zM3277 623h-147q-1 -14 -1 -28q-39 22 -72 30.5t-78 8.5q-113 0 -191.5 -82.5t-78.5 -196.5 | |||||
q0 -113 80.5 -194.5t192.5 -81.5q42 0 71.5 9t86.5 36v-47h137v546zM2974 190q-66 0 -113 46.5t-47 112.5t47 113t113 47v0q66 0 112.5 -47t46.5 -113t-46.5 -112.5t-112.5 -46.5v0zM3666 641h101v-374q0 -59 30 -90q24 -24 70 -24q65 0 115 49q75 75 75 155l18 284h100 | |||||
l-18 -571h-100v112q-80 -109 -195 -109q-105 0 -150.5 45t-45.5 114v409v0zM3345 623v-546h137v331q0 97 139 97l21 129q-55 0 -107.5 -15t-52.5 -39v43h-137zM4727 595q-45 45 -153 45q-110 0 -197 -119l-1 102h-100l-18 -546h100l17 282q0 78 75 153q49 49 116 49 | |||||
q21 0 32.5 -5.5t25.5 -19.5q12 -13 15 -31t3 -51v-9v-368h137v403q0 64 -52 115zM4729 499q-4 40 -35.5 71.5t-71.5 35.5l-6 6q49 0 84 -35t35 -85z" /> | |||||
</font> | |||||
</defs></svg> |
@@ -0,0 +1,2 @@ | |||||
/*! layPage-v1.3.0 分页组件 License MIT http://laypage.layui.com/ By 贤心 */ | |||||
;!function(){"use strict";function a(d){var e="laypagecss";a.dir="dir"in a?a.dir:f.getpath+"/skin/laypage.min.css",new f(d),a.dir&&!b[c](e)&&f.use(a.dir,e)}a.v="1.3";var b=document,c="getElementById",d="getElementsByTagName",e=0,f=function(a){var b=this,c=b.config=a||{};c.item=e++,b.render(!0)};f.on=function(a,b,c){return a.attachEvent?a.attachEvent("on"+b,function(){c.call(a,window.even)}):a.addEventListener(b,c,!1),f},f.getpath=function(){var a=document.scripts,b=a[a.length-1].src;return b.substring(0,b.lastIndexOf("/")+1)}(),f.use=function(c,e){var f=b.createElement("link");f.type="text/css",f.rel="stylesheet",f.href=a.dir,e&&(f.id=e),b[d]("head")[0].appendChild(f),f=null},f.prototype.type=function(){var a=this.config;return"object"==typeof a.cont?void 0===a.cont.length?2:3:void 0},f.prototype.view=function(){var b=this,c=b.config,d=[],e={};if(c.pages=0|c.pages,c.curr=0|c.curr||1,c.groups="groups"in c?0|c.groups:5,c.first="first"in c?c.first:"首页",c.last="last"in c?c.last:"尾页",c.prev="prev"in c?c.prev:"上一页",c.next="next"in c?c.next:"下一页",c.pages<=1)return"";for(c.groups>c.pages&&(c.groups=c.pages),e.index=Math.ceil((c.curr+(c.groups>1&&c.groups!==c.pages?1:0))/(0===c.groups?1:c.groups)),c.curr>1&&c.prev&&d.push('<a href="javascript:;" class="laypage_prev" data-page="'+(c.curr-1)+'">'+c.prev+"</a>"),e.index>1&&c.first&&0!==c.groups&&d.push('<a href="javascript:;" class="laypage_first" data-page="1" title="首页">'+c.first+"</a><span>…</span>"),e.poor=Math.floor((c.groups-1)/2),e.start=e.index>1?c.curr-e.poor:1,e.end=e.index>1?function(){var a=c.curr+(c.groups-e.poor-1);return a>c.pages?c.pages:a}():c.groups,e.end-e.start<c.groups-1&&(e.start=e.end-c.groups+1);e.start<=e.end;e.start++)e.start===c.curr?d.push('<span class="laypage_curr" '+(/^#/.test(c.skin)?'style="background-color:'+c.skin+'"':"")+">"+e.start+"</span>"):d.push('<a href="javascript:;" data-page="'+e.start+'">'+e.start+"</a>");return c.pages>c.groups&&e.end<c.pages&&c.last&&0!==c.groups&&d.push('<span>…</span><a href="javascript:;" class="laypage_last" title="尾页" data-page="'+c.pages+'">'+c.last+"</a>"),e.flow=!c.prev&&0===c.groups,(c.curr!==c.pages&&c.next||e.flow)&&d.push(function(){return e.flow&&c.curr===c.pages?'<span class="page_nomore" title="已没有更多">'+c.next+"</span>":'<a href="javascript:;" class="laypage_next" data-page="'+(c.curr+1)+'">'+c.next+"</a>"}()),'<div name="laypage'+a.v+'" class="laypage_main laypageskin_'+(c.skin?function(a){return/^#/.test(a)?"molv":a}(c.skin):"default")+'" id="laypage_'+b.config.item+'">'+d.join("")+function(){return c.skip?'<span class="laypage_total"><label>到第</label><input type="number" min="1" onkeyup="this.value=this.value.replace(/\\D/, \'\');" class="laypage_skip"><label>页</label><button type="button" class="laypage_btn">确定</button></span>':""}()+"</div>"},f.prototype.jump=function(a){if(a){for(var b=this,c=b.config,e=a.children,g=a[d]("button")[0],h=a[d]("input")[0],i=0,j=e.length;j>i;i++)"a"===e[i].nodeName.toLowerCase()&&f.on(e[i],"click",function(){var a=0|this.getAttribute("data-page");c.curr=a,b.render()});g&&f.on(g,"click",function(){var a=0|h.value.replace(/\s|\D/g,"");a&&a<=c.pages&&(c.curr=a,b.render())})}},f.prototype.render=function(a){var d=this,e=d.config,f=d.type(),g=d.view();2===f?e.cont.innerHTML=g:3===f?e.cont.html(g):b[c](e.cont).innerHTML=g,e.jump&&e.jump(e,a),d.jump(b[c]("laypage_"+e.item)),e.hash&&!a&&(location.hash="!"+e.hash+"="+e.curr)},"function"==typeof define?define(function(){return a}):"undefined"!=typeof exports?module.exports=a:window.laypage=a}(); |
@@ -0,0 +1,3 @@ | |||||
/*! layPage-v1.3.0 分页组件 License MIT http://laypage.layui.com/ By 贤心 */ | |||||
!function(){"use strict";function t(u){var f="laypagecss";t.dir="dir"in t?t.dir:n.getpath+"/skin/laypage.min.css";new n(u);t.dir&&!i[r](f)&&n.use(t.dir,f)}t.v="1.3";var i=document,r="getElementById",u="getElementsByTagName",f=0,n=function(n){var t=this,i=t.config=n||{};i.item=f++;t.render(!0)};n.on=function(t,i,r){return t.attachEvent?t.attachEvent("on"+i,function(){r.call(t,window.even)}):t.addEventListener(i,r,!1),n};n.getpath=function(){var n=document.scripts,t=n[n.length-1].src;return t.substring(0,t.lastIndexOf("/")+1)}();n.use=function(n,r){var f=i.createElement("link");f.type="text/css";f.rel="stylesheet";f.href=t.dir;r&&(f.id=r);i[u]("head")[0].appendChild(f);f=null};n.prototype.type=function(){var n=this.config;if("object"==typeof n.cont)return void 0===n.cont.length?2:3};n.prototype.view=function(){var u=this,n=u.config,r=[],i={};if(n.pages=0|n.pages,n.curr=0|n.curr||1,n.groups="groups"in n?0|n.groups:5,n.first="first"in n?n.first:"首页",n.last="last"in n?n.last:"尾页",n.prev="prev"in n?n.prev:"上一页",n.next="next"in n?n.next:"下一页",n.pages<=1)return"";for(n.groups>n.pages&&(n.groups=n.pages),i.index=Math.ceil((n.curr+(n.groups>1&&n.groups!==n.pages?1:0))/(0===n.groups?1:n.groups)),n.curr>1&&n.prev&&r.push('<a href="javascript:;" class="laypage_prev" data-page="'+(n.curr-1)+'">'+n.prev+"<\/a>"),i.index>1&&n.first&&0!==n.groups&&r.push('<a href="javascript:;" class="laypage_first" data-page="1" title="首页">'+n.first+"<\/a><span>…<\/span>"),i.poor=Math.floor((n.groups-1)/2),i.start=i.index>1?n.curr-i.poor:1,i.end=i.index>1?function(){var t=n.curr+(n.groups-i.poor-1);return t>n.pages?n.pages:t}():n.groups,i.end-i.start<n.groups-1&&(i.start=i.end-n.groups+1);i.start<=i.end;i.start++)i.start===n.curr?r.push('<span class="laypage_curr" '+(/^#/.test(n.skin)?'style="background-color:'+n.skin+'"':"")+">"+i.start+"<\/span>"):r.push('<a href="javascript:;" data-page="'+i.start+'">'+i.start+"<\/a>");return n.pages>n.groups&&i.end<n.pages&&n.last&&0!==n.groups&&r.push('<span>…<\/span><a href="javascript:;" class="laypage_last" title="尾页" data-page="'+n.pages+'">'+n.last+"<\/a>"),i.flow=!n.prev&&0===n.groups,(n.curr!==n.pages&&n.next||i.flow)&&r.push(function(){return i.flow&&n.curr===n.pages?'<span class="page_nomore" title="已没有更多">'+n.next+"<\/span>":'<a href="javascript:;" class="laypage_next" data-page="'+(n.curr+1)+'">'+n.next+"<\/a>"}()),'<div name="laypage'+t.v+'" class="laypage_main laypageskin_'+(n.skin?function(n){return/^#/.test(n)?"molv":n}(n.skin):"default")+'" id="laypage_'+u.config.item+'">'+r.join("")+function(){return n.skip?'<span class="laypage_total"><label>到第<\/label><input type="number" min="1" onkeyup="this.value=this.value.replace(/\\D/, \'\');" class="laypage_skip"><label>页<\/label><button type="button" class="laypage_btn">确定<\/button><\/span>':""}()+"<\/div>"};n.prototype.jump=function(t){if(t){for(var r=this,f=r.config,e=t.children,o=t[u]("button")[0],s=t[u]("input")[0],i=0,h=e.length;h>i;i++)"a"===e[i].nodeName.toLowerCase()&&n.on(e[i],"click",function(){var n=0|this.getAttribute("data-page");f.curr=n;r.render()});o&&n.on(o,"click",function(){var n=0|s.value.replace(/\s|\D/g,"");n&&n<=f.pages&&(f.curr=n,r.render())})}};n.prototype.render=function(n){var u=this,t=u.config,e=u.type(),f=u.view();2===e?t.cont.innerHTML=f:3===e?t.cont.html(f):i[r](t.cont).innerHTML=f;t.jump&&t.jump(t,n);u.jump(i[r]("laypage_"+t.item));t.hash&&!n&&(location.hash="!"+t.hash+"="+t.curr)};"function"==typeof define?define(function(){return t}):"undefined"!=typeof exports?module.exports=t:window.laypage=t}(); | |||||
//# sourceMappingURL=laypage.min.js.map |
@@ -0,0 +1,3 @@ | |||||
/*! | |||||
laypage默认样式 | |||||
*/.laypage_main a,.laypage_main input,.laypage_main span{height:26px;line-height:26px}.laypage_main button,.laypage_main input,.laypageskin_default a{border:1px solid #ccc;background-color:#fff}.laypage_main{font-size:0;clear:both;color:#666}.laypage_main *{display:inline-block;vertical-align:top;font-size:12px}.laypage_main a{text-decoration:none;color:#666}.laypage_main a,.laypage_main span{margin:0 3px 6px;padding:0 10px}.laypage_main input{width:40px;margin:0 5px;padding:0 5px}.laypage_main button{height:28px;line-height:28px;margin-left:5px;padding:0 10px;color:#666}.laypageskin_default span{height:28px;line-height:28px;color:#999}.laypageskin_default .laypage_curr{font-weight:700;color:#666}.laypageskin_molv a,.laypageskin_molv span{padding:0 12px;border-radius:2px}.laypageskin_molv a{background-color:#f1eff0}.laypageskin_molv .laypage_curr{background-color:#00AA91;color:#fff}.laypageskin_molv input{height:24px;line-height:24px;padding-right:0;}.laypageskin_molv input:focus{border-bottom:1px solid #ccc !important;box-shadow:none !important;}.laypageskin_molv input:focus + label{color:#9e9e9e !important;}.laypageskin_molv button{height:26px;line-height:25px;background-color:#1388ff;color:#ffffff;border-color:#1388ff;}.laypageskin_molv button:hover{background-color:#0079f5;}.laypageskin_yahei{color:#333}.laypageskin_yahei a,.laypageskin_yahei span{padding:0 13px;border-radius:2px;color:#333}.laypageskin_yahei .laypage_curr{background-color:#333;color:#fff}.laypageskin_flow{text-align:center}.laypageskin_flow .page_nomore{color:#999} |
@@ -0,0 +1,4 @@ | |||||
/*! | |||||
laypage默认样式 | |||||
*/ | |||||
.laypage_main a,.laypage_main input,.laypage_main span{height:26px;line-height:26px}.laypage_main button,.laypage_main input,.laypageskin_default a{border:1px solid #ccc;background-color:#fff}.laypage_main{font-size:0;clear:both;color:#666}.laypage_main *{display:inline-block;vertical-align:top;font-size:12px}.laypage_main a{text-decoration:none;color:#666}.laypage_main a,.laypage_main span{margin:0 3px 6px;padding:0 10px}.laypage_main input{width:40px;margin:0 5px;padding:0 5px}.laypage_main button{height:28px;line-height:28px;margin-left:5px;padding:0 10px;color:#666}.laypageskin_default span{height:28px;line-height:28px;color:#999}.laypageskin_default .laypage_curr{font-weight:700;color:#666}.laypageskin_molv a,.laypageskin_molv span{padding:0 12px;border-radius:2px}.laypageskin_molv a{background-color:#f1eff0}.laypageskin_molv .laypage_curr{background-color:#00aa91;color:#fff}.laypageskin_molv input{height:24px;line-height:24px;padding-right:0}.laypageskin_molv input:focus{border-bottom:1px solid #ccc !important;box-shadow:none !important}.laypageskin_molv input:focus+label{color:#9e9e9e !important}.laypageskin_molv button{height:26px;line-height:25px;background-color:#1388ff;color:#fff;border-color:#1388ff}.laypageskin_molv button:hover{background-color:#0079f5}.laypageskin_yahei{color:#333}.laypageskin_yahei a,.laypageskin_yahei span{padding:0 13px;border-radius:2px;color:#333}.laypageskin_yahei .laypage_curr{background-color:#333;color:#fff}.laypageskin_flow{text-align:center}.laypageskin_flow .page_nomore{color:#999} |
@@ -0,0 +1 @@ | |||||
|
@@ -0,0 +1,185 @@ | |||||
| |||||
$(function () { | |||||
"use strict"; | |||||
var articleId = request('id'); | |||||
$('body').on('click', '.site-menu-li', function () { | |||||
var $this = $(this); | |||||
var data = $this[0].data; | |||||
if (data.F_UrlType == 1) {// 内部页面 | |||||
window.location.href = $.rootUrl + '/Home/ChildIndex?id=' + data.F_Url + '&menuid=' + data.F_Id; | |||||
} | |||||
else {// 外部页面 | |||||
window.open(data.F_Url); | |||||
} | |||||
return false; | |||||
}); | |||||
$('.homePage').on('click', function () { | |||||
window.location.href = $.rootUrl + '/Home/Index'; | |||||
}); | |||||
// 渲染顶部菜单 | |||||
var renderTopMenu = function (_topMenuList) { | |||||
var $topUl = $('.lr-site-nav-ul'); | |||||
$('.lr-site-sub-nav-ul').remove(); | |||||
$.each(_topMenuList["0"] || [], function (_index, _item) { | |||||
var $item = $('<li class="lr-site-nav-li site-menu-li childPage">\ | |||||
<a href="javascript:void(0);" class="lr-site-nav-item"><span class="text">' + _item.F_Name + '</span></a>\ | |||||
</li>'); | |||||
$item[0].data = _item; | |||||
$topUl.append($item); | |||||
// 加载子菜单 | |||||
if (_topMenuList[_item.F_Id]) { | |||||
var $subList = $('<div class="lr-site-sub-nav-ul" data-value="' + _item.F_Id + '" ><div class="lr-site-content"><ul class="lr-site-sub-nav-menu"></ul></div></div>'); | |||||
var $subUl = $subList.find('ul'); | |||||
$.each(_topMenuList[_item.F_Id], function (_jindex, _jitem) { | |||||
var $jitem = $('<li class="lr-site-sub-nav-li site-menu-li"><a href="javascript:void(0);" class="lr-site-sub-nav-item">' + _jitem.F_Name + '</a></li>'); | |||||
$jitem[0].data = _jitem; | |||||
// 加载三级子菜单 | |||||
if (_topMenuList[_jitem.F_Id]) { | |||||
var $ul = $('<ul class="lr-site-three-nav-menu"></ul>'); | |||||
$.each(_topMenuList[_jitem.F_Id], function (_mindex, _mitem) { | |||||
var $mitem = $('<li class="lr-site-three-nav-li site-menu-li"><a href="javascript:void(0);" class="lr-site-three-nav-item">' + _mitem.F_Name + '</a></li>'); | |||||
$mitem[0].data = _mitem; | |||||
$ul.append($mitem); | |||||
}); | |||||
$jitem.append($ul); | |||||
} | |||||
$subUl.append($jitem); | |||||
}); | |||||
$('body').append($subList); | |||||
} | |||||
}); | |||||
$topUl.find('.childPage').hover(function () { | |||||
var $this = $(this); | |||||
var data = $this[0].data; | |||||
$('.lr-site-sub-nav-ul').hide(); | |||||
var $subList = $('.lr-site-sub-nav-ul[data-value="' + data.F_Id + '"]'); | |||||
if ($subList.length > 0) { | |||||
$subList[0].isShow = false; | |||||
$subList.show(); | |||||
} | |||||
}, function () { | |||||
var $this = $(this); | |||||
var data = $this[0].data; | |||||
setTimeout(function () { | |||||
var $subList = $('.lr-site-sub-nav-ul[data-value="' + data.F_Id + '"]'); | |||||
if ($subList.length > 0) { | |||||
if (!$subList[0].isShow) { | |||||
$subList.hide(); | |||||
} | |||||
} | |||||
}, 100); | |||||
}); | |||||
$('.lr-site-sub-nav-ul').hover(function () { | |||||
$(this)[0].isShow = true; | |||||
$(this).show(); | |||||
}, function () { | |||||
$(this)[0].isShow = false; | |||||
$(this).hide(); | |||||
}); | |||||
} | |||||
// 渲染底部菜单 | |||||
var renderBottomMenu = function (_bottomMenuList) { | |||||
var $list = $('.lr-site-footer-nav-menu'); | |||||
$list.html(''); | |||||
$.each(_bottomMenuList, function (_index, _item) { | |||||
var $item = $(' <li class="lr-site-footer-nav-li site-menu-li"><a href="javascript:void(0);" class="lr-site-footer-nav-item">' + _item.F_Name + '</a></li>'); | |||||
$item[0].data = _item; | |||||
$list.append($item); | |||||
}); | |||||
} | |||||
var formatDate = function (v, format) { | |||||
if (!v) return ""; | |||||
var d = v; | |||||
if (typeof v === 'string') { | |||||
if (v.indexOf("/Date(") > -1) | |||||
d = new Date(parseInt(v.replace("/Date(", "").replace(")/", ""), 10)); | |||||
else | |||||
d = new Date(Date.parse(v.replace(/-/g, "/").replace("T", " ").split(".")[0]));//.split(".")[0] 用来处理出现毫秒的情况,截取掉.xxx,否则会出错 | |||||
} | |||||
var o = { | |||||
"M+": d.getMonth() + 1, //month | |||||
"d+": d.getDate(), //day | |||||
"h+": d.getHours(), //hour | |||||
"m+": d.getMinutes(), //minute | |||||
"s+": d.getSeconds(), //second | |||||
"q+": Math.floor((d.getMonth() + 3) / 3), //quarter | |||||
"S": d.getMilliseconds() //millisecond | |||||
}; | |||||
if (/(y+)/.test(format)) { | |||||
format = format.replace(RegExp.$1, (d.getFullYear() + "").substr(4 - RegExp.$1.length)); | |||||
} | |||||
for (var k in o) { | |||||
if (new RegExp("(" + k + ")").test(format)) { | |||||
format = format.replace(RegExp.$1, RegExp.$1.length == 1 ? o[k] : ("00" + o[k]).substr(("" + o[k]).length)); | |||||
} | |||||
} | |||||
return format; | |||||
}; | |||||
// 获取页面公共部分数据 | |||||
httpGet($.rootUrl + '/Home/GetAllList', function (res) { | |||||
var topMenuList = {}; | |||||
var bottomMenuList = []; | |||||
if (res && res.code == 200) { | |||||
$.each(res.data, function (_index, _item) { | |||||
switch (_item.F_Type) { | |||||
case '1':// 顶部文字 | |||||
$('#lr_site_top_text').text(_item.F_Name); | |||||
break; | |||||
case '2':// 底部文字 | |||||
$('.lr-site-bottom').text(_item.F_Name); | |||||
break; | |||||
case '3':// 底部地址 | |||||
$('.lr-site-contactInfo').text(_item.F_Name); | |||||
break; | |||||
case '6':// 顶部菜单 | |||||
topMenuList[_item.F_ParentId] = topMenuList[_item.F_ParentId] || []; | |||||
topMenuList[_item.F_ParentId].push(_item); | |||||
break; | |||||
case '7':// 底部菜单 | |||||
bottomMenuList.push(_item); | |||||
break; | |||||
case '11': | |||||
$('.lr-site-footer-wechat .text').text(_item.F_Name); | |||||
break; | |||||
} | |||||
}); | |||||
renderTopMenu(topMenuList); | |||||
renderBottomMenu(bottomMenuList); | |||||
} | |||||
}); | |||||
httpGet($.rootUrl + '/Home/GetArticle?keyValue=' + articleId, function (res) { | |||||
if (res && res.code == 200) { | |||||
console.log(res.data); | |||||
//var $list = $('#lr_body_cotent'); | |||||
// 图片地址切换 | |||||
var _content = res.data.F_Content.replace(/\/ueditor\/upload\/image/g, $.rootUrl + '/Home/GetUeditorImg?id='); | |||||
$('.lr-site-body-container').append(_content); | |||||
$('#title').text(res.data.F_Title); | |||||
} | |||||
}); | |||||
}); |
@@ -0,0 +1,185 @@ | |||||
| |||||
$(function () { | |||||
"use strict"; | |||||
$('body').on('click', '.site-menu-li', function () { | |||||
var $this = $(this); | |||||
var data = $this[0].data; | |||||
if (data.F_UrlType == 1) {// 内部页面 | |||||
window.location.href = $.rootUrl + '/Home/ChildIndex?id=' + data.F_Url + '&menuid=' + data.F_Id; | |||||
} | |||||
else {// 外部页面 | |||||
window.open(data.F_Url); | |||||
} | |||||
return false; | |||||
}); | |||||
////banner 轮播 | |||||
var bannerSwiper = new Swiper('.lr-site-banner-swiper-container', { | |||||
direction: 'horizontal', | |||||
autoplay: true, | |||||
loop: true, | |||||
speed: 600, | |||||
// 分页器 | |||||
pagination: { | |||||
el: '.swiper-pagination', | |||||
clickable: true | |||||
}, | |||||
}); | |||||
// 渲染顶部菜单 | |||||
var renderTopMenu = function (_topMenuList) { | |||||
var $topUl = $('.lr-site-nav-ul'); | |||||
$('.lr-site-sub-nav-ul').remove(); | |||||
$.each(_topMenuList["0"] || [], function (_index, _item) { | |||||
var $item = $('<li class="lr-site-nav-li site-menu-li childPage">\ | |||||
<a href="javascript:void(0);" class="lr-site-nav-item"><span class="text">' + _item.F_Name + '</span></a>\ | |||||
</li>'); | |||||
$item[0].data = _item; | |||||
$topUl.append($item); | |||||
// 加载子菜单 | |||||
if (_topMenuList[_item.F_Id]) { | |||||
var $subList = $('<div class="lr-site-sub-nav-ul" data-value="' + _item.F_Id + '" ><div class="lr-site-content"><ul class="lr-site-sub-nav-menu"></ul></div></div>'); | |||||
var $subUl = $subList.find('ul'); | |||||
$.each(_topMenuList[_item.F_Id], function (_jindex, _jitem) { | |||||
var $jitem = $('<li class="lr-site-sub-nav-li site-menu-li"><a href="javascript:void(0);" class="lr-site-sub-nav-item">' + _jitem.F_Name + '</a></li>'); | |||||
$jitem[0].data = _jitem; | |||||
// 加载三级子菜单 | |||||
if (_topMenuList[_jitem.F_Id]) { | |||||
var $ul = $('<ul class="lr-site-three-nav-menu"></ul>'); | |||||
$.each(_topMenuList[_jitem.F_Id], function (_mindex, _mitem) { | |||||
var $mitem = $('<li class="lr-site-three-nav-li site-menu-li"><a href="javascript:void(0);" class="lr-site-three-nav-item">' + _mitem.F_Name + '</a></li>'); | |||||
$mitem[0].data = _mitem; | |||||
$ul.append($mitem); | |||||
}); | |||||
$jitem.append($ul); | |||||
} | |||||
$subUl.append($jitem); | |||||
}); | |||||
$('body').append($subList); | |||||
} | |||||
}); | |||||
$topUl.find('.childPage').hover(function () { | |||||
var $this = $(this); | |||||
var data = $this[0].data; | |||||
$('.lr-site-sub-nav-ul').hide(); | |||||
var $subList = $('.lr-site-sub-nav-ul[data-value="' + data.F_Id + '"]'); | |||||
if ($subList.length > 0) { | |||||
$subList[0].isShow = false; | |||||
$subList.show(); | |||||
} | |||||
}, function () { | |||||
var $this = $(this); | |||||
var data = $this[0].data; | |||||
setTimeout(function () { | |||||
var $subList = $('.lr-site-sub-nav-ul[data-value="' + data.F_Id + '"]'); | |||||
if ($subList.length > 0) { | |||||
if (!$subList[0].isShow) { | |||||
$subList.hide(); | |||||
} | |||||
} | |||||
}, 100); | |||||
}); | |||||
$('.lr-site-sub-nav-ul').hover(function () { | |||||
$(this)[0].isShow = true; | |||||
$(this).show(); | |||||
}, function () { | |||||
$(this)[0].isShow = false; | |||||
$(this).hide(); | |||||
}); | |||||
} | |||||
// 渲染底部菜单 | |||||
var renderBottomMenu = function (_bottomMenuList) { | |||||
var $list = $('.lr-site-footer-nav-menu'); | |||||
$list.html(''); | |||||
$.each(_bottomMenuList, function (_index, _item) { | |||||
var $item = $('<li class="lr-site-footer-nav-li site-menu-li"><a href="javascript:void(0);" class="lr-site-footer-nav-item">' + _item.F_Name + '</a></li>'); | |||||
$item[0].data = _item; | |||||
$list.append($item); | |||||
}); | |||||
} | |||||
// 轮播图片 | |||||
var renderPicture = function (_pictureList) { | |||||
var $swrapper = $('.lr-site-banner-swiper-container .swiper-wrapper'); | |||||
$swrapper.html(""); | |||||
if (_pictureList.length > 0) { | |||||
$('.lr-site-banner-swiper-container').show(); | |||||
$('.lr-site-banner-default').hide(); | |||||
$.each(_pictureList, function (_index, _item) { | |||||
var src = _item.src || ($.rootUrl + '/Home/GetImg2?keyValue=' + _item.F_Id); | |||||
var $item = $('<div class="swiper-slide">\ | |||||
<img class="img" src="' + src + '" />\ | |||||
</div>'); | |||||
$swrapper.append($item); | |||||
}); | |||||
} | |||||
else { | |||||
$('.lr-site-banner-swiper-container').hide(); | |||||
$('.lr-site-banner-default').show(); | |||||
} | |||||
bannerSwiper.update(); | |||||
} | |||||
httpGet($.rootUrl + '/Home/GetAllList', function (res) { | |||||
console.log(res); | |||||
var topMenuList = {}; | |||||
var bottomMenuList = []; | |||||
var pictureList = []; | |||||
if (res && res.code == 200) { | |||||
$.each(res.data, function (_index, _item) { | |||||
switch (_item.F_Type) { | |||||
case '1':// 顶部文字 | |||||
$('#lr_site_top_text').text(_item.F_Name); | |||||
break; | |||||
case '2':// 底部文字 | |||||
$('.lr-site-bottom').text(_item.F_Name); | |||||
break; | |||||
case '3':// 底部地址 | |||||
$('.lr-site-contactInfo').text(_item.F_Name); | |||||
break; | |||||
case '4':// logo图片 | |||||
break; | |||||
case '5':// 微信图片 | |||||
break; | |||||
case '6':// 顶部菜单 | |||||
topMenuList[_item.F_ParentId] = topMenuList[_item.F_ParentId] || []; | |||||
topMenuList[_item.F_ParentId].push(_item); | |||||
break; | |||||
case '7':// 底部菜单 | |||||
bottomMenuList.push(_item); | |||||
break; | |||||
case '8': | |||||
pictureList.push(_item); | |||||
break; | |||||
case '9': | |||||
break; | |||||
case '11': | |||||
$('.lr-site-footer-wechat .text').text(_item.F_Name); | |||||
break; | |||||
} | |||||
}); | |||||
renderTopMenu(topMenuList); | |||||
renderBottomMenu(bottomMenuList); | |||||
renderPicture(pictureList); | |||||
} | |||||
}); | |||||
}); |
@@ -0,0 +1,24 @@ | |||||
| |||||
$(function () { | |||||
"use strict"; | |||||
laypage({ | |||||
cont: "lr_page", //容器。值支持id名、原生dom对象,jquery对象。【如该容器为】:<div id="page1"></div> | |||||
pages: 10, //通过后台拿到的总页数 | |||||
curr: 0, //当前页 | |||||
groups: 5, //连续显示分页数 | |||||
skip: true, //是否开启跳页 | |||||
first: '首页', //若不显示,设置false即可 | |||||
last: '尾页', //若不显示,设置false即可 | |||||
jump: function (obj, first) { //触发分页后的回调 | |||||
return; | |||||
if (!first) { //点击跳页触发函数自身,并传递当前页:obj.curr | |||||
pageIndex = obj.curr; | |||||
pageQuery(pageIndex); | |||||
document.getElementById('newlist').innerHTML = newsDate(data.rows); | |||||
} | |||||
} | |||||
}); | |||||
}); |
@@ -0,0 +1,303 @@ | |||||
| |||||
$(function () { | |||||
"use strict"; | |||||
$.fn.SiteCarousel = function (options) { | |||||
//默认配置 | |||||
var defaults = { | |||||
speed: 4000, //滚动速度,值越大速度越慢 | |||||
rowHeight: 47 //每行的高度 | |||||
}; | |||||
var opts = $.extend({}, defaults, options), intId; | |||||
function marquee(obj, step, callback) { | |||||
obj.find("ul").animate({ | |||||
marginTop: '-=' + step | |||||
}, 300, function () { | |||||
$(this).find("li").slice(0, 1).appendTo($(this)); | |||||
$(this).css("margin-top", 0); | |||||
callback(); | |||||
}); | |||||
} | |||||
this.each(function (i) { | |||||
var sh = opts["rowHeight"], speed = opts["speed"], _this = $(this); | |||||
var _fn = function (flag) { | |||||
if (flag) { | |||||
clearInterval(intId); | |||||
intId = setTimeout(_fn, speed); | |||||
} | |||||
else { | |||||
if (_this.find("ul").height() > _this.height()) { | |||||
marquee(_this, sh, function () { | |||||
clearInterval(intId); | |||||
intId = setTimeout(_fn, speed); | |||||
}); | |||||
} | |||||
} | |||||
}; | |||||
_fn(true); | |||||
_this.hover(function () { | |||||
if (intId) { | |||||
clearInterval(intId); | |||||
} | |||||
}, function () { | |||||
_fn(true); | |||||
}); | |||||
}); | |||||
}; | |||||
var formatDate = function (v, format) { | |||||
if (!v) return ""; | |||||
var d = v; | |||||
if (typeof v === 'string') { | |||||
if (v.indexOf("/Date(") > -1) | |||||
d = new Date(parseInt(v.replace("/Date(", "").replace(")/", ""), 10)); | |||||
else | |||||
d = new Date(Date.parse(v.replace(/-/g, "/").replace("T", " ").split(".")[0]));//.split(".")[0] 用来处理出现毫秒的情况,截取掉.xxx,否则会出错 | |||||
} | |||||
var o = { | |||||
"M+": d.getMonth() + 1, //month | |||||
"d+": d.getDate(), //day | |||||
"h+": d.getHours(), //hour | |||||
"m+": d.getMinutes(), //minute | |||||
"s+": d.getSeconds(), //second | |||||
"q+": Math.floor((d.getMonth() + 3) / 3), //quarter | |||||
"S": d.getMilliseconds() //millisecond | |||||
}; | |||||
if (/(y+)/.test(format)) { | |||||
format = format.replace(RegExp.$1, (d.getFullYear() + "").substr(4 - RegExp.$1.length)); | |||||
} | |||||
for (var k in o) { | |||||
if (new RegExp("(" + k + ")").test(format)) { | |||||
format = format.replace(RegExp.$1, RegExp.$1.length == 1 ? o[k] : ("00" + o[k]).substr(("" + o[k]).length)); | |||||
} | |||||
} | |||||
return format; | |||||
}; | |||||
/*模块3标签页切换*/ | |||||
$('.lr-site-modules').on('click', '.lr-site-tab', function () { | |||||
var $this = $(this); | |||||
if (!$this.hasClass('active')) { | |||||
var $parent = $this.parent(); | |||||
$parent.find('.active').removeClass('active'); | |||||
$this.addClass('active'); | |||||
var value = $this.attr('data-value'); | |||||
$parent.next().find('.active').removeClass('active'); | |||||
$parent.next().find('[data-value="' + value + '"]').addClass('active'); | |||||
} | |||||
}); | |||||
$('.lr-site-modules').on('click', '.lr-site-more', function () { | |||||
var $this = $(this); | |||||
var data = $this.parents('.lr-site-module')[0].data; | |||||
if (data.F_Url) { | |||||
window.location.href = $.rootUrl + '/Home/ChildIndex?id=' + data.F_Url + '&module=' + escape(data.F_Name); | |||||
} | |||||
}); | |||||
$('.lr-site-modules').on('click', '.lr-site-article-list-item', function () { | |||||
var data = $(this)[0].data; | |||||
window.open($.rootUrl + '/Home/DetailIndex?id=' + data.F_Id); | |||||
return false; | |||||
}); | |||||
var renderModule = function (data) { | |||||
var schemeObj = JSON.parse(data.F_Scheme); | |||||
var $item; | |||||
var $list = $('.lr-site-modules'); | |||||
switch (schemeObj.type) { | |||||
case '1':// 风格一 | |||||
$item = $('<div class="lr-site-module module1">\ | |||||
<div class="lr-site-box">\ | |||||
<div class="title">\ | |||||
<i class="fa fa-volume-down"></i>\ | |||||
<span class="name" >' + data.F_Name + '</span>\ | |||||
<span class="arrow"></span>\ | |||||
</div>\ | |||||
<div class="content">\ | |||||
<ul>\ | |||||
</ul>\ | |||||
</div>\ | |||||
<div class="lr-site-more">' + (data.F_Url ? '更多' : '') + '</div>\ | |||||
</div>\ | |||||
</div>'); | |||||
$item.find('.content').SiteCarousel(); | |||||
var $ul = $item.find('ul'); | |||||
$ul.html(''); | |||||
$.each(schemeObj.list, function (_index, _item) { | |||||
var _$li = $('<li><a href="javascript:void(0);" class="lr-text-item lr-site-article-list-item">' + _item.F_Title + '</a></li>'); | |||||
_$li[0].data = _item; | |||||
$ul.append(_$li); | |||||
}); | |||||
$list.append($item); | |||||
break; | |||||
case '2': | |||||
$item = $('<div class="lr-site-module module2" data-value="' + data.F_Id + '" >\ | |||||
<div class="lr-site-box">\ | |||||
<div class="lr-site-title"><span class="name" >' + data.F_Name + '</span><div class="lr-site-more">' + (data.F_Url ? '更多' : '') + '</div></div>\ | |||||
<div class="lr-site-body">\ | |||||
<div class="lr-site-module-pic">\ | |||||
<div class="lr-site-module-swiper-container swiper-container">\ | |||||
<div class="swiper-wrapper">\ | |||||
</div>\ | |||||
<div class="swiper-pagination"></div>\ | |||||
</div>\ | |||||
</div>\ | |||||
<div class="lr-site-module-list">\ | |||||
</div>\ | |||||
</div>\ | |||||
</div>\ | |||||
</div>'); | |||||
$list.append($item); | |||||
$item[0].swiper = new Swiper('[data-value="' + data.F_Id + '"] .lr-site-module-swiper-container', { | |||||
direction: 'horizontal', | |||||
autoplay: true, | |||||
loop: true, | |||||
speed: 600, | |||||
// 分页器 | |||||
pagination: { | |||||
el: '.swiper-pagination', | |||||
clickable: true | |||||
}, | |||||
}); | |||||
$item.css({ width: parseFloat(schemeObj.prop) * 100 + '%' }); | |||||
// 加载图片 | |||||
if (schemeObj.list1.length == 0) { | |||||
$item.addClass('noimg'); | |||||
} | |||||
else { | |||||
$item.removeClass('noimg'); | |||||
var $swrapper = $item.find('.swiper-wrapper'); | |||||
$swrapper.html(''); | |||||
$.each(schemeObj.list1, function (_index, _item) { | |||||
var $li = $('<div class="swiper-slide lr-site-article-list-item">\ | |||||
<img class="img" src="' + top.$.rootUrl + '/Home/GetArticleImg?keyValue=' + _item.F_Id + '" />\ | |||||
</div>'); | |||||
$li[0].data = _item; | |||||
$swrapper.append($li); | |||||
}); | |||||
$item[0].swiper.update(); | |||||
} | |||||
// 加载文字列表 | |||||
var $textList = $item.find('.lr-site-module-list'); | |||||
$textList.html(''); | |||||
$.each(schemeObj.list2, function (_index, _item) { | |||||
var $li = $('<div class="lr-site-module-item lr-site-article-list-item">\ | |||||
<div class="text">'+ _item.F_Title + '</div>\ | |||||
<div class="date">' + formatDate(_item.F_PushDate, 'yyyy-MM-dd') + '</div>\ | |||||
</div>'); | |||||
$li[0].data = _item; | |||||
$textList.append($li); | |||||
}); | |||||
break; | |||||
case '3': | |||||
$item = $('<div class="lr-site-module module3" data-value="' + data.F_Id + '" >\ | |||||
<div class="lr-site-box">\ | |||||
<div class="lr-site-tabs"></div>\ | |||||
<div class="lr-site-body">\ | |||||
</div>\ | |||||
</div>\ | |||||
</div>'); | |||||
$list.append($item); | |||||
$item.css({ width: parseFloat(schemeObj.prop) * 100 + '%' }); | |||||
var tabList = $item.find('.lr-site-tabs'); | |||||
var tabBody = $item.find('.lr-site-body'); | |||||
tabList.html(''); | |||||
tabBody.html(''); | |||||
$.each(schemeObj.list, function (_index, _item) { | |||||
var $li = $('<div class="lr-site-tab" data-value="' + _index + '">' + _item.name + '</div>'); | |||||
tabList.append($li); | |||||
var $tabContent = $('<div class="lr-site-tab-content" data-value="' + _index + '"></div>') | |||||
$.each(_item.list, function (_jindex, _jitem) { | |||||
var _$jli = $('<div class="lr-site-tab-content-item lr-site-article-list-item">' + _jitem.F_Title + '</div>'); | |||||
_$jli[0].data = _jitem; | |||||
$tabContent.append(_$jli); | |||||
}); | |||||
tabBody.append($tabContent); | |||||
if (_index == 0) { | |||||
$li.trigger('click'); | |||||
} | |||||
}); | |||||
break; | |||||
case '4': | |||||
$item = $('<div class="lr-site-module module4" data-value="' + data.F_Id + '" >\ | |||||
<div class="lr-site-box">\ | |||||
<div class="lr-site-title"><span class="name" >' + data.F_Name + '</span><div class="lr-site-more">' + (data.F_Url ? '更多' : '') + '</div></div>\ | |||||
<div class="lr-site-body">\ | |||||
</div>\ | |||||
</div>\ | |||||
</div>'); | |||||
$list.append($item); | |||||
var $body = $item.find('.lr-site-body'); | |||||
$body.html(''); | |||||
$.each(schemeObj.list, function (_index, _item) { | |||||
var _$li = $('<div class="lr-site-img-item lr-site-article-list-item">\ | |||||
<div class="lr-site-img-item-content">\ | |||||
<img class="img" src="' + $.rootUrl + '/Home/GetArticleImg?keyValue=' + _item.F_Id + '" />\ | |||||
<div class="text">' + _item.F_Title + '</div>\ | |||||
</div>\ | |||||
</div>'); | |||||
_$li[0].data = _item; | |||||
$body.append(_$li); | |||||
}); | |||||
break; | |||||
case '5': | |||||
$item = $('<div class="lr-site-module module5" data-value="' + data.F_Id + '" >\ | |||||
<div class="lr-site-box lr-site-article-list-item">\ | |||||
<div class="lr-site-title"><span class="name" >' + data.F_Name + '</span></div>\ | |||||
<div class="lr-site-body">\ | |||||
<div class="lr-site-article-pic">\ | |||||
<img class="img" src="' + $.rootUrl + '/Home/GetArticleImg?keyValue=' + schemeObj.article + '" />\ | |||||
</div>\ | |||||
<div class="text-content">\ | |||||
<div class="text" data-text="' + schemeObj.article + '" ></div>\ | |||||
</div>\ | |||||
</div>\ | |||||
</div>\ | |||||
</div>'); | |||||
$list.append($item); | |||||
$item.find('.lr-site-box')[0].data = { F_Id: schemeObj.article }; | |||||
$item.css({ width: parseFloat(schemeObj.prop) * 100 + '%' }); | |||||
httpGet($.rootUrl + '/Home/GetArticle?keyValue=' + schemeObj.article, function (res) { | |||||
if (res && res.code == 200) { | |||||
var data = res.data; | |||||
var text = $('<div></div>').html(data.F_Content).text().substring(0, 106) || ''; | |||||
if (text.length == 106) { | |||||
text = text.substring(0, 105) + '...'; | |||||
} | |||||
$('.module5 [data-text="' + data.F_Id + '"]').text(text); | |||||
} | |||||
}); | |||||
break; | |||||
} | |||||
$item[0].data = data; | |||||
} | |||||
httpGet($.rootUrl + '/Home/GetList?type=9', function (res) { | |||||
if (res && res.code == 200) { | |||||
$.each(res.data, function (_index, _item) { | |||||
renderModule(_item); | |||||
}); | |||||
} | |||||
}); | |||||
}); |
@@ -0,0 +1,37 @@ | |||||
| |||||
$(function () { | |||||
"use strict"; | |||||
new Swiper('.lr-site-swiper-container', { | |||||
direction: 'horizontal', | |||||
autoplay: true, | |||||
loop: true, | |||||
speed: 600, | |||||
// 分页器 | |||||
pagination: { | |||||
el: '.swiper-pagination', | |||||
clickable: true | |||||
}, | |||||
}); | |||||
laypage({ | |||||
cont: "lr_page", //容器。值支持id名、原生dom对象,jquery对象。【如该容器为】:<div id="page1"></div> | |||||
pages: 10, //通过后台拿到的总页数 | |||||
curr: 0, //当前页 | |||||
groups: 5, //连续显示分页数 | |||||
skip: true, //是否开启跳页 | |||||
first: '首页', //若不显示,设置false即可 | |||||
last: '尾页', //若不显示,设置false即可 | |||||
jump: function (obj, first) { //触发分页后的回调 | |||||
return; | |||||
if (!first) { //点击跳页触发函数自身,并传递当前页:obj.curr | |||||
pageIndex = obj.curr; | |||||
pageQuery(pageIndex); | |||||
document.getElementById('newlist').innerHTML = newsDate(data.rows); | |||||
} | |||||
} | |||||
}); | |||||
}); |
@@ -0,0 +1,393 @@ | |||||
| |||||
$(function () { | |||||
"use strict"; | |||||
var pageId = request('id'); | |||||
var menuId = request('menuid'); | |||||
var moduleName = unescape(request('module')); | |||||
var pageType; | |||||
var activeItem = null; | |||||
var navList = []; | |||||
// 判断下页面数据是否是全的,如果是不全就转到主页 | |||||
$('.lr-site-banner-default .img').attr('src', $.rootUrl + '/home/GetPageImg?keyValue=' + pageId); | |||||
$('body').on('click', '.site-menu-li', function () { | |||||
var $this = $(this); | |||||
var data = $this[0].data; | |||||
if (data.F_UrlType == 1) {// 内部页面 | |||||
window.location.href = $.rootUrl + '/Home/ChildIndex?id=' + data.F_Url + '&menuid=' + data.F_Id; | |||||
} | |||||
else {// 外部页面 | |||||
window.open(data.F_Url); | |||||
} | |||||
return false; | |||||
}); | |||||
$('body').on('click', '.lr-site-article-list-item', function () { | |||||
var data = $(this)[0].data; | |||||
window.open($.rootUrl + '/Home/DetailIndex?id=' + data); | |||||
return false; | |||||
}); | |||||
$('.homePage').on('click', function () { | |||||
window.location.href = $.rootUrl + '/Home/Index'; | |||||
}); | |||||
// 渲染顶部菜单 | |||||
var renderTopMenu = function (_topMenuList) { | |||||
var $topUl = $('.lr-site-nav-ul'); | |||||
$('.lr-site-sub-nav-ul').remove(); | |||||
$.each(_topMenuList["0"] || [], function (_index, _item) { | |||||
var $item = $('<li class="lr-site-nav-li site-menu-li childPage">\ | |||||
<a href="javascript:void(0);" class="lr-site-nav-item"><span class="text">' + _item.F_Name + '</span></a>\ | |||||
</li>'); | |||||
$item[0].data = _item; | |||||
$topUl.append($item); | |||||
if (_item.F_Id == menuId) { | |||||
$item.addClass('active'); | |||||
navList.push(_item); | |||||
} | |||||
// 加载子菜单 | |||||
if (_topMenuList[_item.F_Id]) { | |||||
var $subList = $('<div class="lr-site-sub-nav-ul" data-value="' + _item.F_Id + '" ><div class="lr-site-content"><ul class="lr-site-sub-nav-menu"></ul></div></div>'); | |||||
var $subUl = $subList.find('ul'); | |||||
$.each(_topMenuList[_item.F_Id], function (_jindex, _jitem) { | |||||
var $jitem = $('<li class="lr-site-sub-nav-li site-menu-li"><a href="javascript:void(0);" class="lr-site-sub-nav-item">' + _jitem.F_Name + '</a></li>'); | |||||
$jitem[0].data = _jitem; | |||||
if (_jitem.F_Id == menuId) { | |||||
$item.addClass('active'); | |||||
navList.push(_item); | |||||
navList.push(_jitem); | |||||
} | |||||
// 加载三级子菜单 | |||||
if (_topMenuList[_jitem.F_Id]) { | |||||
var $ul = $('<ul class="lr-site-three-nav-menu"></ul>'); | |||||
$.each(_topMenuList[_jitem.F_Id], function (_mindex, _mitem) { | |||||
var $mitem = $('<li class="lr-site-three-nav-li site-menu-li"><a href="javascript:void(0);" class="lr-site-three-nav-item">' + _mitem.F_Name + '</a></li>'); | |||||
$mitem[0].data = _mitem; | |||||
$ul.append($mitem); | |||||
if (_mitem.F_Id == menuId) { | |||||
$item.addClass('active'); | |||||
navList.push(_item); | |||||
navList.push(_jitem); | |||||
navList.push(_mitem); | |||||
} | |||||
}); | |||||
$jitem.append($ul); | |||||
} | |||||
$subUl.append($jitem); | |||||
}); | |||||
$('body').append($subList); | |||||
} | |||||
}); | |||||
$topUl.find('.childPage').hover(function () { | |||||
var $this = $(this); | |||||
var data = $this[0].data; | |||||
$('.lr-site-sub-nav-ul').hide(); | |||||
var $subList = $('.lr-site-sub-nav-ul[data-value="' + data.F_Id + '"]'); | |||||
if ($subList.length > 0) { | |||||
$subList[0].isShow = false; | |||||
$subList.show(); | |||||
} | |||||
}, function () { | |||||
var $this = $(this); | |||||
var data = $this[0].data; | |||||
setTimeout(function () { | |||||
var $subList = $('.lr-site-sub-nav-ul[data-value="' + data.F_Id + '"]'); | |||||
if ($subList.length > 0) { | |||||
if (!$subList[0].isShow) { | |||||
$subList.hide(); | |||||
} | |||||
} | |||||
}, 100); | |||||
}); | |||||
$('.lr-site-sub-nav-ul').hover(function () { | |||||
$(this)[0].isShow = true; | |||||
$(this).show(); | |||||
}, function () { | |||||
$(this)[0].isShow = false; | |||||
$(this).hide(); | |||||
}); | |||||
// 显示导航信息 | |||||
if (menuId) { | |||||
var $bannerTitle = $('.lr-site-banner-title .lr-site-content'); | |||||
$.each(navList, function (_index, _item) { | |||||
var $item = $('<span class="lr-herf-item">' + _item.F_Name + '</span>'); | |||||
$item[0].data = _item; | |||||
$bannerTitle.append($item); | |||||
if (_index != navList.length - 1) { | |||||
$item.addClass('site-menu-li'); | |||||
$bannerTitle.append('<span>></span>'); | |||||
} | |||||
}); | |||||
} | |||||
} | |||||
// 渲染底部菜单 | |||||
var renderBottomMenu = function (_bottomMenuList) { | |||||
var $list = $('.lr-site-footer-nav-menu'); | |||||
$list.html(''); | |||||
$.each(_bottomMenuList, function (_index, _item) { | |||||
var $item = $(' <li class="lr-site-footer-nav-li site-menu-li"><a href="javascript:void(0);" class="lr-site-footer-nav-item">' + _item.F_Name + '</a></li>'); | |||||
$item[0].data = _item; | |||||
$list.append($item); | |||||
if (menuId == _item.F_Id) { | |||||
$('.homePage').addClass('active'); | |||||
var $bannerTitle = $('.lr-site-banner-title .lr-site-content'); | |||||
var $item = $('<span class="lr-herf-item">首页</span>'); | |||||
$bannerTitle.append($item); | |||||
$bannerTitle.append('<span>></span><span class="lr-herf-item">' + _item.F_Name + '</span>'); | |||||
$item.on('click', function () { | |||||
window.location.href = $.rootUrl + '/Home/Index'; | |||||
}); | |||||
} | |||||
}); | |||||
} | |||||
if (!menuId) { | |||||
$('.homePage').addClass('active'); | |||||
var $bannerTitle = $('.lr-site-banner-title .lr-site-content'); | |||||
var $item = $('<span class="lr-herf-item">首页</span>'); | |||||
$bannerTitle.append($item); | |||||
$bannerTitle.append('<span>></span><span class="lr-herf-item">' + moduleName + '</span>'); | |||||
$item.on('click', function () { | |||||
window.location.href = $.rootUrl + '/Home/Index'; | |||||
}); | |||||
} | |||||
var formatDate = function (v, format) { | |||||
if (!v) return ""; | |||||
var d = v; | |||||
if (typeof v === 'string') { | |||||
if (v.indexOf("/Date(") > -1) | |||||
d = new Date(parseInt(v.replace("/Date(", "").replace(")/", ""), 10)); | |||||
else | |||||
d = new Date(Date.parse(v.replace(/-/g, "/").replace("T", " ").split(".")[0]));//.split(".")[0] 用来处理出现毫秒的情况,截取掉.xxx,否则会出错 | |||||
} | |||||
var o = { | |||||
"M+": d.getMonth() + 1, //month | |||||
"d+": d.getDate(), //day | |||||
"h+": d.getHours(), //hour | |||||
"m+": d.getMinutes(), //minute | |||||
"s+": d.getSeconds(), //second | |||||
"q+": Math.floor((d.getMonth() + 3) / 3), //quarter | |||||
"S": d.getMilliseconds() //millisecond | |||||
}; | |||||
if (/(y+)/.test(format)) { | |||||
format = format.replace(RegExp.$1, (d.getFullYear() + "").substr(4 - RegExp.$1.length)); | |||||
} | |||||
for (var k in o) { | |||||
if (new RegExp("(" + k + ")").test(format)) { | |||||
format = format.replace(RegExp.$1, RegExp.$1.length == 1 ? o[k] : ("00" + o[k]).substr(("" + o[k]).length)); | |||||
} | |||||
} | |||||
return format; | |||||
}; | |||||
// 获取页面公共部分数据 | |||||
httpGet($.rootUrl + '/Home/GetAllList', function (res) { | |||||
var topMenuList = {}; | |||||
var bottomMenuList = []; | |||||
if (res && res.code == 200) { | |||||
$.each(res.data, function (_index, _item) { | |||||
switch (_item.F_Type) { | |||||
case '1':// 顶部文字 | |||||
$('#lr_site_top_text').text(_item.F_Name); | |||||
break; | |||||
case '2':// 底部文字 | |||||
$('.lr-site-bottom').text(_item.F_Name); | |||||
break; | |||||
case '3':// 底部地址 | |||||
$('.lr-site-contactInfo').text(_item.F_Name); | |||||
break; | |||||
case '6':// 顶部菜单 | |||||
topMenuList[_item.F_ParentId] = topMenuList[_item.F_ParentId] || []; | |||||
topMenuList[_item.F_ParentId].push(_item); | |||||
break; | |||||
case '7':// 底部菜单 | |||||
bottomMenuList.push(_item); | |||||
break; | |||||
case '11': | |||||
$('.lr-site-footer-wechat .text').text(_item.F_Name); | |||||
break; | |||||
} | |||||
}); | |||||
renderTopMenu(topMenuList); | |||||
renderBottomMenu(bottomMenuList); | |||||
} | |||||
}); | |||||
function loadPage(pageIndex) { | |||||
var pagination = { | |||||
rows: 10, // 每页行数 | |||||
page: pageIndex, // 当前页 | |||||
sidx: 'F_PushDate', // 排序列 | |||||
sord: 'DESC', // 排序类型 | |||||
records: 0, // 总记录数 | |||||
total: 0 // 总页数 | |||||
}; | |||||
httpGet($.rootUrl + '/Home/GetArticlePageList?pagination=' + JSON.stringify(pagination) + '&queryJson=' + JSON.stringify({ F_Category: activeItem.category }), function (res) { | |||||
var $list = $('#lr_body_cotent'); | |||||
$list.html(''); | |||||
if (res && res.code == 200) { | |||||
var data = res.data; | |||||
if (pageType == '1') { | |||||
$.each(data.rows, function (_index, _item) { | |||||
var $item = $('<div class="lr-site-body-list-item lr-site-article-list-item">\ | |||||
<div class="text">' + _item.F_Title + '</div>\ | |||||
<div class="date">' + formatDate(_item.F_PushDate, 'yyyy-MM-dd') + '</div>\ | |||||
</div>'); | |||||
$item[0].data = _item.F_Id; | |||||
$list.append($item); | |||||
}); | |||||
} | |||||
else { | |||||
$.each(data.rows, function (_index, _item) { | |||||
var $item = $('<div class="col-md-4 col-sm-6 lr-site-img-item lr-site-article-list-item">\ | |||||
<div class="lr-site-img-content2">\ | |||||
<img class="img" src="' + top.$.rootUrl + '/Home/GetArticleImg?keyValue=' + _item.F_Id + '" />\ | |||||
<div class="text" title="' + _item.F_Title + '" >' + _item.F_Title + '</div>\ | |||||
</div>\ | |||||
</div>'); | |||||
$item[0].data = _item.F_Id; | |||||
$list.append($item); | |||||
}); | |||||
} | |||||
resetPage(data); | |||||
} | |||||
}); | |||||
} | |||||
//重置分页(跳转分页) | |||||
function resetPage(data) { | |||||
laypage({ | |||||
cont: "lr_page", //容器。值支持id名、原生dom对象,jquery对象。【如该容器为】:<div id="page1"></div> | |||||
pages: data.total, //通过后台拿到的总页数 | |||||
curr: data.page, //当前页 | |||||
groups: 5, //连续显示分页数 | |||||
skip: true, //是否开启跳页 | |||||
first: '首页', //若不显示,设置false即可 | |||||
last: '尾页', //若不显示,设置false即可 | |||||
jump: function (obj, first) { //触发分页后的回调 | |||||
if (!first) { //点击跳页触发函数自身,并传递当前页:obj.curr | |||||
loadPage(obj.curr); | |||||
} | |||||
} | |||||
}); | |||||
} | |||||
$('.lr-site-body-container').on('click', '.lr-site-title-item', function () { | |||||
var $this = $(this); | |||||
if (!$this.hasClass('active')) { | |||||
$this.parent().find('.active').removeClass('active'); | |||||
$this.addClass('active'); | |||||
var data = $this[0].data; | |||||
$('.right-title').text(data.name); | |||||
activeItem = data; | |||||
if (pageType == '3') { | |||||
httpGet($.rootUrl + '/Home/GetArticle?keyValue=' + activeItem.article, function (res) { | |||||
if (res && res.code == 200) { | |||||
var $list = $('#lr_body_cotent'); | |||||
// 图片地址切换 | |||||
var _content = res.data.F_Content.replace(/\/ueditor\/upload\/image/g, $.rootUrl + '/Home/GetUeditorImg?id='); | |||||
$list.html(_content); | |||||
} | |||||
}); | |||||
} | |||||
else { | |||||
loadPage(1); | |||||
} | |||||
} | |||||
}); | |||||
// 获取具体页面数据 | |||||
httpGet($.rootUrl + '/Home/GetPageData?keyValue=' + pageId, function (res) { | |||||
if (res && res.code == 200) { | |||||
var data = res.data; | |||||
var shceme = JSON.parse(data.F_Scheme); | |||||
var $container = $('.lr-site-body-container'); | |||||
var $left = $('<div class="lr-site-body-left">\ | |||||
<div class="lr-site-title">' + shceme.title + '</div>\ | |||||
<div class="lr-site-body-cotent"></div>\ | |||||
</div>'); | |||||
var $leftContent = $left.find('.lr-site-body-cotent'); | |||||
var $firstItem = null; | |||||
$.each(shceme.list, function (_index, _item) { | |||||
var $item = $('<div class="lr-site-title-item">' + _item.name + '</div>'); | |||||
$item[0].data = _item; | |||||
$leftContent.append($item); | |||||
if (_index == 0) { | |||||
$firstItem = $item; | |||||
} | |||||
}); | |||||
$container.append($left); | |||||
pageType = data.F_Type; | |||||
switch (data.F_Type) { | |||||
case '1': // 文章列表 | |||||
$container.append('<div class="lr-site-body-right">\ | |||||
<div class="lr-site-title right-title">未选择分类项</div>\ | |||||
<div class="lr-site-body-cotent">\ | |||||
<div class="lr-site-body-list" id="lr_body_cotent">\ | |||||
</div>\ | |||||
<div class="lr-site-body-page" id="lr_page"></div>\ | |||||
</div>\ | |||||
</div>'); | |||||
break; | |||||
case '2': // 图片列表 | |||||
$container.append('<div class="lr-site-body-right">\ | |||||
<div class="lr-site-title right-title">未选择分类项</div>\ | |||||
<div class="lr-site-body-cotent">\ | |||||
<div class="row" id="lr_body_cotent">\ | |||||
</div>\ | |||||
<div class="lr-site-body-page" id="lr_page"></div>\ | |||||
</div>\ | |||||
</div>'); | |||||
break; | |||||
case '3': // 详细列表 | |||||
$container.append('<div class="lr-site-body-right">\ | |||||
<div class="lr-site-title right-title">未选择分类项</div>\ | |||||
<div class="lr-site-body-cotent">\ | |||||
<div class="lr-site-body-list" id="lr_body_cotent">\ | |||||
</div>\ | |||||
</div>\ | |||||
</div>'); | |||||
break; | |||||
} | |||||
if ($firstItem) { | |||||
$firstItem.trigger('click'); | |||||
$firstItem = null; | |||||
} | |||||
} | |||||
}); | |||||
}); |
@@ -0,0 +1,125 @@ | |||||
.lr-site-body-right { | |||||
position: relative; | |||||
width: 100%; | |||||
padding-top: 50px; | |||||
background: #FFFFFF; | |||||
box-shadow: 0 2px 4px 0 rgba(226,226,226,0.44); | |||||
} | |||||
.lr-site-body-right .lr-site-body-cotent { | |||||
position: relative; | |||||
width: 100%; | |||||
min-height: 500px; | |||||
border: 1px dashed #fff; | |||||
cursor: pointer; | |||||
overflow-x: hidden; | |||||
} | |||||
.lr-site-body-page { | |||||
text-align: center; | |||||
position: relative; | |||||
width: 100%; | |||||
} | |||||
.laypage_main a, .laypage_main input, .laypage_main span { | |||||
line-height: 24px !important; | |||||
} | |||||
.laypage_main button { | |||||
line-height: 26px !important; | |||||
} | |||||
.lr-site-body-right .lr-site-body-cotent { | |||||
padding-top: 10px; | |||||
} | |||||
.lr-site-body-list { | |||||
position: relative; | |||||
width: 100%; | |||||
padding: 20px; | |||||
} | |||||
.lr-site-body-list-item { | |||||
position: relative; | |||||
width: 100%; | |||||
height: 60px; | |||||
line-height: 60px; | |||||
background-color: #fff; | |||||
padding: 0 90px 0 20px; | |||||
font-size: 16px; | |||||
color: #333333; | |||||
cursor: pointer; | |||||
} | |||||
.lr-site-body-list-item:nth-child(odd) { | |||||
background-color: #FAFAFA; | |||||
} | |||||
.lr-site-body-list-item .text { | |||||
position: relative; | |||||
width: 100%; | |||||
height: 100%; | |||||
overflow: hidden; | |||||
white-space: nowrap; | |||||
text-overflow: ellipsis; | |||||
} | |||||
.lr-site-body-list-item .date { | |||||
position: absolute; | |||||
top: 0; | |||||
right: 0; | |||||
width: 90px; | |||||
height: 100%; | |||||
overflow: hidden; | |||||
white-space: nowrap; | |||||
text-overflow: ellipsis; | |||||
} | |||||
#lr_body_cotent { | |||||
min-height: 640px; | |||||
} | |||||
/*图片列表*/ | |||||
.lr-site-img-item { | |||||
position: relative; | |||||
padding: 10px; | |||||
} | |||||
.lr-site-img-content2 { | |||||
padding-bottom: 80px; | |||||
cursor: pointer; | |||||
position: relative; | |||||
width: 100%; | |||||
border: 1px solid #E5E5E5; | |||||
} | |||||
.lr-site-img-content2 .img { | |||||
width: 100%; | |||||
height: 160px; | |||||
} | |||||
.lr-site-img-item .text { | |||||
position: absolute; | |||||
bottom: 0; | |||||
left: 0; | |||||
width: 100%; | |||||
height: 80px; | |||||
line-height: 80px; | |||||
text-align: center; | |||||
font-size: 16px; | |||||
color: #333333; | |||||
overflow: hidden; | |||||
white-space: nowrap; | |||||
text-overflow: ellipsis; | |||||
} | |||||
.row { | |||||
padding: 10px; | |||||
} |
@@ -0,0 +1,29 @@ | |||||
.lr-site-body { | |||||
position: relative; | |||||
background-color: #f1f1f1; | |||||
padding: 40px 0; | |||||
width: 100%; | |||||
} | |||||
.lr-site-body-container { | |||||
position: relative; | |||||
min-height: 800px; | |||||
padding: 60px; | |||||
padding-top:30px; | |||||
width: 100%; | |||||
max-width: 990px; | |||||
background-color: #fff; | |||||
margin: auto; | |||||
border-radius: 5px; | |||||
overflow:hidden; | |||||
} | |||||
.lr-site-body-container .title { | |||||
margin-bottom: 14px; | |||||
} | |||||
.lr-site-body-container .title .list { | |||||
border-bottom: 1px solid #f1f1f1; | |||||
} | |||||
.lr-site-body-container .title p { | |||||
font-size: 24px; | |||||
color: #333; | |||||
margin-bottom:14px; | |||||
} |
@@ -0,0 +1,287 @@ | |||||
body { | |||||
background-color: #fff !important; | |||||
overflow-y: auto; | |||||
} | |||||
.lr-site-content { | |||||
position: relative; | |||||
margin: auto; | |||||
height: 100%; | |||||
max-width: 990px; | |||||
width: 100%; | |||||
} | |||||
/**头部*/ | |||||
.lr-site-head { | |||||
position: relative; | |||||
width: 100%; | |||||
height: 40px; | |||||
background-color: #3285ED; | |||||
} | |||||
.lr-site-head .lr-site-content { | |||||
line-height: 40px; | |||||
font-size: 12px; | |||||
color: #D0E1F7; | |||||
cursor: pointer; | |||||
} | |||||
/*菜单导航*/ | |||||
.lr-site-nav { | |||||
position: relative; | |||||
width: 100%; | |||||
height: 100px; | |||||
background-color: #fff; | |||||
} | |||||
.lr-site-logo-container { | |||||
position: absolute; | |||||
width: 340px; | |||||
height: 100px; | |||||
line-height: 100px; | |||||
top: 0; | |||||
left: 0; | |||||
} | |||||
.lr-site-nav .lr-site-content { | |||||
padding-left: 340px; | |||||
} | |||||
.lr-site-nav-ul { | |||||
position: relative; | |||||
width: 100%; | |||||
height: 100px; | |||||
overflow: hidden; | |||||
} | |||||
.lr-site-nav-li { | |||||
position: relative; | |||||
width: 100px; | |||||
height: 100px; | |||||
float: left; | |||||
} | |||||
.lr-site-nav-item { | |||||
display: block; | |||||
position: relative; | |||||
height: 100%; | |||||
width: 100px; | |||||
font-size: 14px; | |||||
color: #333; | |||||
line-height: 100px; | |||||
text-align: center; | |||||
cursor: pointer; | |||||
} | |||||
.lr-site-nav-item .text { | |||||
position: relative; | |||||
} | |||||
.lr-site-nav-item .text:after { | |||||
content: ''; | |||||
position: absolute; | |||||
left: 8px; | |||||
right: 8px; | |||||
height: 2px; | |||||
background: #166EDB; | |||||
bottom: -4px; | |||||
display: none; | |||||
} | |||||
.lr-site-nav-li.active .lr-site-nav-item, | |||||
.lr-site-nav-li:hover .lr-site-nav-item, | |||||
.lr-site-nav-li.hover .lr-site-nav-item { | |||||
color: #166EDB; | |||||
} | |||||
.lr-site-nav-li:not(.active):hover .text:after, | |||||
.lr-site-nav-li:not(.active).hover .text:after { | |||||
display: block; | |||||
} | |||||
.lr-site-nav-li.active { | |||||
background: rgba(50,133,237,0.2); | |||||
font-size: 14px; | |||||
color: #166EDB; | |||||
position: relative; | |||||
} | |||||
.lr-site-nav-li.active:after { | |||||
content: ''; | |||||
position: absolute; | |||||
width: 100%; | |||||
height: 3px; | |||||
background: #166EDB; | |||||
bottom: 0; | |||||
left: 0; | |||||
display: block; | |||||
} | |||||
/*子菜单*/ | |||||
.lr-site-sub-nav-ul { | |||||
position: absolute; | |||||
top: 140px; | |||||
left: 0px; | |||||
height: 60px; | |||||
width: 100%; | |||||
background-color: #384453; | |||||
background-color: rgba(7, 22, 41, 0.8); | |||||
z-index: 1; | |||||
display:none; | |||||
} | |||||
.lr-site-sub-nav-menu { | |||||
display: flex; | |||||
justify-content: flex-start; | |||||
flex-wrap: nowrap; | |||||
flex-direction: row; | |||||
font-size: 16px; | |||||
line-height: 60px; | |||||
height: 60px; | |||||
color: #D6E7FB; | |||||
} | |||||
.lr-site-sub-nav-li { | |||||
display: block; | |||||
position: relative; | |||||
height: 60px; | |||||
padding: 0 38px; | |||||
cursor: pointer; | |||||
} | |||||
.lr-site-sub-nav-li:after { | |||||
content: ''; | |||||
position: absolute; | |||||
right: 0; | |||||
width: 1px; | |||||
background: #D6E7FB; | |||||
top: 24px; | |||||
bottom: 22px; | |||||
display: block; | |||||
} | |||||
.lr-site-sub-nav-li:last-of-type:after { | |||||
display: none; | |||||
} | |||||
.lr-site-sub-nav-item, .lr-site-sub-nav-item:hover { | |||||
color: #D6E7FB!important; | |||||
} | |||||
.lr-site-three-nav-menu { | |||||
background: #3A5776; | |||||
position: absolute; | |||||
top: 60px; | |||||
left: 50%; | |||||
margin-left: -52px; | |||||
display: none; | |||||
} | |||||
.lr-site-sub-nav-li:hover .lr-site-three-nav-menu { | |||||
display: block; | |||||
} | |||||
.lr-site-three-nav-li { | |||||
position: relative; | |||||
height: 30px; | |||||
width: 104px; | |||||
line-height: 29px; | |||||
text-align: center; | |||||
border-bottom: 1px solid #304B69; | |||||
} | |||||
.lr-site-three-nav-item { | |||||
font-size: 14px; | |||||
color: #FFFFFF !important; | |||||
} | |||||
/*底部*/ | |||||
.lr-site-footer { | |||||
position: relative; | |||||
width: 100%; | |||||
height: 220px; | |||||
background-color: #fff; | |||||
} | |||||
.lr-site-footer .lr-site-logo-container { | |||||
height: 220px; | |||||
line-height: 220px; | |||||
} | |||||
.lr-site-footer .lr-site-content { | |||||
padding: 0 120px 0 340px; | |||||
} | |||||
.lr-site-footer .lr-site-footer-nav { | |||||
position: relative; | |||||
width: 100%; | |||||
height: 100%; | |||||
padding-top: 86px; | |||||
} | |||||
.lr-site-footer-nav-menu { | |||||
display: flex; | |||||
justify-content: flex-start; | |||||
flex-wrap: nowrap; | |||||
flex-direction: row; | |||||
font-size: 14px; | |||||
line-height: 14px; | |||||
height: 14px; | |||||
} | |||||
.lr-site-footer-nav-li { | |||||
border-right: 1px solid #060505; | |||||
padding: 0 8px; | |||||
} | |||||
.lr-site-footer-nav-li:first-of-type { | |||||
padding-left: 0; | |||||
} | |||||
.lr-site-footer-nav-li:last-of-type { | |||||
padding-right: 0; | |||||
border-right: 0; | |||||
} | |||||
.lr-site-footer-nav-item { | |||||
display: block; | |||||
color: #060505; | |||||
cursor: pointer; | |||||
} | |||||
.lr-site-contactInfo { | |||||
position: relative; | |||||
font-size: 12px; | |||||
height: 14px; | |||||
line-height: 14px; | |||||
margin-top: 20px; | |||||
} | |||||
.lr-site-footer .lr-site-footer-wechat { | |||||
position: absolute; | |||||
top: 0; | |||||
right: 0; | |||||
width: 120px; | |||||
height: 100%; | |||||
padding-top: 36px; | |||||
} | |||||
.lr-site-footer-wechat .img { | |||||
height: 120px; | |||||
width: 120px; | |||||
} | |||||
.lr-site-footer-wechat .text { | |||||
text-align: center; | |||||
margin-top: 10px; | |||||
} | |||||
.lr-site-bottom { | |||||
position: relative; | |||||
width: 100%; | |||||
height: 60px; | |||||
line-height: 60px; | |||||
background: #908F8D; | |||||
text-align: center; | |||||
font-size: 14px; | |||||
color: #FFF; | |||||
} |
@@ -0,0 +1,30 @@ | |||||
.lr-site-img-item { | |||||
position:relative; | |||||
padding:10px; | |||||
} | |||||
.lr-site-img-content2 { | |||||
padding-bottom: 80px; | |||||
cursor: pointer; | |||||
position: relative; | |||||
width: 100%; | |||||
border: 1px solid #E5E5E5; | |||||
} | |||||
.lr-site-img-content2 .img { | |||||
width: 100%; | |||||
height:160px; | |||||
} | |||||
.lr-site-img-item .text { | |||||
position: absolute; | |||||
bottom: 0; | |||||
left: 0; | |||||
width: 100%; | |||||
height: 80px; | |||||
line-height: 80px; | |||||
text-align: center; | |||||
font-size: 16px; | |||||
color: #333333; | |||||
} | |||||
.row { | |||||
padding:10px; | |||||
} |
@@ -0,0 +1,375 @@ | |||||
/*banner图*/ | |||||
.lr-site-banner { | |||||
position: relative; | |||||
width: 100%; | |||||
height: 480px; | |||||
background-color: #fff; | |||||
} | |||||
.lr-site-banner-default { | |||||
position: relative; | |||||
width: 100%; | |||||
height: 100%; | |||||
} | |||||
.lr-site-banner-default .img { | |||||
width: 100%; | |||||
height: 100%; | |||||
} | |||||
.lr-site-banner-default .title { | |||||
position: absolute; | |||||
top: 40px; | |||||
left: 50%; | |||||
margin-left: -100px; | |||||
font-size: 20px; | |||||
color: #333; | |||||
} | |||||
.lr-site-banner-swiper-container { | |||||
display: none; | |||||
} | |||||
.lr-site-banner-swiper-container .swiper-slide { | |||||
text-align: center; | |||||
} | |||||
.lr-site-banner-swiper-container .img, | |||||
.lr-site-banner-default .img { | |||||
height: 480px; | |||||
width:100%; | |||||
} | |||||
.swiper-container-horizontal > .swiper-pagination-bullets, .swiper-pagination-custom, .swiper-pagination-fraction { | |||||
bottom: 20px; | |||||
} | |||||
/*中间模块显示**/ | |||||
.lr-site-modules { | |||||
position: relative; | |||||
height: auto; | |||||
width: 100%; | |||||
max-width: 1010px; | |||||
background-color: #fcfcfc; | |||||
margin: auto; | |||||
} | |||||
.lr-site-modules:before, .lr-site-modules:after { | |||||
display: table; | |||||
content: " "; | |||||
} | |||||
.lr-site-modules:after { | |||||
clear: both; | |||||
} | |||||
.lr-site-module { | |||||
position: relative; | |||||
padding: 10px; | |||||
float: left; | |||||
} | |||||
.lr-site-box { | |||||
position: relative; | |||||
height: 100%; | |||||
width: 100%; | |||||
background-color: #fff; | |||||
box-shadow: 0 2px 4px 0 #F3F3F3; | |||||
} | |||||
/*风格1模块*/ | |||||
.lr-site-module.module1 { | |||||
height: 67px; | |||||
width: 100%; | |||||
} | |||||
.lr-site-module.module1 .lr-site-box { | |||||
box-shadow: 0 2px 4px 0 #DADADA; | |||||
padding-left: 139px; | |||||
padding-right: 50px; | |||||
} | |||||
.lr-site-module.module1 .lr-site-box .title { | |||||
position: absolute; | |||||
top: 0; | |||||
left: 0; | |||||
height: 100%; | |||||
line-height: 47px; | |||||
width: 129px; | |||||
background: #3285ED; | |||||
color: #fff; | |||||
text-align: center; | |||||
font-size: 16px; | |||||
} | |||||
.lr-site-module.module1 .lr-site-box .fa { | |||||
margin-right: 6px; | |||||
font-size: 18px; | |||||
} | |||||
.lr-site-module.module1 .lr-site-box .arrow { | |||||
position: absolute; | |||||
right: -7px; | |||||
top: 50%; | |||||
margin-top: -4px; | |||||
width: 0; | |||||
height: 0; | |||||
border: 4px solid transparent; | |||||
border-left: 4px solid #3285ED; | |||||
} | |||||
.lr-site-module.module1 .lr-site-box .content { | |||||
position: relative; | |||||
width: 100%; | |||||
height: 100%; | |||||
line-height: 47px; | |||||
font-size: 16px; | |||||
color: #333333; | |||||
overflow: hidden; | |||||
white-space: nowrap; | |||||
text-overflow: ellipsis; | |||||
} | |||||
.lr-site-module.module1 .lr-site-box .content { | |||||
position: relative; | |||||
width: 100%; | |||||
height: 100%; | |||||
} | |||||
.module1 .lr-text-item { | |||||
display: block; | |||||
position: relative; | |||||
width: 100%; | |||||
overflow: hidden; | |||||
white-space: nowrap; | |||||
text-overflow: ellipsis; | |||||
color: #333333; | |||||
line-height: 47px; | |||||
font-size: 16px; | |||||
} | |||||
.module1 .lr-text-item:hover { | |||||
color: #166EDB; | |||||
} | |||||
.lr-site-more { | |||||
position: absolute; | |||||
top: 0; | |||||
right: 0; | |||||
width: 50px; | |||||
height: 47px; | |||||
line-height: 47px; | |||||
font-size: 16px; | |||||
color: #333333; | |||||
cursor: pointer; | |||||
} | |||||
/*风格2模块*/ | |||||
.lr-site-title { | |||||
position: absolute; | |||||
top: 0; | |||||
left: 0; | |||||
height: 50px; | |||||
line-height: 49px; | |||||
width: 100%; | |||||
border-bottom: 1px solid #e5e5e5; | |||||
font-size: 16px; | |||||
color: #333; | |||||
padding-left: 18px; | |||||
} | |||||
.lr-site-title:before { | |||||
content: ''; | |||||
position: absolute; | |||||
width: 8px; | |||||
height: 30px; | |||||
background: #2E81EA; | |||||
left: 0; | |||||
top: 10px; | |||||
} | |||||
.lr-site-title .lr-site-more { | |||||
height: 49px; | |||||
line-height: 49px; | |||||
} | |||||
.module2 .lr-site-box, | |||||
.module3 .lr-site-box, | |||||
.module4 .lr-site-box, | |||||
.module5 .lr-site-box { | |||||
padding-top: 50px; | |||||
} | |||||
.module2, .module3, .module5 { | |||||
height: 330px; | |||||
} | |||||
.lr-site-body { | |||||
position:relative; | |||||
height:100%; | |||||
width:100%; | |||||
} | |||||
.module2 .lr-site-body { | |||||
padding-left: 340px; | |||||
} | |||||
.lr-site-module-pic { | |||||
position: absolute; | |||||
top: 0; | |||||
left: 0; | |||||
height: 100%; | |||||
width: 340px; | |||||
padding: 10px; | |||||
} | |||||
.lr-site-module-swiper-container, .lr-site-module-swiper-container .img{ | |||||
position: relative; | |||||
height: 100%; | |||||
width: 100%; | |||||
} | |||||
.lr-site-module-swiper-container .swiper-pagination-bullet { | |||||
height:10px; | |||||
width:10px; | |||||
background-color:#e4e4e4; | |||||
opacity:1; | |||||
border-radius:0; | |||||
} | |||||
.lr-site-module-swiper-container .swiper-pagination-bullet-active { | |||||
background-color: #2E81EA; | |||||
} | |||||
.lr-site-module-swiper-container .swiper-pagination { | |||||
bottom: 8px; | |||||
right: 8px; | |||||
width: auto !important; | |||||
text-align:right; | |||||
} | |||||
.lr-site-module-list { | |||||
position: relative; | |||||
height: 100%; | |||||
width: 100%; | |||||
padding:10px 10px 0; | |||||
} | |||||
.lr-site-module-item { | |||||
position: relative; | |||||
height: 40px; | |||||
line-height:39px; | |||||
width: 100%; | |||||
border-bottom: 1px dashed #E5E5E5; | |||||
font-size: 14px; | |||||
color: #333; | |||||
padding-right:85px; | |||||
cursor:pointer; | |||||
} | |||||
.lr-site-module-item:hover { | |||||
color: #166EDB; | |||||
} | |||||
.lr-site-module-item .date{ | |||||
position: absolute; | |||||
height: 39px; | |||||
width: 80px; | |||||
top:0; | |||||
right:0; | |||||
} | |||||
.lr-site-module-item .text { | |||||
position: relative; | |||||
height: 100%; | |||||
width: 100%; | |||||
overflow: hidden; | |||||
white-space: nowrap; | |||||
text-overflow: ellipsis; | |||||
} | |||||
/*模块3*/ | |||||
.lr-site-tabs { | |||||
position: absolute; | |||||
height: 50px; | |||||
line-height:49px; | |||||
width: 100%; | |||||
border-bottom: 1px solid #1A71DE; | |||||
top: 0; | |||||
left: 0; | |||||
} | |||||
.lr-site-tab { | |||||
position: relative; | |||||
text-align: center; | |||||
float: left; | |||||
width: 33.33%; | |||||
font-size: 16px; | |||||
color: #333; | |||||
cursor: pointer; | |||||
} | |||||
.lr-site-tab.active, .lr-site-tab:hover { | |||||
color: #fff; | |||||
background-color: #3285ED; | |||||
} | |||||
.lr-site-tab-content { | |||||
position:relative; | |||||
width:100%; | |||||
height:100%; | |||||
display:none; | |||||
padding-top:10px; | |||||
} | |||||
.lr-site-tab-content.active { | |||||
display: block; | |||||
} | |||||
.lr-site-tab-content-item { | |||||
position: relative; | |||||
height: 40px; | |||||
line-height: 39px; | |||||
width: 100%; | |||||
border-bottom: 1px dashed #E5E5E5; | |||||
font-size: 14px; | |||||
color: #333; | |||||
overflow: hidden; | |||||
white-space: nowrap; | |||||
text-overflow: ellipsis; | |||||
padding: 0 10px; | |||||
cursor: pointer; | |||||
} | |||||
.lr-site-tab-content-item:hover { | |||||
color: #166EDB; | |||||
} | |||||
/*模块4*/ | |||||
.module4 { | |||||
height:251px; | |||||
} | |||||
.lr-site-img-item { | |||||
position:relative; | |||||
height:100%; | |||||
width:25%; | |||||
float:left; | |||||
padding:10px; | |||||
} | |||||
.lr-site-img-item-content, .lr-site-img-item-content .img { | |||||
position: relative; | |||||
height: 100%; | |||||
width: 100%; | |||||
cursor: pointer; | |||||
} | |||||
.lr-site-img-item-content:hover { | |||||
transform: translateY(-10px); | |||||
} | |||||
.lr-site-img-item-content .text { | |||||
position: absolute; | |||||
left: 0; | |||||
bottom: 0; | |||||
height: 30px; | |||||
line-height: 30px; | |||||
width: 100%; | |||||
font-size: 12px; | |||||
background: #282b2a; | |||||
background: rgba(0,0,0,0.60); | |||||
color: #FFF; | |||||
padding-left:10px; | |||||
} | |||||
/*模块5*/ | |||||
.module5 .lr-site-body { | |||||
padding-top:150px; | |||||
cursor:pointer; | |||||
} | |||||
.lr-site-article-pic { | |||||
position: absolute; | |||||
height: 150px; | |||||
width: 100%; | |||||
top: 0; | |||||
left: 0; | |||||
padding:10px; | |||||
} | |||||
.lr-site-article-pic .img { | |||||
height:100%; | |||||
width:100%; | |||||
} | |||||
.module5 .text-content { | |||||
position: relative; | |||||
height: 100%; | |||||
width: 100%; | |||||
padding: 0 10px 10px 10px; | |||||
overflow: hidden; | |||||
} | |||||
.module5 .text { | |||||
position: relative; | |||||
height: 100%; | |||||
width: 100%; | |||||
font-size: 14px; | |||||
color: #333333; | |||||
overflow: hidden; | |||||
} | |||||
.module5 .text:hover { | |||||
color: #166EDB; | |||||
} | |||||
@@ -0,0 +1,83 @@ | |||||
.lr-site-body-right .lr-site-body-cotent { | |||||
padding-top: 260px; | |||||
} | |||||
.lr-site-swiper-container { | |||||
position: relative; | |||||
width: 100%; | |||||
height: 100%; | |||||
} | |||||
.lr-site-body-img { | |||||
position: absolute; | |||||
width: 100%; | |||||
height: 260px; | |||||
padding: 20px 20px 0 20px; | |||||
top: 0; | |||||
left: 0; | |||||
} | |||||
.lr-site-body-img .img { | |||||
position: relative; | |||||
width: 100%; | |||||
height: 100%; | |||||
} | |||||
.lr-site-swiper-container .swiper-pagination-bullet { | |||||
height: 10px; | |||||
width: 10px; | |||||
background-color: #e4e4e4; | |||||
opacity: 1; | |||||
border-radius: 0; | |||||
} | |||||
.lr-site-swiper-container .swiper-pagination-bullet-active { | |||||
background-color: #2E81EA; | |||||
} | |||||
.lr-site-swiper-container .swiper-pagination { | |||||
bottom: 8px; | |||||
right: 8px; | |||||
width: auto !important; | |||||
text-align: right; | |||||
} | |||||
.lr-site-body-list { | |||||
position: relative; | |||||
width: 100%; | |||||
padding: 20px; | |||||
} | |||||
.lr-site-body-list-item { | |||||
position: relative; | |||||
width: 100%; | |||||
height: 60px; | |||||
line-height: 60px; | |||||
background-color: #fff; | |||||
padding: 0 90px 0 20px; | |||||
font-size: 16px; | |||||
color: #333333; | |||||
cursor:pointer; | |||||
} | |||||
.lr-site-body-list-item:nth-child(odd) { | |||||
background-color: #FAFAFA; | |||||
} | |||||
.lr-site-body-list-item .text { | |||||
position: relative; | |||||
width: 100%; | |||||
height: 100%; | |||||
overflow: hidden; | |||||
white-space: nowrap; | |||||
text-overflow: ellipsis; | |||||
} | |||||
.lr-site-body-list-item .date { | |||||
position: absolute; | |||||
top: 0; | |||||
right: 0; | |||||
width: 90px; | |||||
height: 100%; | |||||
overflow: hidden; | |||||
white-space: nowrap; | |||||
text-overflow: ellipsis; | |||||
} |
@@ -0,0 +1,155 @@ | |||||
.lr-site-banner { | |||||
position: relative; | |||||
width: 100%; | |||||
height: 350px; | |||||
background-color: #fff; | |||||
} | |||||
.lr-site-banner-default { | |||||
position: relative; | |||||
width: 100%; | |||||
height: 100%; | |||||
} | |||||
.lr-site-banner-default .img { | |||||
width: 100%; | |||||
height: 100%; | |||||
} | |||||
.lr-site-banner-default .title { | |||||
position: absolute; | |||||
top: 26px; | |||||
left: 50%; | |||||
margin-left: -100px; | |||||
font-size: 20px; | |||||
color: #333; | |||||
} | |||||
.lr-site-banner-swiper-container { | |||||
display: none; | |||||
} | |||||
.swiper-container-horizontal > .swiper-pagination-bullets, .swiper-pagination-custom, .swiper-pagination-fraction { | |||||
bottom: 20px; | |||||
} | |||||
.lr-site-banner-title { | |||||
position: absolute; | |||||
bottom: 0; | |||||
left: 0; | |||||
width: 100%; | |||||
height: 60px; | |||||
background-color: #040404; | |||||
opacity: 0.8; | |||||
filter: alpha(opacity=80); | |||||
line-height:60px; | |||||
font-size:14px; | |||||
color:#fff; | |||||
} | |||||
.lr-site-banner-title .lr-herf-item { | |||||
padding:0 5px; | |||||
cursor:pointer; | |||||
} | |||||
.lr-site-banner-title i { | |||||
margin-right:10px; | |||||
} | |||||
.lr-site-body { | |||||
position:relative; | |||||
width:100%; | |||||
min-height:600px; | |||||
background-color:#fcfcfc; | |||||
padding-top:65px; | |||||
} | |||||
.lr-site-body-container { | |||||
position: relative; | |||||
width: 100%; | |||||
max-width: 990px; | |||||
height: auto; | |||||
margin: auto; | |||||
padding-left:250px; | |||||
} | |||||
.lr-site-title { | |||||
position: absolute; | |||||
top: 0; | |||||
left: 0; | |||||
height: 50px; | |||||
line-height: 49px; | |||||
width: 100%; | |||||
border-bottom: 1px solid #e5e5e5; | |||||
font-size: 16px; | |||||
color: #333; | |||||
padding-left: 18px; | |||||
} | |||||
.lr-site-title:before { | |||||
content: ''; | |||||
position: absolute; | |||||
width: 8px; | |||||
height: 30px; | |||||
background: #2E81EA; | |||||
left: 0; | |||||
top: 10px; | |||||
} | |||||
.lr-site-body-left { | |||||
position: absolute; | |||||
top: 0; | |||||
left: 0; | |||||
width: 240px; | |||||
background: #FFFFFF; | |||||
box-shadow: 0 2px 4px 0 rgba(226,226,226,0.44); | |||||
padding-top:50px; | |||||
} | |||||
.lr-site-body-left .lr-site-body-cotent { | |||||
position:relative; | |||||
width:100%; | |||||
padding:20px; | |||||
padding-bottom:10px; | |||||
} | |||||
.lr-site-title-item { | |||||
position: relative; | |||||
margin-bottom: 10px; | |||||
width: 100%; | |||||
height: 40px; | |||||
line-height: 38px; | |||||
border: 1px solid #E5E5E5; | |||||
padding-left: 10px; | |||||
font-size: 14px; | |||||
color: #333333; | |||||
cursor:pointer; | |||||
} | |||||
.lr-site-title-item.active { | |||||
background: #D6E7FB; | |||||
border: 1px solid #2E81EA; | |||||
color: #2E81EA; | |||||
} | |||||
.lr-site-body-right { | |||||
position: relative; | |||||
width: 100%; | |||||
padding-top: 50px; | |||||
min-height: 500px; | |||||
background: #FFFFFF; | |||||
box-shadow: 0 2px 4px 0 rgba(226,226,226,0.44); | |||||
} | |||||
.lr-site-body-right .lr-site-body-cotent { | |||||
position: relative; | |||||
width: 100%; | |||||
} | |||||
.lr-site-body-page { | |||||
text-align: center; | |||||
position: relative; | |||||
width: 100%; | |||||
} | |||||
.laypage_main a, .laypage_main input, .laypage_main span { | |||||
line-height: 24px !important; | |||||
} | |||||
.laypage_main button { | |||||
line-height: 26px !important; | |||||
} |
@@ -0,0 +1,100 @@ | |||||
/* | |||||
* 版 本 Learun-ADMS V7.0.3 力软敏捷开发框架(http://www.learun.cn) | |||||
* Copyright (c) 2013-2018 上海力软信息技术有限公司 | |||||
* 创建人:力软-前端开发组 | |||||
* 日 期:2017.03.16 | |||||
* 描 述:前端通用样式表 | |||||
*/ | |||||
*, | |||||
*:before, | |||||
*:after { | |||||
-moz-box-sizing: border-box; | |||||
-webkit-box-sizing: border-box; | |||||
box-sizing: border-box; | |||||
} | |||||
::-webkit-scrollbar-track { | |||||
border-radius: 10px; | |||||
-webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0); | |||||
} | |||||
::-webkit-scrollbar-thumb { | |||||
background-color: rgba(0, 0, 0, 0.05); | |||||
border-radius: 10px; | |||||
-webkit-box-shadow: inset 1px 1px 0 rgba(0, 0, 0, .1); | |||||
} | |||||
::-webkit-scrollbar-thumb { | |||||
background-color: rgba(0, 0, 0, 0.2); | |||||
border-radius: 10px; | |||||
-webkit-box-shadow: inset 1px 1px 0 rgba(0, 0, 0, .1); | |||||
} | |||||
::-webkit-scrollbar { | |||||
width: 16px; | |||||
height: 16px; | |||||
} | |||||
::-webkit-scrollbar-track, | |||||
::-webkit-scrollbar-thumb { | |||||
border-radius: 999px; | |||||
border: 5px solid transparent; | |||||
} | |||||
::-webkit-scrollbar-track { | |||||
box-shadow: 1px 1px 5px rgba(144, 146, 152, 0.3) inset; | |||||
} | |||||
::-webkit-scrollbar-thumb { | |||||
min-height: 20px; | |||||
background-clip: content-box; | |||||
box-shadow: 0 0 0 5px rgba(144, 146, 152, 0.3) inset; | |||||
} | |||||
::-webkit-scrollbar-corner { | |||||
background: transparent; | |||||
} | |||||
html { | |||||
width: 100%; | |||||
height: 100%; | |||||
} | |||||
body { | |||||
margin: 0px; | |||||
padding: 0px; | |||||
width: 100%; | |||||
height: 100%; | |||||
font-family: PingFangSC-Regular,Microsoft YaHei,SimSun,Arial,Helvetica,Verdana,sans-serif !important; | |||||
color: #333; | |||||
font-size: 12px; | |||||
background-color: initial; | |||||
overflow: hidden; | |||||
} | |||||
ul,li { | |||||
list-style: none; | |||||
margin: 0px; | |||||
padding: 0px; | |||||
} | |||||
a { | |||||
color: #000000; | |||||
text-decoration: none; | |||||
} | |||||
a:hover { | |||||
color: #000000; | |||||
text-decoration: none; | |||||
} | |||||
a:focus { | |||||
outline: none; | |||||
-moz-outline: none; | |||||
color: #000000; | |||||
text-decoration: none; | |||||
} | |||||
.form-control[disabled], .form-control[readonly], fieldset[disabled] .form-control { | |||||
background-color: #fff; | |||||
opacity: 1; | |||||
} | |||||
.row { | |||||
margin:0; | |||||
} |
@@ -0,0 +1,198 @@ | |||||
using Learun.Application.Extention.PortalSiteManage; | |||||
using Learun.Util; | |||||
using System.Web.Mvc; | |||||
namespace Learun.Application.Website.Controllers | |||||
{ | |||||
/// <summary> | |||||
/// 版 本 Learun-ADMS V7.0.3 力软敏捷开发框架 | |||||
/// Copyright (c) 2013-2018 上海力软信息技术有限公司 | |||||
/// 创建人:力软-框架开发组 | |||||
/// 日 期:2018.12.25 | |||||
/// 描 述:主页控制器 | |||||
/// </summary> | |||||
public class HomeController : MvcControllerBase | |||||
{ | |||||
private HomeConfigIBLL homeConfigIBLL = new HomeConfigBLL(); | |||||
private ArticleIBLL articleIBLL = new ArticleBLL(); | |||||
private PageIBLL pageIBLL = new PageBLL(); | |||||
#region 视图功能 | |||||
/// <summary> | |||||
/// 首页面 | |||||
/// </summary> | |||||
/// <returns></returns> | |||||
[HttpGet] | |||||
public ActionResult Index() | |||||
{ | |||||
return View(); | |||||
} | |||||
/// <summary> | |||||
/// 子页面 | |||||
/// </summary> | |||||
/// <returns></returns> | |||||
[HttpGet] | |||||
public ActionResult ChildIndex() | |||||
{ | |||||
return View(); | |||||
} | |||||
/// <summary> | |||||
/// 列表页面 | |||||
/// </summary> | |||||
/// <returns></returns> | |||||
[HttpGet] | |||||
public ActionResult ListIndex() | |||||
{ | |||||
return View(); | |||||
} | |||||
/// <summary> | |||||
/// 图表页面 | |||||
/// </summary> | |||||
/// <returns></returns> | |||||
[HttpGet] | |||||
public ActionResult ImgListIndex() | |||||
{ | |||||
return View(); | |||||
} | |||||
/// <summary> | |||||
/// 详情页面 | |||||
/// </summary> | |||||
/// <returns></returns> | |||||
[HttpGet] | |||||
public ActionResult DetailIndex() | |||||
{ | |||||
return View(); | |||||
} | |||||
#endregion | |||||
#region 获取数据 | |||||
/// <summary> | |||||
/// 获取全部数据 | |||||
/// <summary> | |||||
/// <returns></returns> | |||||
[HttpGet] | |||||
public ActionResult GetAllList() | |||||
{ | |||||
var data = homeConfigIBLL.GetALLList(); | |||||
return Success(data); | |||||
} | |||||
/// <summary> | |||||
/// 获取数据 | |||||
/// <summary> | |||||
/// <returns></returns> | |||||
[HttpGet] | |||||
public ActionResult GetList(string type) | |||||
{ | |||||
var data = homeConfigIBLL.GetList(type); | |||||
return Success(data); | |||||
} | |||||
/// <summary> | |||||
/// 获取表单数据 | |||||
/// <param name="keyValue">主键</param> | |||||
/// <summary> | |||||
/// <returns></returns> | |||||
[HttpGet] | |||||
public ActionResult GetPageData(string keyValue) | |||||
{ | |||||
var data = pageIBLL.GetEntity(keyValue); | |||||
return Success(data); | |||||
} | |||||
#endregion | |||||
#region 扩展功能 | |||||
/// <summary> | |||||
/// 获取设置图片 | |||||
/// </summary> | |||||
/// <param name="type">类型</param> | |||||
/// <returns></returns> | |||||
[HttpGet] | |||||
public ActionResult GetImg(string type) | |||||
{ | |||||
homeConfigIBLL.GetImg(type); | |||||
return Success("获取成功。"); | |||||
} | |||||
/// <summary> | |||||
/// 获取设置图片 | |||||
/// </summary> | |||||
/// <param name="keyValue">主键</param> | |||||
/// <returns></returns> | |||||
[HttpGet] | |||||
public ActionResult GetImg2(string keyValue) | |||||
{ | |||||
homeConfigIBLL.GetImg2(keyValue); | |||||
return Success("获取成功。"); | |||||
} | |||||
/// <summary> | |||||
/// 获取设置图片 | |||||
/// </summary> | |||||
/// <param name="keyValue">主键</param> | |||||
/// <returns></returns> | |||||
[HttpGet] | |||||
public ActionResult GetArticleImg(string keyValue) | |||||
{ | |||||
articleIBLL.GetImg(keyValue); | |||||
return Success("获取成功。"); | |||||
} | |||||
/// <summary> | |||||
/// 获取表单数据 | |||||
/// <param name="keyValue">主键</param> | |||||
/// <summary> | |||||
/// <returns></returns> | |||||
[HttpGet] | |||||
public ActionResult GetArticle(string keyValue) | |||||
{ | |||||
var data = articleIBLL.GetEntity(keyValue); | |||||
return Success(data); | |||||
} | |||||
/// <summary> | |||||
/// 获取列表分页数据 | |||||
/// <param name="pagination">分页参数</param> | |||||
/// <summary> | |||||
/// <returns></returns> | |||||
[HttpGet] | |||||
public ActionResult GetArticlePageList(string pagination, string queryJson) | |||||
{ | |||||
Pagination paginationobj = pagination.ToObject<Pagination>(); | |||||
var data = articleIBLL.GetPageList(paginationobj, queryJson); | |||||
var jsonData = new | |||||
{ | |||||
rows = data, | |||||
total = paginationobj.total, | |||||
page = paginationobj.page, | |||||
records = paginationobj.records | |||||
}; | |||||
return Success(jsonData); | |||||
} | |||||
/// <summary> | |||||
/// 获取设置图片 | |||||
/// </summary> | |||||
/// <param name="keyValue">主键</param> | |||||
/// <returns></returns> | |||||
[HttpGet] | |||||
public ActionResult GetPageImg(string keyValue) | |||||
{ | |||||
pageIBLL.GetImg2(keyValue); | |||||
return Success("获取成功。"); | |||||
} | |||||
/// <summary> | |||||
/// 获取设置图片 | |||||
/// </summary> | |||||
/// <param name="keyValue">主键</param> | |||||
/// <returns></returns> | |||||
[HttpGet] | |||||
public ActionResult GetUeditorImg(string id) | |||||
{ | |||||
string path = Config.GetValue("imgPath")+ "/ueditor/upload/image"+ id; | |||||
path = System.Text.RegularExpressions.Regex.Replace(path, @"\s", ""); | |||||
if (FileDownHelper.FileExists(path)) | |||||
{ | |||||
FileDownHelper.DownLoadold(path, id.Split('/')[2]); | |||||
} | |||||
return Success("获取成功"); | |||||
} | |||||
#endregion | |||||
} | |||||
} |
@@ -0,0 +1 @@ | |||||
<%@ Application Codebehind="Global.asax.cs" Inherits="Learun.Application.Website.MvcApplication" Language="C#" %> |
@@ -0,0 +1,15 @@ | |||||
using System.Web.Mvc; | |||||
using System.Web.Routing; | |||||
namespace Learun.Application.Website | |||||
{ | |||||
public class MvcApplication : System.Web.HttpApplication | |||||
{ | |||||
protected void Application_Start() | |||||
{ | |||||
AreaRegistration.RegisterAllAreas(); | |||||
FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters); | |||||
RouteConfig.RegisterRoutes(RouteTable.Routes); | |||||
} | |||||
} | |||||
} |
@@ -0,0 +1,370 @@ | |||||
<?xml version="1.0" encoding="utf-8"?> | |||||
<Project ToolsVersion="15.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | |||||
<Import Project="..\packages\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.1.0.7\build\net45\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.props" Condition="Exists('..\packages\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.1.0.7\build\net45\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.props')" /> | |||||
<Import Project="..\packages\Microsoft.Net.Compilers.2.1.0\build\Microsoft.Net.Compilers.props" Condition="Exists('..\packages\Microsoft.Net.Compilers.2.1.0\build\Microsoft.Net.Compilers.props')" /> | |||||
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" /> | |||||
<PropertyGroup> | |||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> | |||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> | |||||
<ProductVersion> | |||||
</ProductVersion> | |||||
<SchemaVersion>2.0</SchemaVersion> | |||||
<ProjectGuid>{DBB22F9E-ED75-40EB-A091-717D42C65A9B}</ProjectGuid> | |||||
<ProjectTypeGuids>{349c5851-65df-11da-9384-00065b846f21};{fae04ec0-301f-11d3-bf4b-00c04f79efbc}</ProjectTypeGuids> | |||||
<OutputType>Library</OutputType> | |||||
<AppDesignerFolder>Properties</AppDesignerFolder> | |||||
<RootNamespace>Learun.Application.Website</RootNamespace> | |||||
<AssemblyName>Learun.Application.Website</AssemblyName> | |||||
<TargetFrameworkVersion>v4.6.1</TargetFrameworkVersion> | |||||
<MvcBuildViews>false</MvcBuildViews> | |||||
<UseIISExpress>true</UseIISExpress> | |||||
<Use64BitIISExpress /> | |||||
<IISExpressSSLPort /> | |||||
<IISExpressAnonymousAuthentication /> | |||||
<IISExpressWindowsAuthentication /> | |||||
<IISExpressUseClassicPipelineMode /> | |||||
<UseGlobalApplicationHostFile /> | |||||
<NuGetPackageImportStamp> | |||||
</NuGetPackageImportStamp> | |||||
<SccProjectName>Learun.Application.Website</SccProjectName> | |||||
<SccLocalPath>1~a7250b02-76e9-4d74-aa27-f5cdf7719296</SccLocalPath> | |||||
<SccAuxPath>http://123.57.209.16:8090/VaultService</SccAuxPath> | |||||
<SccProvider>SourceGear Vault Visual Studio 2005 Client:{1EA47954-8515-402d-82D9-B5C332120A8D}</SccProvider> | |||||
</PropertyGroup> | |||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> | |||||
<DebugSymbols>true</DebugSymbols> | |||||
<DebugType>full</DebugType> | |||||
<Optimize>false</Optimize> | |||||
<OutputPath>bin\</OutputPath> | |||||
<DefineConstants>DEBUG;TRACE</DefineConstants> | |||||
<ErrorReport>prompt</ErrorReport> | |||||
<WarningLevel>4</WarningLevel> | |||||
</PropertyGroup> | |||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> | |||||
<DebugSymbols>true</DebugSymbols> | |||||
<DebugType>pdbonly</DebugType> | |||||
<Optimize>true</Optimize> | |||||
<OutputPath>bin\</OutputPath> | |||||
<DefineConstants>TRACE</DefineConstants> | |||||
<ErrorReport>prompt</ErrorReport> | |||||
<WarningLevel>4</WarningLevel> | |||||
</PropertyGroup> | |||||
<ItemGroup> | |||||
<Reference Include="EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089, processorArchitecture=MSIL"> | |||||
<HintPath>..\packages\EntityFramework.6.2.0\lib\net45\EntityFramework.dll</HintPath> | |||||
</Reference> | |||||
<Reference Include="EntityFramework.SqlServer, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089, processorArchitecture=MSIL"> | |||||
<HintPath>..\packages\EntityFramework.6.2.0\lib\net45\EntityFramework.SqlServer.dll</HintPath> | |||||
</Reference> | |||||
<Reference Include="Microsoft.CodeDom.Providers.DotNetCompilerPlatform, Version=1.0.7.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL"> | |||||
<HintPath>..\packages\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.1.0.7\lib\net45\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.dll</HintPath> | |||||
</Reference> | |||||
<Reference Include="Microsoft.CSharp" /> | |||||
<Reference Include="Microsoft.Practices.ServiceLocation, Version=1.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL"> | |||||
<HintPath>..\packages\CommonServiceLocator.1.3\lib\portable-net4+sl5+netcore45+wpa81+wp8\Microsoft.Practices.ServiceLocation.dll</HintPath> | |||||
</Reference> | |||||
<Reference Include="Microsoft.Practices.Unity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=6d32ff45e0ccc69f, processorArchitecture=MSIL"> | |||||
<HintPath>..\packages\Unity.4.0.1\lib\net45\Microsoft.Practices.Unity.dll</HintPath> | |||||
</Reference> | |||||
<Reference Include="Microsoft.Practices.Unity.Configuration, Version=4.0.0.0, Culture=neutral, PublicKeyToken=6d32ff45e0ccc69f, processorArchitecture=MSIL"> | |||||
<HintPath>..\packages\Unity.4.0.1\lib\net45\Microsoft.Practices.Unity.Configuration.dll</HintPath> | |||||
</Reference> | |||||
<Reference Include="Microsoft.Practices.Unity.RegistrationByConvention, Version=4.0.0.0, Culture=neutral, PublicKeyToken=6d32ff45e0ccc69f, processorArchitecture=MSIL"> | |||||
<HintPath>..\packages\Unity.4.0.1\lib\net45\Microsoft.Practices.Unity.RegistrationByConvention.dll</HintPath> | |||||
</Reference> | |||||
<Reference Include="MySql.Data, Version=6.9.9.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d, processorArchitecture=MSIL"> | |||||
<HintPath>..\packages\MySql.Data.6.9.9\lib\net45\MySql.Data.dll</HintPath> | |||||
</Reference> | |||||
<Reference Include="Newtonsoft.Json, Version=12.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL"> | |||||
<HintPath>..\packages\Newtonsoft.Json.12.0.1\lib\net45\Newtonsoft.Json.dll</HintPath> | |||||
</Reference> | |||||
<Reference Include="Oracle.ManagedDataAccess, Version=4.122.19.1, Culture=neutral, PublicKeyToken=89b483f429c47342, processorArchitecture=MSIL"> | |||||
<HintPath>..\packages\Oracle.ManagedDataAccess.19.6.0\lib\net40\Oracle.ManagedDataAccess.dll</HintPath> | |||||
</Reference> | |||||
<Reference Include="Oracle.ManagedDataAccess.EntityFramework, Version=6.122.19.1, Culture=neutral, PublicKeyToken=89b483f429c47342, processorArchitecture=MSIL"> | |||||
<HintPath>..\packages\Oracle.ManagedDataAccess.EntityFramework.19.3.0\lib\net45\Oracle.ManagedDataAccess.EntityFramework.dll</HintPath> | |||||
</Reference> | |||||
<Reference Include="System" /> | |||||
<Reference Include="System.Data" /> | |||||
<Reference Include="System.Drawing" /> | |||||
<Reference Include="System.Web.DynamicData" /> | |||||
<Reference Include="System.Web.Entity" /> | |||||
<Reference Include="System.Web.ApplicationServices" /> | |||||
<Reference Include="System.ComponentModel.DataAnnotations" /> | |||||
<Reference Include="System.Core" /> | |||||
<Reference Include="System.Data.DataSetExtensions" /> | |||||
<Reference Include="System.Xml.Linq" /> | |||||
<Reference Include="System.Web" /> | |||||
<Reference Include="System.Web.Extensions" /> | |||||
<Reference Include="System.Web.Abstractions" /> | |||||
<Reference Include="System.Web.Routing" /> | |||||
<Reference Include="System.Xml" /> | |||||
<Reference Include="System.Configuration" /> | |||||
<Reference Include="System.Web.Services" /> | |||||
<Reference Include="System.EnterpriseServices" /> | |||||
<Reference Include="Microsoft.Web.Infrastructure, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL"> | |||||
<Private>True</Private> | |||||
<HintPath>..\packages\Microsoft.Web.Infrastructure.1.0.0.0\lib\net40\Microsoft.Web.Infrastructure.dll</HintPath> | |||||
</Reference> | |||||
<Reference Include="System.Net.Http"> | |||||
</Reference> | |||||
<Reference Include="System.Net.Http.WebRequest"> | |||||
</Reference> | |||||
<Reference Include="System.Web.Helpers, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL"> | |||||
<Private>True</Private> | |||||
<HintPath>..\packages\Microsoft.AspNet.WebPages.3.2.3\lib\net45\System.Web.Helpers.dll</HintPath> | |||||
</Reference> | |||||
<Reference Include="System.Web.Mvc, Version=5.2.3.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL"> | |||||
<Private>True</Private> | |||||
<HintPath>..\packages\Microsoft.AspNet.Mvc.5.2.3\lib\net45\System.Web.Mvc.dll</HintPath> | |||||
</Reference> | |||||
<Reference Include="System.Web.Optimization"> | |||||
<HintPath>..\packages\Microsoft.AspNet.Web.Optimization.1.1.3\lib\net40\System.Web.Optimization.dll</HintPath> | |||||
</Reference> | |||||
<Reference Include="System.Web.Razor, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL"> | |||||
<Private>True</Private> | |||||
<HintPath>..\packages\Microsoft.AspNet.Razor.3.2.3\lib\net45\System.Web.Razor.dll</HintPath> | |||||
</Reference> | |||||
<Reference Include="System.Web.WebPages, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL"> | |||||
<Private>True</Private> | |||||
<HintPath>..\packages\Microsoft.AspNet.WebPages.3.2.3\lib\net45\System.Web.WebPages.dll</HintPath> | |||||
</Reference> | |||||
<Reference Include="System.Web.WebPages.Deployment, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL"> | |||||
<Private>True</Private> | |||||
<HintPath>..\packages\Microsoft.AspNet.WebPages.3.2.3\lib\net45\System.Web.WebPages.Deployment.dll</HintPath> | |||||
</Reference> | |||||
<Reference Include="System.Web.WebPages.Razor, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL"> | |||||
<Private>True</Private> | |||||
<HintPath>..\packages\Microsoft.AspNet.WebPages.3.2.3\lib\net45\System.Web.WebPages.Razor.dll</HintPath> | |||||
</Reference> | |||||
<Reference Include="WebGrease"> | |||||
<Private>True</Private> | |||||
<HintPath>..\packages\WebGrease.1.5.2\lib\WebGrease.dll</HintPath> | |||||
</Reference> | |||||
<Reference Include="Antlr3.Runtime"> | |||||
<Private>True</Private> | |||||
<HintPath>..\packages\Antlr.3.4.1.9004\lib\Antlr3.Runtime.dll</HintPath> | |||||
</Reference> | |||||
</ItemGroup> | |||||
<ItemGroup> | |||||
<Reference Include="Microsoft.ApplicationInsights"> | |||||
<HintPath>..\packages\Microsoft.ApplicationInsights.2.2.0\lib\net45\Microsoft.ApplicationInsights.dll</HintPath> | |||||
</Reference> | |||||
<Reference Include="Microsoft.AI.Agent.Intercept"> | |||||
<HintPath>..\packages\Microsoft.ApplicationInsights.Agent.Intercept.2.0.6\lib\net45\Microsoft.AI.Agent.Intercept.dll</HintPath> | |||||
</Reference> | |||||
<Reference Include="Microsoft.AI.DependencyCollector"> | |||||
<HintPath>..\packages\Microsoft.ApplicationInsights.DependencyCollector.2.2.0\lib\net45\Microsoft.AI.DependencyCollector.dll</HintPath> | |||||
</Reference> | |||||
<Reference Include="Microsoft.AI.PerfCounterCollector"> | |||||
<HintPath>..\packages\Microsoft.ApplicationInsights.PerfCounterCollector.2.2.0\lib\net45\Microsoft.AI.PerfCounterCollector.dll</HintPath> | |||||
</Reference> | |||||
<Reference Include="Microsoft.AI.ServerTelemetryChannel"> | |||||
<HintPath>..\packages\Microsoft.ApplicationInsights.WindowsServer.TelemetryChannel.2.2.0\lib\net45\Microsoft.AI.ServerTelemetryChannel.dll</HintPath> | |||||
</Reference> | |||||
<Reference Include="Microsoft.AI.WindowsServer"> | |||||
<HintPath>..\packages\Microsoft.ApplicationInsights.WindowsServer.2.2.0\lib\net45\Microsoft.AI.WindowsServer.dll</HintPath> | |||||
</Reference> | |||||
<Reference Include="Microsoft.AI.Web"> | |||||
<HintPath>..\packages\Microsoft.ApplicationInsights.Web.2.2.0\lib\net45\Microsoft.AI.Web.dll</HintPath> | |||||
</Reference> | |||||
</ItemGroup> | |||||
<ItemGroup> | |||||
<Compile Include="App_Start\FilterConfig.cs" /> | |||||
<Compile Include="App_Start\MvcControllerBase.cs" /> | |||||
<Compile Include="App_Start\RouteConfig.cs" /> | |||||
<Compile Include="Controllers\HomeController.cs" /> | |||||
<Compile Include="Global.asax.cs"> | |||||
<DependentUpon>Global.asax</DependentUpon> | |||||
</Compile> | |||||
<Compile Include="Properties\AssemblyInfo.cs" /> | |||||
</ItemGroup> | |||||
<ItemGroup> | |||||
<Content Include="Content\bootstrap\bootstrap-theme.min.css" /> | |||||
<Content Include="Content\bootstrap\bootstrap.min.css" /> | |||||
<Content Include="Content\bootstrap\bootstrap.min.js" /> | |||||
<Content Include="Content\bootstrap\html5shiv.min.js" /> | |||||
<Content Include="Content\bootstrap\modernizr-2.6.2.min.js" /> | |||||
<Content Include="Content\bootstrap\respond.min.js" /> | |||||
<Content Include="Content\font\css\font-awesome.css" /> | |||||
<Content Include="Content\font\css\font-awesome.min.css" /> | |||||
<Content Include="Content\font\fonts\fontawesome-webfont.svg" /> | |||||
<Content Include="Content\font\learunfont\iconfont.css" /> | |||||
<Content Include="Content\font\learunfont\iconfont.svg" /> | |||||
<Content Include="Content\images1\index\fa-archive.png" /> | |||||
<Content Include="Content\images1\index\fa-video-camera.png" /> | |||||
<Content Include="Content\images1\index\fa-wechat.png" /> | |||||
<Content Include="Content\images1\index\fa-weibo.png" /> | |||||
<Content Include="Content\images1\index\info.png" /> | |||||
<Content Include="Content\images1\index\信息化专栏.png" /> | |||||
<Content Include="Content\images\banner_df.jpg" /> | |||||
<Content Include="Content\images\plhome\addImg.png" /> | |||||
<Content Include="Content\images\plhome\banner_df.jpg" /> | |||||
<Content Include="Content\jquery\jquery-1.10.2.min.js" /> | |||||
<Content Include="Content\laypage\laypage.js" /> | |||||
<Content Include="Content\laypage\laypage.min.js" /> | |||||
<Content Include="Content\laypage\skin\laypage.css" /> | |||||
<Content Include="Content\laypage\skin\laypage.min.css" /> | |||||
<Content Include="Content\scripts\ChildIndex.js" /> | |||||
<Content Include="Content\scripts\DetailIndex.js" /> | |||||
<Content Include="Content\scripts\Home.js" /> | |||||
<Content Include="Content\scripts\ImgListIndex.js" /> | |||||
<Content Include="Content\scripts\ListIndex.js" /> | |||||
<Content Include="Content\style\ChildIndex.css" /> | |||||
<Content Include="Content\style\DetailIndex.css" /> | |||||
<Content Include="Content\style\Home.css" /> | |||||
<Content Include="Content\style\ImgListIndex.css" /> | |||||
<Content Include="Content\style\ListIndex.css" /> | |||||
<Content Include="Content\style\lr-common.css" /> | |||||
<Content Include="Content\scripts\PageIndex.js" /> | |||||
<Content Include="Content\style\PageIndex.css" /> | |||||
<Content Include="Content\swiper\swiper-4.3.3.min.css" /> | |||||
<Content Include="Content\swiper\swiper-4.3.3.min.js" /> | |||||
<Content Include="favicon.ico" /> | |||||
<Content Include="Global.asax" /> | |||||
<Content Include="Content\laypage\laypage.min.js.map" /> | |||||
<Content Include="Content\font\fonts\fontawesome-webfont.eot" /> | |||||
<Content Include="Content\font\fonts\fontawesome-webfont.ttf" /> | |||||
<Content Include="Content\font\fonts\fontawesome-webfont.woff" /> | |||||
<Content Include="Content\font\fonts\fontawesome-webfont.woff2" /> | |||||
<Content Include="Content\font\fonts\FontAwesome.otf" /> | |||||
<Content Include="Content\font\learunfont\iconfont.eot" /> | |||||
<Content Include="Content\font\learunfont\iconfont.ttf" /> | |||||
<Content Include="Content\font\learunfont\iconfont.woff" /> | |||||
<Content Include="Content\images1\about\banner.png" /> | |||||
<Content Include="Content\images1\about\company.png" /> | |||||
<Content Include="Content\images1\icons.png" /> | |||||
<Content Include="Content\images1\index\banner1.png" /> | |||||
<Content Include="Content\images1\index\banner2.png" /> | |||||
<Content Include="Content\images1\index\industry1.png" /> | |||||
<Content Include="Content\images1\index\industry2.png" /> | |||||
<Content Include="Content\images1\index\industry3.png" /> | |||||
<Content Include="Content\images1\index\industry4.png" /> | |||||
<Content Include="Content\images1\index\innovation.png" /> | |||||
<Content Include="Content\images1\index\news1.png" /> | |||||
<Content Include="Content\images1\index\video.png" /> | |||||
<Content Include="Content\images\logo.png" /> | |||||
<Content Include="Content\images1\newsDetail\bd1.png" /> | |||||
<Content Include="Content\images1\newsDetail\bd2.png" /> | |||||
<Content Include="Content\images1\newsList\banner.png" /> | |||||
<Content Include="Content\images1\newsList\news1.png" /> | |||||
<Content Include="Content\images1\products\banner.png" /> | |||||
<Content Include="Content\images1\products\product1.png" /> | |||||
<Content Include="Content\images1\products\product2.png" /> | |||||
<Content Include="Content\images1\products\product3.png" /> | |||||
<Content Include="Content\images1\products\product4.png" /> | |||||
<Content Include="Content\images1\products\product5.png" /> | |||||
<Content Include="Content\images1\products\product6.png" /> | |||||
<Content Include="Content\images1\products\product7.png" /> | |||||
<Content Include="Content\images1\products\product8.png" /> | |||||
<Content Include="Content\images1\products\product9.png" /> | |||||
<Content Include="Content\images1\slogan.png" /> | |||||
<Content Include="Content\images\wechat.png" /> | |||||
<Content Include="Content\style\Index.css" /> | |||||
<Content Include="Content\scripts\Index.js" /> | |||||
<Content Include="Web.config" /> | |||||
<Content Include="Web.Debug.config"> | |||||
<DependentUpon>Web.config</DependentUpon> | |||||
</Content> | |||||
<Content Include="Web.Release.config"> | |||||
<DependentUpon>Web.config</DependentUpon> | |||||
</Content> | |||||
<Content Include="Views\Web.config" /> | |||||
<Content Include="Views\Shared\_Index.cshtml" /> | |||||
<Content Include="Views\Home\Index.cshtml" /> | |||||
<Content Include="Views\Home\ListIndex.cshtml" /> | |||||
<Content Include="Views\Shared\_PageIndex.cshtml" /> | |||||
<Content Include="Views\Home\ImgListIndex.cshtml" /> | |||||
<Content Include="Views\Home\DetailIndex.cshtml" /> | |||||
<Content Include="XmlConfig\database.config"> | |||||
<SubType>Designer</SubType> | |||||
</Content> | |||||
<Content Include="XmlConfig\ioc.config"> | |||||
<SubType>Designer</SubType> | |||||
</Content> | |||||
<Content Include="XmlConfig\log4net.config" /> | |||||
<Content Include="XmlConfig\system.config"> | |||||
<SubType>Designer</SubType> | |||||
</Content> | |||||
<Content Include="Views\Home\ChildIndex.cshtml" /> | |||||
</ItemGroup> | |||||
<ItemGroup /> | |||||
<ItemGroup> | |||||
<None Include="packages.config" /> | |||||
</ItemGroup> | |||||
<ItemGroup> | |||||
<ProjectReference Include="..\Learun.Framework.Module\Learun.Application.Module\Learun.Application.Extention\Learun.Application.Extention.csproj"> | |||||
<Project>{4d033392-bbb8-4b5f-9144-a42e7695847e}</Project> | |||||
<Name>Learun.Application.Extention</Name> | |||||
</ProjectReference> | |||||
<ProjectReference Include="..\Learun.Framework.Module\Learun.Application.Module\Learun.Application.Mapping\Learun.Application.Mapping.csproj"> | |||||
<Project>{79f8e2f1-08e7-4336-93e0-512b39f9dd54}</Project> | |||||
<Name>Learun.Application.Mapping</Name> | |||||
</ProjectReference> | |||||
<ProjectReference Include="..\Learun.Framework.Module\Learun.Db\Learun.DataBase.EF.Oracle\Learun.DataBase.Oracle.csproj"> | |||||
<Project>{82069f3a-ab45-4f8b-b2bf-a36b14208f41}</Project> | |||||
<Name>Learun.DataBase.Oracle</Name> | |||||
</ProjectReference> | |||||
<ProjectReference Include="..\Learun.Framework.Module\Learun.Db\Learun.DataBase.EF.Sqlserver\Learun.DataBase.SqlServer.csproj"> | |||||
<Project>{890532f8-5205-4ee9-965c-84500cad24de}</Project> | |||||
<Name>Learun.DataBase.SqlServer</Name> | |||||
</ProjectReference> | |||||
<ProjectReference Include="..\Learun.Framework.Module\Learun.Db\Learun.DataBase.MySql\Learun.DataBase.MySqlEx.csproj"> | |||||
<Project>{fe4cb79e-7f98-4683-bc4a-5173a5bc5636}</Project> | |||||
<Name>Learun.DataBase.MySqlEx</Name> | |||||
</ProjectReference> | |||||
<ProjectReference Include="..\Learun.Framework.Module\Learun.Db\Learun.DataBase\Learun.DataBase.csproj"> | |||||
<Project>{c329f9e1-4327-4769-9d08-07e6fec41005}</Project> | |||||
<Name>Learun.DataBase</Name> | |||||
</ProjectReference> | |||||
<ProjectReference Include="..\Learun.Framework.Module\Learun.Ioc\Learun.Ioc.csproj"> | |||||
<Project>{81c03609-ae0d-414c-829b-16b990487add}</Project> | |||||
<Name>Learun.Ioc</Name> | |||||
</ProjectReference> | |||||
<ProjectReference Include="..\Learun.Framework.Module\Learun.Util\Learun.Util\Learun.Util.csproj"> | |||||
<Project>{cf8ae293-88ab-436c-9720-a8386ba5d7b7}</Project> | |||||
<Name>Learun.Util</Name> | |||||
</ProjectReference> | |||||
</ItemGroup> | |||||
<PropertyGroup> | |||||
<VisualStudioVersion Condition="'$(VisualStudioVersion)' == ''">10.0</VisualStudioVersion> | |||||
<VSToolsPath Condition="'$(VSToolsPath)' == ''">$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)</VSToolsPath> | |||||
</PropertyGroup> | |||||
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" /> | |||||
<Import Project="$(VSToolsPath)\WebApplications\Microsoft.WebApplication.targets" Condition="'$(VSToolsPath)' != ''" /> | |||||
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v10.0\WebApplications\Microsoft.WebApplication.targets" Condition="false" /> | |||||
<Target Name="MvcBuildViews" AfterTargets="AfterBuild" Condition="'$(MvcBuildViews)'=='true'"> | |||||
<AspNetCompiler VirtualPath="temp" PhysicalPath="$(WebProjectOutputDir)" /> | |||||
</Target> | |||||
<ProjectExtensions> | |||||
<VisualStudio> | |||||
<FlavorProperties GUID="{349c5851-65df-11da-9384-00065b846f21}"> | |||||
<WebProjectProperties> | |||||
<UseIIS>False</UseIIS> | |||||
<AutoAssignPort>True</AutoAssignPort> | |||||
<DevelopmentServerPort>60862</DevelopmentServerPort> | |||||
<DevelopmentServerVPath>/</DevelopmentServerVPath> | |||||
<IISUrl>http://localhost:60862/</IISUrl> | |||||
<NTLMAuthentication>False</NTLMAuthentication> | |||||
<UseCustomServer>False</UseCustomServer> | |||||
<CustomServerUrl> | |||||
</CustomServerUrl> | |||||
<SaveServerSettingsInUserFile>False</SaveServerSettingsInUserFile> | |||||
</WebProjectProperties> | |||||
</FlavorProperties> | |||||
</VisualStudio> | |||||
</ProjectExtensions> | |||||
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild"> | |||||
<PropertyGroup> | |||||
<ErrorText>这台计算机上缺少此项目引用的 NuGet 程序包。使用“NuGet 程序包还原”可下载这些程序包。有关更多信息,请参见 http://go.microsoft.com/fwlink/?LinkID=322105。缺少的文件是 {0}。</ErrorText> | |||||
</PropertyGroup> | |||||
<Error Condition="!Exists('..\packages\Microsoft.Net.Compilers.2.1.0\build\Microsoft.Net.Compilers.props')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\Microsoft.Net.Compilers.2.1.0\build\Microsoft.Net.Compilers.props'))" /> | |||||
<Error Condition="!Exists('..\packages\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.1.0.7\build\net45\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.props')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.1.0.7\build\net45\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.props'))" /> | |||||
</Target> | |||||
<!-- To modify your build process, add your task inside one of the targets below and uncomment it. | |||||
Other similar extension points exist, see Microsoft.Common.targets. | |||||
<Target Name="BeforeBuild"> | |||||
</Target> | |||||
<Target Name="AfterBuild"> | |||||
</Target> --> | |||||
</Project> |
@@ -0,0 +1,35 @@ | |||||
using System.Reflection; | |||||
using System.Runtime.CompilerServices; | |||||
using System.Runtime.InteropServices; | |||||
// 有关程序集的常规信息是通过以下项进行控制的 | |||||
// 控制。更改这些特性值可修改 | |||||
// 与程序集关联的信息。 | |||||
[assembly: AssemblyTitle("Learun.Application.Website")] | |||||
[assembly: AssemblyDescription("")] | |||||
[assembly: AssemblyConfiguration("")] | |||||
[assembly: AssemblyCompany("")] | |||||
[assembly: AssemblyProduct("Learun.Application.Website")] | |||||
[assembly: AssemblyCopyright("版权所有(C) 2018")] | |||||
[assembly: AssemblyTrademark("")] | |||||
[assembly: AssemblyCulture("")] | |||||
// 将 ComVisible 设置为 false 将使此程序集中的类型 | |||||
// 对 COM 组件不可见。如果需要 | |||||
// 从 COM 访问此程序集中的某个类型,请针对该类型将 ComVisible 特性设置为 true。 | |||||
[assembly: ComVisible(false)] | |||||
// 如果此项目向 COM 公开,则下列 GUID 用于 typelib 的 ID | |||||
[assembly: Guid("84f8423b-6a42-4611-9a00-fcf86b6e13aa")] | |||||
// 程序集的版本信息由下列四个值组成: | |||||
// | |||||
// 主版本 | |||||
// 次版本 | |||||
// 内部版本号 | |||||
// 修订版本 | |||||
// | |||||
// 你可以指定所有值,也可以让修订版本和内部版本号采用默认值, | |||||
// 方法是按如下所示使用 "*": | |||||
[assembly: AssemblyVersion("1.0.0.0")] | |||||
[assembly: AssemblyFileVersion("1.0.0.0")] |
@@ -0,0 +1,12 @@ | |||||
| |||||
@{ | |||||
ViewBag.Title = "ChildIndex"; | |||||
Layout = "~/Views/Shared/_PageIndex.cshtml"; | |||||
} | |||||
<link href="~/Content/style/ChildIndex.css" rel="stylesheet" /> | |||||
<script src="~/Content/scripts/ChildIndex.js"></script> | |||||
<div class="lr-site-body-container"> | |||||
</div> | |||||
@@ -0,0 +1,104 @@ | |||||
<!DOCTYPE html> | |||||
<html lang="zh-CN"> | |||||
<head> | |||||
<meta name=”renderer” content=”webkit|ie-comp|ie-stand” /> | |||||
<meta name="viewport" content="width=device-width" /> | |||||
<meta http-equiv="content-type" content="text/html; charset=UTF-8"> | |||||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> | |||||
<meta name="renderer" content="webkit"> | |||||
<meta name="viewport" content="width=device-width, initial-scale=1" /> | |||||
<link rel="icon" href="~/favicon.ico"> | |||||
<title>力软门户网站</title> | |||||
<link href="~/Content/font/css/font-awesome.min.css" rel="stylesheet" /> | |||||
<link href="~/Content/bootstrap/bootstrap.min.css" rel="stylesheet" /> | |||||
<link href="~/Content/swiper/swiper-4.3.3.min.css" rel="stylesheet" /> | |||||
<link href="~/Content/style/lr-common.css" rel="stylesheet" /> | |||||
<link href="~/Content/style/Home.css" rel="stylesheet" /> | |||||
<link href="~/Content/style/DetailIndex.css" rel="stylesheet" /> | |||||
<script src="~/Content/jquery/jquery-1.10.2.min.js"></script> | |||||
<script src="~/Content/laypage/laypage.js"></script> | |||||
<script src="~/Content/bootstrap/bootstrap.min.js"></script> | |||||
<script src="~/Content/swiper/swiper-4.3.3.min.js"></script> | |||||
<!--[if lt IE 9]> | |||||
<script src="~/Content/bootstrap/html5shiv.min.js"></script> | |||||
<script src="~/Content/bootstrap/respond.min.js"></script> | |||||
<![endif]--> | |||||
<script> | |||||
function request(d) { for (var c = location.search.slice(1).split("&"), a = 0; a < c.length; a++) { var b = c[a].split("="); if (b[0] == d) if ("undefined" == unescape(b[1])) break; else return unescape(b[1]) } return "" }; | |||||
</script> | |||||
<script> | |||||
$.rootUrl = '@Url.Content("~")'.substr(0, '@Url.Content("~")'.length - 1); | |||||
// get 请求方法 | |||||
var httpGet = function (url, callback) { | |||||
$.ajax({ | |||||
url: url, | |||||
type: "GET", | |||||
dataType: "json", | |||||
async: true, | |||||
cache: false, | |||||
success: function (data) { | |||||
callback(data); | |||||
}, | |||||
error: function (XMLHttpRequest, textStatus, errorThrown) { | |||||
callback(null); | |||||
}, | |||||
beforeSend: function () { | |||||
}, | |||||
complete: function () { | |||||
} | |||||
}); | |||||
} | |||||
</script> | |||||
</head> | |||||
<body> | |||||
<div class="lr-site-head"> | |||||
<div class="lr-site-content" id="lr_site_top_text"></div> | |||||
</div> | |||||
<div class="lr-site-nav"> | |||||
<div class="lr-site-content"> | |||||
<div class="lr-site-logo-container"> | |||||
<img src="~/Home/GetImg?type=4" /> | |||||
</div> | |||||
<ul class="lr-site-nav-ul"> | |||||
<li class="lr-site-nav-li homePage"> | |||||
<a href="javascript:void(0);" class="lr-site-nav-item"><span class="text">首页</span></a> | |||||
</li> | |||||
</ul> | |||||
</div> | |||||
</div> | |||||
<div class="lr-site-body"> | |||||
<div class="lr-site-body-container"> | |||||
<div class="title"> | |||||
<p id="title"></p> | |||||
<div class="list"></div> | |||||
</div> | |||||
</div> | |||||
</div> | |||||
<div class="lr-site-footer"> | |||||
<div class="lr-site-content"> | |||||
<div class="lr-site-logo-container"> | |||||
<img src="~/Home/GetImg?type=10" /> | |||||
</div> | |||||
<div class="lr-site-footer-nav"> | |||||
<ul class="lr-site-footer-nav-menu"></ul> | |||||
<div class="lr-site-contactInfo"></div> | |||||
</div> | |||||
<div class="lr-site-footer-wechat"> | |||||
<img class="img" src="~/Home/GetImg?type=5" /> | |||||
<p class="text"></p> | |||||
</div> | |||||
</div> | |||||
</div> | |||||
<div class="lr-site-bottom"> | |||||
</div> | |||||
<script src="~/Content/scripts/DetailIndex.js"></script> | |||||
</body> | |||||
</html> |