初步增加首页

This commit is contained in:
2018-11-16 01:10:31 +08:00
parent 7aa4c63610
commit d96c048e43
52 changed files with 2019 additions and 1170 deletions
+63
View File
@@ -0,0 +1,63 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using COMCMS.Common;
using COMCMS.Core;
using XCode;
namespace COMCMS.Web.Common
{
/// <summary>
/// 网站前台基础页
/// </summary>
public class HomeBaseController : Controller
{
public Config cfg;
public JsonTip tip = new JsonTip();
public HomeBaseController()
{
cfg = Config.GetSystemConfig();
}
/// <summary>
/// Alert提示并返回
/// </summary>
/// <param name="str">提示内容</param>
public IActionResult AlertAndGoBack(string str)
{
if (!string.IsNullOrWhiteSpace(str)) str = str.Replace("'", "\\'");
return Content($"<script type=\"text/javascript\">alert('{str}');window.history.go(-1)</script>");
}
/// <summary>
/// Alert提示并跳转到指定URL
/// </summary>
/// <param name="str">提示内容</param>
/// <param name="url">跳转地址</param>
public IActionResult AlertAndRedirect(string str, string url)
{
if (!string.IsNullOrWhiteSpace(str)) str = str.Replace("'", "\\'");
return Content($"<script type=\"text/javascript\">alert('{str}');window.location='{url}'</script>");
}
#region MyRegion
/// <summary>
/// 显示提示页面
/// </summary>
/// <param name="Message">提示语</param>
/// <param name="IsSuccess">成功/失败</param>
/// <param name="ReturnURL">返回URL</param>
/// <returns></returns>
public IActionResult EchoTip(string Message, bool IsSuccess = false, string ReturnURL = "")
{
ViewBag.IsSuccess = IsSuccess;
ViewBag.Message = Message;
ViewBag.ReturnURL = ReturnURL;
ViewBag.cfg = cfg;
return View("EchoTip");
}
#endregion
}
}
+7 -111
View File
@@ -15,54 +15,29 @@ using Microsoft.Extensions.Configuration.Json;
using Microsoft.AspNetCore.Http;
using System.Collections.Concurrent;
using Newtonsoft.Json;
using COMCMS.Web.Common;
namespace COMCMS.Web.Controllers
{
public class HomeController : Controller
public class HomeController : HomeBaseController
{
public static IConfiguration Configuration { get; set; }
public ConcurrentDictionary<string, string> AllSession = new ConcurrentDictionary<string, string>();
public HomeController(IConfiguration configuration)
{
//Configuration = new ConfigurationBuilder()
// .SetBasePath(Directory.GetCurrentDirectory())
// .AddJsonFile("appsettings.json", optional: true, reloadOnChange : true)
// .Build();
Configuration = configuration;
}
#region 首页
public IActionResult Index()
{
CookieOptions op = new CookieOptions
{
Expires = DateTime.Now.AddMinutes(10),
Path = "/",
HttpOnly = true
};
Response.Cookies.Append("abc", "123456", op);//用户名
ViewBag.cfg = cfg;
return View();
}
#endregion
public IActionResult About()
{
ViewData["Message"] = "Your application description page.";
CookiesHelper.WriteCookie("abc", Utils.GetRandomChar(20), 10);
//sessiong
SessionHelper.WriteSession("bcd", Utils.GetRandomChar(20));
HttpContext.Session.SetString("abc", "123456");
return View();
}
public IActionResult Contact()
{
Link l = Link.Find(Link._.Id == 1);
l.Title = "😂😂😂😂";
l.Save();
return View(l);
return View();
}
public IActionResult Error()
@@ -70,84 +45,5 @@ namespace COMCMS.Web.Controllers
return View(new ErrorViewModel { RequestId = Activity.Current?.Id ?? HttpContext.TraceIdentifier });
}
#region 测试
public IActionResult Test()
{
var css = Configuration.GetSection("connectionStrings");
var list = css.GetChildren();
if(list !=null && list.Count() > 0)
{
}
string s = "";
foreach (var item in list)
{
string connName = item.Path.Substring(item.Path.IndexOf(":") + 1);
string connectionString = css.GetSection(connName).GetSection("connectionString").Value;
string providerName = css.GetSection(connName).GetSection("providerName").Value;
s += item.Path.Substring(item.Path.IndexOf(":")+1)+ "|"+ Configuration.GetSection(item.Path+ ":connectionString").Value+"|" + Configuration.GetSection(item.Path + ":providerName").Value +"|"+connectionString+"|"+ providerName +"|||" + list.Count();
}
return Content(s);
}
public IActionResult Test2()
{
var settings = Path.Combine(Directory.GetCurrentDirectory(), "appsettings.json");
var css2 = new ConfigurationBuilder().AddJsonFile(settings).Build().GetSection("connectionStrings");
string s = "";
if (css2 != null)
{
foreach (var item in css2.GetChildren())
{
var name = item.Path.Substring(item.Path.IndexOf(":") + 1);// item["name"];
var constr = item["connectionString"];
var provider = item["providerName"];
s += $"{name}|{constr}|{provider}|||";
//var type = DbFactory.GetProviderType(constr, provider);
//if (type == null) XTrace.WriteLine("无法识别{0}的提供者{1}!", name, provider);
//cs.Add(name, constr);
//_connTypes.Add(name, type);
}
}
return Content(s);
}
#endregion
#region MyRegion
public IActionResult Test3()
{
bool isok = false;
if(AllSession.TryAdd(HttpContext.Session.Id, HttpContext.Session.Id))
{
isok = true;
}
return Content(isok.ToString() + ":" + JsonConvert.SerializeObject(AllSession));
}
#endregion
#region 测试
[HttpGet]
public IActionResult Article(string title)
{
return Content(title);
}
#endregion
public IActionResult Uploader()
{
return View("~/Areas/AdminCP/Views/WebUploader/Uploader.cshtml");
}
public IActionResult FileTest()
{
return View();
}
}
}
@@ -126,6 +126,5 @@ namespace COMCMS.Web.Controllers
}
#endregion
public wxpaymentController(IConfiguration configuration) : base(configuration){}
}
}
+678 -107
View File
@@ -1,107 +1,678 @@
@{
Layout = null;
ViewData["Title"] = "Home Page";
}
<div id="myCarousel" class="carousel slide" data-ride="carousel" data-interval="6000">
<ol class="carousel-indicators">
<li data-target="#myCarousel" data-slide-to="0" class="active"></li>
<li data-target="#myCarousel" data-slide-to="1"></li>
<li data-target="#myCarousel" data-slide-to="2"></li>
<li data-target="#myCarousel" data-slide-to="3"></li>
</ol>
<div class="carousel-inner" role="listbox">
<div class="item active">
<img src="~/images/banner1.svg" alt="ASP.NET" class="img-responsive" />
<div class="carousel-caption" role="option">
<p>
Learn how to build ASP.NET apps that can run anywhere.
<a class="btn btn-default" href="https://go.microsoft.com/fwlink/?LinkID=525028&clcid=0x409">
Learn More
</a>
</p>
</div>
</div>
<div class="item">
<img src="~/images/banner2.svg" alt="Visual Studio" class="img-responsive" />
<div class="carousel-caption" role="option">
<p>
There are powerful new features in Visual Studio for building modern web apps.
<a class="btn btn-default" href="https://go.microsoft.com/fwlink/?LinkID=525030&clcid=0x409">
Learn More
</a>
</p>
</div>
</div>
<div class="item">
<img src="~/images/banner3.svg" alt="Package Management" class="img-responsive" />
<div class="carousel-caption" role="option">
<p>
Bring in libraries from NuGet and npm, and automate tasks using Grunt or Gulp.
<a class="btn btn-default" href="https://go.microsoft.com/fwlink/?LinkID=525029&clcid=0x409">
Learn More
</a>
</p>
</div>
</div>
<div class="item">
<img src="~/images/banner4.svg" alt="Microsoft Azure" class="img-responsive" />
<div class="carousel-caption" role="option">
<p>
Learn how Microsoft's Azure cloud platform allows you to build, deploy, and scale web apps.
<a class="btn btn-default" href="https://go.microsoft.com/fwlink/?LinkID=525027&clcid=0x409">
Learn More
</a>
</p>
</div>
</div>
</div>
<a class="left carousel-control" href="#myCarousel" role="button" data-slide="prev">
<span class="glyphicon glyphicon-chevron-left" aria-hidden="true"></span>
<span class="sr-only">Previous</span>
</a>
<a class="right carousel-control" href="#myCarousel" role="button" data-slide="next">
<span class="glyphicon glyphicon-chevron-right" aria-hidden="true"></span>
<span class="sr-only">Next</span>
</a>
</div>
<div class="row">
<div class="col-md-3">
<h2>Application uses</h2>
<ul>
<li>Sample pages using ASP.NET Core MVC</li>
<li>Theming using <a href="https://go.microsoft.com/fwlink/?LinkID=398939">Bootstrap</a></li>
</ul>
</div>
<div class="col-md-3">
<h2>How to</h2>
<ul>
<li><a href="https://go.microsoft.com/fwlink/?LinkID=398600">Add a Controller and View</a></li>
<li><a href="https://go.microsoft.com/fwlink/?LinkId=699315">Manage User Secrets using Secret Manager.</a></li>
<li><a href="https://go.microsoft.com/fwlink/?LinkId=699316">Use logging to log a message.</a></li>
<li><a href="https://go.microsoft.com/fwlink/?LinkId=699317">Add packages using NuGet.</a></li>
<li><a href="https://go.microsoft.com/fwlink/?LinkId=699319">Target development, staging or production environment.</a></li>
</ul>
</div>
<div class="col-md-3">
<h2>Overview</h2>
<ul>
<li><a href="https://go.microsoft.com/fwlink/?LinkId=518008">Conceptual overview of what is ASP.NET Core</a></li>
<li><a href="https://go.microsoft.com/fwlink/?LinkId=699320">Fundamentals of ASP.NET Core such as Startup and middleware.</a></li>
<li><a href="https://go.microsoft.com/fwlink/?LinkId=398602">Working with Data</a></li>
<li><a href="https://go.microsoft.com/fwlink/?LinkId=398603">Security</a></li>
<li><a href="https://go.microsoft.com/fwlink/?LinkID=699321">Client side development</a></li>
<li><a href="https://go.microsoft.com/fwlink/?LinkID=699322">Develop on different platforms</a></li>
<li><a href="https://go.microsoft.com/fwlink/?LinkID=699323">Read more on the documentation site</a></li>
</ul>
</div>
<div class="col-md-3">
<h2>Run &amp; Deploy</h2>
<ul>
<li><a href="https://go.microsoft.com/fwlink/?LinkID=517851">Run your app</a></li>
<li><a href="https://go.microsoft.com/fwlink/?LinkID=517853">Run tools such as EF migrations and more</a></li>
<li><a href="https://go.microsoft.com/fwlink/?LinkID=398609">Publish to Microsoft Azure Web Apps</a></li>
</ul>
</div>
</div>
@using COMCMS.Core
@{
Config cfg = ViewBag.cfg;
ViewBag.title = string.IsNullOrEmpty(cfg.IndexTitle) ? cfg.SiteName : cfg.IndexTitle;
ViewBag.keywords = cfg.Keyword;
ViewBag.description = cfg.Description;
}
<!-- pc banner -->
<div class="banner normal">
<div class="swiper-container">
<div class="swiper-wrapper">
<div class="swiper-slide">
<a href="/" title="" style="background: url('/images/default/slide-1.jpg') center top no-repeat; background-size:cover"></a>
</div>
<div class="swiper-slide">
<a href="/" title="" style="background: url('/images/default/slide-2.jpg') center top no-repeat; background-size:cover"></a>
</div>
<div class="swiper-slide">
<a href="/" title="" style="background: url('/images/default/slide-3.jpg') center top no-repeat; background-size:cover"></a>
</div>
<div class="swiper-slide">
<a href="/" title="" style="background: url('/images/default/slide-4.jpg') center top no-repeat; background-size:cover"></a>
</div>
<div class="swiper-slide">
<a href="/" title="" style="background: url('/images/default/slide-5.jpg') center top no-repeat; background-size:cover"></a>
</div>
</div>
<div class="cont">
<span class="banner-prev"></span>
<span class="banner-next"></span>
</div>
</div>
</div>
<!-- mb banner -->
<div class="banner mobile">
<div class="swiper-container">
<div class="swiper-wrapper">
<div class="swiper-slide">
<a href="/" title="" style="background: url('/userfiles/images/20170516/banner/ipbanner1.jpg') center top no-repeat; background-size: 100%;"></a>
</div>
<div class="swiper-slide">
<a href="/" title="" style="background: url('/userfiles/images/20170516/banner/ipbanner2.jpg') center top no-repeat; background-size: 100%;"></a>
</div>
<div class="swiper-slide">
<a href="/" title="" style="background: url('/userfiles/images/banner/泰佳banner.jpg') center top no-repeat; background-size: 100%;"></a>
</div>
</div>
</div>
</div>
<!-- 主体内容 -->
<div class="content">
<!--电脑端 三大优势 -->
<div class="i-advantage normal">
<div class="cont">
<ul class="adv-list">
<li style="background: #3eb6ec;">
<div class="adv-pic">
<div class="pic-box">
<i class="adv-ico1"></i>
</div>
</div>
<div class="adv-text">
<div class="text-box">
<p>
<span>基于Asp.net Core开发</span>
<small>Development with Asp.net core</small>
</p>
</div>
</div>
</li>
<li style="background: #19aaeb;">
<div class="adv-pic">
<div class="pic-box">
<i class="adv-ico2"></i>
</div>
</div>
<div class="adv-text">
<div class="text-box">
<p>
<span>完全开源</span>
<small>Open source</small>
</p>
</div>
</div>
</li>
<li style="background: #00a1e9;">
<div class="adv-pic" style="width: 140px; width: 1.4rem">
<div class="pic-box" style="width: 140px; width: 1.4rem">
<i class="adv-ico3"></i>
</div>
</div>
<div class="adv-text">
<div class="text-box">
<p>
<span>应用广泛</span>
<small>Use everywhere</small>
</p>
</div>
</div>
</li>
</ul>
</div>
</div>
<!--手机端 三大优势 -->
<div class="i-advantage mobile">
<div class="cont">
<ul class="adv-list">
<li style="background: #3eb6ec;">
<div class="adv-pic">
<div class="pic-box">
<i class="adv-ico1"></i>
</div>
</div>
<!-- 这一块里面的文字,客户可以后台更换 -->
<div class="adv-text">
<div class="text-box">
<p>
<span>著名品牌供应商</span>
<small>supplier of famous brands</small>
</p>
</div>
</div>
</li>
<li style="background: #19aaeb;">
<div class="adv-pic">
<div class="pic-box">
<i class="adv-ico2"></i>
</div>
</div>
<!-- 这一块里面的文字,客户可以后台更换 -->
<div class="adv-text">
<div class="text-box">
<p>
<span>公司成立20年</span>
<small>founded 20 years</small>
</p>
</div>
</div>
</li>
<li style="background: #00a1e9;">
<div class="adv-pic" style="width: 140px; width: 1.4rem">
<div class="pic-box" style="width: 140px; width: 1.4rem">
<i class="adv-ico3"></i>
</div>
</div>
<!-- 这一块里面的文字,客户可以后台更换 -->
<div class="adv-text">
<div class="text-box">
<p>
<span>业务涵盖广东省</span>
<small>Business covers Guangdong</small>
</p>
</div>
</div>
</li>
</ul>
</div>
</div>
<!-- 公司简介 -->
<div class="i-au">
<div class="cont">
<div class="i-title">
<p>
<span>公司简介</span>
<small>company profile</small>
</p>
</div>
<div class="i-au-cont">
<div class="i-au-left">
<div class="pic-box">
<a href="/article.aspx?id=1" title="关于我们">
<img src="/userfiles/images/20170516/images/pic-671.png" alt="关于我们">
</a>
</div>
</div>
<div class="i-au-right">
<p>
<span>上的放进塑料袋放进...</span>
</p>
<a href="/article.aspx?id=1" title="查看详情" class="read-d">查看详情</a>
</div>
</div>
</div>
</div>
<!-- 产品展示 -->
<div class="i-pro">
<div class="cont">
<div class="i-title">
<p>
<span>产品展示</span>
<small>product display</small>
</p>
</div>
<div class="i-pro-cont" id="div1">
<ul class="i-pro-list">
<li>
<a href="/Category.aspx?id=6" title="Elekta">
<div class="i-pro-top">
<div class="i-pro-pic">
<div class="pic-box">
<img src="/userfiles/images/20170516/ads/pic3.png" alt="Elekta">
</div>
</div>
<div class="i-pro-hover">
<i></i>
<span>Elekta</span>
</div>
</div>
<div class="i-pro-text mobile">
<span>Elekta</span>
</div>
</a>
</li>
<li>
<a href="/Category.aspx?id=6" title="Elekta">
<div class="i-pro-top">
<div class="i-pro-pic">
<div class="pic-box">
<img src="/userfiles/images/20170516/ads/pic4.png" alt="Elekta">
</div>
</div>
<div class="i-pro-hover">
<i></i>
<span>Elekta</span>
</div>
</div>
<div class="i-pro-text mobile">
<span>Elekta</span>
</div>
</a>
</li>
<li>
<a href="/Category.aspx?id=8" title="ACCURAY">
<div class="i-pro-top">
<div class="i-pro-pic">
<div class="pic-box">
<img src="/userfiles/files/TomoTheropy1.jpg" alt="ACCURAY">
</div>
</div>
<div class="i-pro-hover">
<i></i>
<span>ACCURAY</span>
</div>
</div>
<div class="i-pro-text mobile">
<span>ACCURAY</span>
</div>
</a>
</li>
<li>
<a href="/Category.aspx?id=7" title="SIEMENS">
<div class="i-pro-top">
<div class="i-pro-pic">
<div class="pic-box">
<img src="/userfiles/files/Artis Q zeego-2.jpg" alt="SIEMENS">
</div>
</div>
<div class="i-pro-hover">
<i></i>
<span>SIEMENS</span>
</div>
</div>
<div class="i-pro-text mobile">
<span>SIEMENS</span>
</div>
</a>
</li>
<li>
<a href="/Category.aspx?id=7" title="SIEMENS">
<div class="i-pro-top">
<div class="i-pro-pic">
<div class="pic-box">
<img src="/userfiles/files/MAGNETOM Spectra -1.jpg" alt="SIEMENS">
</div>
</div>
<div class="i-pro-hover">
<i></i>
<span>SIEMENS</span>
</div>
</div>
<div class="i-pro-text mobile">
<span>SIEMENS</span>
</div>
</a>
</li>
</ul>
</div>
<script type="text/javascript">
function proShow() {
mr = parseFloat($('.i-pro-list li').css('margin-right'));
var odiv = document.getElementById('div1');
var oul = odiv.getElementsByTagName('ul')[0];
var ali = oul.getElementsByTagName('li');
var spa = -2;
oul.innerHTML = oul.innerHTML + oul.innerHTML;
oul.style.width = (ali[0].offsetWidth + mr) * ali.length + 3 + 'px';
function move() {
if (oul.offsetLeft < -oul.offsetWidth / 2) {
oul.style.left = 0;
}
oul.style.left = oul.offsetLeft + spa + 'px';
}
var timer = setInterval(move, 30);
odiv.onmousemove = function () { clearInterval(timer); }
odiv.onmouseout = function () { timer = setInterval(move, 30) };
}
</script>
<a href="/Category.aspx?id=1" title="查看更多" class="read-d">查看更多<i></i></a>
</div>
</div>
<!-- 新闻资讯 -->
<div class="i-news">
<div class="cont">
<div class="i-title">
<p>
<span>新闻资讯</span>
<small>news information</small>
</p>
</div>
<div class="i-news-cont">
<div class="i-news-btn">
<ul class="i-btn-list">
<li class="i-news-on">公司新闻</li>
<li>行业资讯</li>
</ul>
</div>
<div class="i-news-main">
<div class="i-news-box">
<!-- 左边 -->
<div class="i-news-left">
<a href="/article.aspx?id=36" title="精准和立体定向放射治疗新技术研讨会">
<div class="i-news-pic">
<div class="pic-box">
<img src="/userfiles/images/new/150.jpg" alt="精准和立体定向放射治疗新技术研讨会">
</div>
</div>
<div class="i-news-text">
<p class="i-news-title">
<span>精准和立体定向放射治疗新技术研讨会</span>
<small>2017-05-18</small>
</p>
<p class="i-news-t"><span>由广东省生物医学工程学会物理分会、中山大学附属肿瘤医院,安科锐医疗设备(上海)有限公司与广州市泰佳电子科技有限公司联合主办的&ldquo;精准和立体定向放射治疗新技术研...</span></p>
<b class="normal read-d">查看详情</b>
</div>
</a>
</div>
<!-- 右边 -->
<div class="i-news-right">
<ul class="i-news-list">
<li>
<a href="/article.aspx?id=35" title="主办的“广东省粤东地区二〇一六年医科达放疗高端新技术研讨会”">
<div class="i-news-time">
<div class="pic-box">
<p>
<span>12</span>
<small>2016-12</small>
</p>
</div>
</div>
<div class="i-news-text2">
<span>主办的“广东省粤东地区二〇一六年医科达放疗高端新技术...</span>
<p>由医科达医疗器械有限公司与广州市泰佳电子科技有限公司联合主办的&ldquo;广东省粤东地区二〇一六年医科达放疗高端新技术研讨会&rdquo;已于2016年1月16日在...</p>
</div>
</a>
</li>
</ul>
</div>
</div>
<div class="i-news-box">
<!-- 左边 -->
<div class="i-news-left">
<a href="/article.aspx?id=41" title="MD安德森癌症中心质子治疗复发性肺癌的报告">
<div class="i-news-pic">
<div class="pic-box">
<img src="/userfiles/images/new/6.png" alt="MD安德森癌症中心质子治疗复发性肺癌的报告">
</div>
</div>
<div class="i-news-text">
<p class="i-news-title">
<span>MD安德森癌症中心质子治疗复发性肺癌的报告</span>
<small>2017-05-18</small>
</p>
<p class="i-news-t">
<span>
来源:质子中国
美国时间2017年3月18日,2017年胸部肿瘤多学科研讨会在美国旧金山落下帷幕。会上,质子治疗凭借其在肺癌复发患者治疗中取得的优异疗效再次获得广泛关...
</span>
</p>
<b class="normal read-d">查看详情</b>
</div>
</a>
</div>
<!-- 右边 -->
<div class="i-news-right">
<ul class="i-news-list">
<li>
<a href="/article.aspx?id=42" title="手术机器人赋予医生“超能力”">
<div class="i-news-time">
<div class="pic-box">
<p>
<span>18</span>
<small>2017-05</small>
</p>
</div>
</div>
<div class="i-news-text2">
<span>手术机器人赋予医生“超能力”</span>
<p>
来源:科学网/张文静
在两三厘米见方的人体空间内,机械臂可以如绣花般精细操作。如今,手术机器人正在让很多原本无法想象的手术场景变为现实。其中...
</p>
</div>
</a>
</li>
<li>
<a href="/article.aspx?id=40" title="国家食品药品监督管理总局调整部分医疗器械行政审批事项审批程序">
<div class="i-news-time">
<div class="pic-box">
<p>
<span>18</span>
<small>2017-05</small>
</p>
</div>
</div>
<div class="i-news-text2">
<span>国家食品药品监督管理总局调整部分医疗器械行政审批事项...</span>
<p>
来源:中国医药报
为优化医疗器械审评审批流程,提高审评审批效率,国家食品药品监督管理总局日前发布《国家食品药品监督管理总局关于调整部分医疗器械行...
</p>
</div>
</a>
</li>
<li>
<a href="/article.aspx?id=39" title="苏州医工所在低剂量CT成像研究中取得进展">
<div class="i-news-time">
<div class="pic-box">
<p>
<span>18</span>
<small>2017-05</small>
</p>
</div>
</div>
<div class="i-news-text2">
<span>苏州医工所在低剂量CT成像研究中取得进展</span>
<p>
来源:中国科学院苏州生物医学工程技术研究所
当前,随着CT断层扫描在医学诊断中的应用越来越广泛,CT辐射会对人体造成一定伤害,并提高了癌症等疾病...
</p>
</div>
</a>
</li>
</ul>
</div>
</div>
</div>
</div>
</div>
<script type="text/javascript">
iNews();
function iNews() {
var index = $('.i-news-on').index();
$('.i-news-box').eq(index).show();
var num = $('.i-btn-list li').length;
$('.i-btn-list').on('click', 'li', function () {
index = $(this).index();
for (var i = 0; i < num; i++) {
$('.i-btn-list li').eq(i).removeClass('i-news-on');
$('.i-news-box').eq(i).hide();
}
$(this).addClass('i-news-on');
$('.i-news-box').eq(index).show();
});
}
</script>
</div>
<!-- 合作伙伴 -->
<div class="i-coop">
<div class="cont">
<div class="i-title">
<p>
<span>合作伙伴</span>
<small>cooperative partner</small>
</p>
</div>
<div class="i-coop-cont">
<!-- 链接到对应logo的公司官网 -->
<div class="swiper-cont">
<div class="swiper-container normal">
<div class="swiper-wrapper">
<div class="swiper-slide">
<ul>
<li>
<a href="#" class="pic-box" title="9" target="_blank">
<img src="/userfiles/images/20170516/link/3.png" alt="9">
</a>
</li>
</ul>
<li>
<a href="#" class="pic-box" title="8" target="_blank">
<img src="/userfiles/images/20170516/link/4.png" alt="8">
</a>
</li>
</ul>
</div><div class="swiper-slide">
<li>
<a href="#" class="pic-box" title="7" target="_blank">
<img src="/userfiles/images/hezuohuoban/7.jpg" alt="7">
</a>
</li>
</ul>
<li>
<a href="#" class="pic-box" title="6" target="_blank">
<img src="/userfiles/images/20170516/link/5.png" alt="6">
</a>
</li>
</ul>
</div><div class="swiper-slide">
<li>
<a href="#" class="pic-box" title="4" target="_blank">
<img src="/userfiles/images/hezuohuoban/4.jpg" alt="4">
</a>
</li>
</ul>
<li>
<a href="#" class="pic-box" title="3" target="_blank">
<img src="/userfiles/images/hezuohuoban/3.jpg" alt="3">
</a>
</li>
</ul>
</div><div class="swiper-slide">
<li>
<a href="#" class="pic-box" title="2" target="_blank">
<img src="/userfiles/images/20170516/link/1.png" alt="2">
</a>
</li>
</ul>
<li>
<a href="#" class="pic-box" title="1" target="_blank">
<img src="/userfiles/images/20170516/link/2.png" alt="1">
</a>
</li>
</ul>
<ul></ul>
</div>
</div>
</div>
<div class="swiper-container mobile">
<div class="swiper-wrapper">
<div class="swiper-slide">
<ul>
<li>
<a href="#" class="pic-box" title="9" target="_blank">
<img src="/userfiles/images/20170516/link/3.png" alt="9">
</a>
</li>
</ul>
<li>
<a href="#" class="pic-box" title="8" target="_blank">
<img src="/userfiles/images/20170516/link/4.png" alt="8">
</a>
</li>
</ul>
</div><div class="swiper-slide">
<li>
<a href="#" class="pic-box" title="7" target="_blank">
<img src="/userfiles/images/hezuohuoban/7.jpg" alt="7">
</a>
</li>
</ul>
<li>
<a href="#" class="pic-box" title="6" target="_blank">
<img src="/userfiles/images/20170516/link/5.png" alt="6">
</a>
</li>
</ul>
</div><div class="swiper-slide">
<li>
<a href="#" class="pic-box" title="4" target="_blank">
<img src="/userfiles/images/hezuohuoban/4.jpg" alt="4">
</a>
</li>
</ul>
<li>
<a href="#" class="pic-box" title="3" target="_blank">
<img src="/userfiles/images/hezuohuoban/3.jpg" alt="3">
</a>
</li>
</ul>
</div><div class="swiper-slide">
<li>
<a href="#" class="pic-box" title="2" target="_blank">
<img src="/userfiles/images/20170516/link/1.png" alt="2">
</a>
</li>
</ul>
<li>
<a href="#" class="pic-box" title="1" target="_blank">
<img src="/userfiles/images/20170516/link/2.png" alt="1">
</a>
</li>
</ul>
<ul></ul>
</div>
</div>
</div>
</div>
<i class="coop-prev"></i>
<i class="coop-next"></i>
</div>
<script type="text/javascript">
var mySwiper2;
var mySwiper3;
function coopSwiper() {
if ($('#main').attr('class') === 'pc') {
mySwiper3 = new Swiper('.i-coop-cont .normal', {
loop: true,
autoplay: 3000,
slidesPerView: 5,
nextButton: '.coop-next',
prevButton: '.coop-prev',
});
} else if ($('#main').attr('class') === 'mb') {
mySwiper4 = new Swiper('.i-coop-cont .mobile', {
loop: true,
autoplay: 3000,
slidesPerView: 2,
nextButton: '.coop-next',
prevButton: '.coop-prev',
});
}
}
var mySwiper = new Swiper('.banner .swiper-container', {
loop: true,
// 如果需要前进后退按钮
nextButton: '.banner-next',
prevButton: '.banner-prev',
autoplay: 3000,
})␍
</script>
</div>
</div>
</div>
+200 -58
View File
@@ -1,71 +1,213 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>@ViewData["Title"] - COMCMS.Web</title>
<environment include="Development">
<link rel="stylesheet" href="~/lib/bootstrap/dist/css/bootstrap.css" />
<link rel="stylesheet" href="~/css/site.css" />
</environment>
<environment exclude="Development">
<link rel="stylesheet" href="https://ajax.aspnetcdn.com/ajax/bootstrap/3.3.7/css/bootstrap.min.css"
asp-fallback-href="~/lib/bootstrap/dist/css/bootstrap.min.css"
asp-fallback-test-class="sr-only" asp-fallback-test-property="position" asp-fallback-test-value="absolute" />
<link rel="stylesheet" href="~/css/site.min.css" asp-append-version="true" />
</environment>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<title>@ViewBag.title</title>
<meta name="renderer" content="webkit" />
<meta name="keywords" content="@ViewBag.keywords">
<meta name="description" content="@ViewBag.description">
<link href="~/js/swpier/swiper.min.css" rel="stylesheet" />
<link href="~/images/default/style.css" rel="stylesheet" />
<script src="~/js/html5shiv.min.js"></script>
<script src="~/js/jquery2.min.js"></script>
<script src="~/js/swpier/swiper.min.js"></script>
<script src="~/js/public.js"></script>
</head>
<body>
<nav class="navbar navbar-inverse navbar-fixed-top">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a asp-area="" asp-controller="Home" asp-action="Index" class="navbar-brand">COMCMS.Web</a>
</div>
<div class="navbar-collapse collapse">
<ul class="nav navbar-nav">
<li><a asp-area="" asp-controller="Home" asp-action="Index">Home</a></li>
<li><a asp-area="" asp-controller="Home" asp-action="About">About</a></li>
<li><a asp-area="" asp-controller="Home" asp-action="Contact">Contact</a></li>
</ul>
<div class="pc" id="main" data-change="1">
<!-- 头部内容 -->
<div class="header">
<div class="cont">
<a href="/" title="@ViewBag.cfg.SiteName" class="logo">
<img src="@ViewBag.cfg.SiteLogo" alt="@ViewBag.cfg.SiteName">
</a>
<div class="menu-btn" onclick="mbNav()"><p class="pic-box"><i></i></p></div>
<div class="menu-box">
<div class="menu-bg"></div>
<ul class="nav-list">
<li id="nav_1"><a href="/" title="首页">首页</a><i></i></li>
<li id="nav_2"><a href="/Class.aspx?id=1" title="关于我们">关于我们</a><i></i></li>
<li id="nav_3"><a href="/Category.aspx?id=1" title="产品展示">产品展示</a><i></i></li>
<li id="nav_4"><a href="/Class.aspx?id=2" title="合作伙伴">合作伙伴</a><i></i></li>
<li id="nav_5"><a href="/Class.aspx?id=3" title="新闻资讯">新闻资讯</a><i></i></li>
<li id="nav_6"><a href="/Class.aspx?id=4" title="联系我们">联系我们</a><i></i></li>
</ul>
</div>
</div>
</div>
</nav>
<div class="container body-content">
@RenderBody()
<hr />
<footer>
<p>&copy; 2018 - COMCMS.Web</p>
</footer>
<!-- 底部内容 -->
<div class="footer">
<div class="foot-top">
<!-- 底部导航栏 移动端下显示 -->
<div class="foot-nav mobile">
<ul class="foot-list">
<li>
<a href="javascript:;">关于我们<i></i></a>
<ul class="foot-sec-nav">
<li><a href="/class.aspx?id=5" title="公司简介">公司简介</a></li>
<li><a href="/class.aspx?id=6" title="企业文化">企业文化</a></li>
<li><a href="/class.aspx?id=7" title="发展历程">发展历程</a></li>
<li><a href="/class.aspx?id=8" title="组织架构">组织架构</a></li>
<li><a href="/class.aspx?id=9" title="发展战略">发展战略</a></li>
<li><a href="/class.aspx?id=10" title="荣誉证书">荣誉证书</a></li>
</ul>
</li>
<li>
<a href="javascript:;">产品设备<i></i></a>
<ul class="foot-sec-nav">
<li><a href="/Category.aspx?id=1" title="医疗设备">医疗设备</a></li>
<li><a href="/Category.aspx?id=4" title="灯具">灯具</a></li>
<li><a href="/Category.aspx?id=2" title="进出口贸易">进出口贸易</a></li>
</ul>
</li>
<li>
<a href="javascript:;">新闻资讯<i></i></a>
<ul class="foot-sec-nav">
<li><a href="/class.aspx?id=12" title="公司新闻">公司新闻</a></li>
<li><a href="/class.aspx?id=17" title="行业资讯">行业资讯</a></li>
</ul>
</li>
<li>
<a href="javascript:;">用户服务<i></i></a>
<ul class="foot-sec-nav">
<li><a href="/class.aspx?id=18" title="健康小知识">健康小知识</a></li>
<li><a href="/class.aspx?id=19" title="政策信息">政策信息</a></li>
<li><a href="/class.aspx?id=20" title="常见问题">常见问题</a></li>
</ul>
</li>
<li>
<a href="javascript:;">联系我们<i></i></a>
<ul class="foot-sec-nav">
<li><a href="/class.aspx?id=13" title="联系方式">联系方式</a></li>
<li><a href="/class.aspx?id=14" title="在线留言">在线留言</a></li>
<li><a href="/class.aspx?id=15" title="人才招聘">人才招聘</a></li>
</ul>
</li>
</ul>
<script type="text/javascript">
$('.foot-list').on('click', 'a', function () {
var num = $('.foot-list > li').length;
var showed = $(this).parent('li').find('.foot-sec-nav').is(':visible');
var length = $(this).parent('li').find('.foot-sec-nav').length;
if (!showed) {
for (var i = 0; i < num; i++) {
$('.foot-sec-nav').eq(i).slideUp('slow');
$('.foot-list > li').eq(i).find('i').stop().removeClass('round1');
}
if (length > 0) {
$(this).parent('li').find('.foot-sec-nav').slideDown('slow');
$(this).parent('li').find('i').addClass('round1');
}
} else {
if (length > 0) {
$(this).parent('li').find('.foot-sec-nav').slideUp('slow');
$(this).parent('li').find('i').removeClass('round1');
}
}
});
</script>
</div>
<div class="cont">
<!-- 底部公司信息 -->
<div class="foot-info">
<div class="foot-title">
<span>COMCMS 内容管理系统</span>
<small>COMCMS Technology Co.,Ltd</small>
</div>
<div class="foot-info-cont">
<ul>
<li><span><i class="foot-ico3"></i>电话:</span><span>+86-20-88888888</span></li>
<li><span><i class="foot-ico1"></i>传真:</span><span>+86-20-88888888</span></li>
<li><span><i class="foot-ico2"></i>邮箱:</span><span>hogenwang@vip.qq.com</span></li>
<li><span><i class="foot-ico4"></i>地址:</span><span class="foot-address">广东省广州市天河区天河城</span></li>
</ul>
</div>
</div>
<!-- 底部在线留言 -->
<div class="foot-msg">
<span>在线留言</span>
<form class="foot-msg-box" id="msgFormFooter" onsubmit="return PostMsgFooter();">
<p><input type="text" name="name" id="name" value="" placeholder="姓名"></p>
<p><input type="text" name="phone" id="phone" value="" placeholder="电话"></p>
<p class="f-ta"><textarea name="intro" id="intro" rows="8" cols="80" placeholder="留言内容"></textarea></p>
<p><button type="submit" name="submit" id="submit">提 交</button></p>
</form>
</div>
<!-- 底部导航栏 PC版下显示-->
<div class="foot-nav normal">
<dl class="foot-nav-list">
<dt>关于我们</dt>
<dd><a href="/class.aspx?id=5" title="公司简介">公司简介</a></dd>
<dd><a href="/class.aspx?id=6" title="企业文化">企业文化</a></dd>
<dd><a href="/class.aspx?id=7" title="发展历程">发展历程</a></dd>
<dd><a href="/class.aspx?id=8" title="组织架构">组织架构</a></dd>
<dd><a href="/class.aspx?id=9" title="发展战略">发展战略</a></dd>
<dd><a href="/class.aspx?id=10" title="荣誉证书">荣誉证书</a></dd>
</dl>
<dl class="foot-nav-list">
<dt>新闻资讯</dt>
<dd><a href="/class.aspx?id=12" title="公司新闻">公司新闻</a></dd>
<dd><a href="/class.aspx?id=17" title="行业资讯">行业资讯</a></dd>
</dl>
<dl class="foot-nav-list">
<dt>产品设备</dt>
<dd><a href="/Category.aspx?id=1" title="医疗设备">医疗设备</a></dd>
<dd><a href="/Category.aspx?id=4" title="灯具">灯具</a></dd>
<dd><a href="/Category.aspx?id=2" title="进出口贸易">进出口贸易</a></dd>
</dl>
<dl class="foot-nav-list">
<dt>用户服务</dt>
<dd><a href="/class.aspx?id=18" title="健康小知识">健康小知识</a></dd>
<dd><a href="/class.aspx?id=19" title="政策信息">政策信息</a></dd>
<dd><a href="/class.aspx?id=20" title="常见问题">常见问题</a></dd>
</dl>
<dl class="foot-nav-list">
<dt>联系我们</dt>
<dd><a href="/class.aspx?id=13" title="联系方式">联系方式</a></dd>
<dd><a href="/class.aspx?id=14" title="在线留言">在线留言</a></dd>
<dd><a href="/class.aspx?id=15" title="人才招聘">人才招聘</a></dd>
</dl>
</div>
</div>
</div>
<div class="foot-bottom">
<div class="cont">
<span>@ViewBag.cfg.Copyright <a href="http://www.comcms.com/" target="_blank"> 技术支持:COMCMS</a>&nbsp;<a href="http://www.miitbeian.gov.cn/" target="_blank">粤ICP备8888888号-1</a></span>
</div>
</div>
</div>
</div>
<environment include="Development">
<script src="~/lib/jquery/dist/jquery.js"></script>
<script src="~/lib/bootstrap/dist/js/bootstrap.js"></script>
<script src="~/js/site.js" asp-append-version="true"></script>
</environment>
<environment exclude="Development">
<script src="https://ajax.aspnetcdn.com/ajax/jquery/jquery-2.2.0.min.js"
asp-fallback-src="~/lib/jquery/dist/jquery.min.js"
asp-fallback-test="window.jQuery"
crossorigin="anonymous"
integrity="sha384-K+ctZQ+LL8q6tP7I94W+qzQsfRV2a+AfHIi9k8z8l9ggpc8X+Ytst4yBo/hH+8Fk">
</script>
<script src="https://ajax.aspnetcdn.com/ajax/bootstrap/3.3.7/bootstrap.min.js"
asp-fallback-src="~/lib/bootstrap/dist/js/bootstrap.min.js"
asp-fallback-test="window.jQuery && window.jQuery.fn && window.jQuery.fn.modal"
crossorigin="anonymous"
integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa">
</script>
<script src="~/js/site.min.js" asp-append-version="true"></script>
</environment>
<script type="text/javascript">
$("#nav_1").addClass("nav-on");
init();
$(window).resize(function () {
init();
});
if (!IsPC()) {
cds();
}
proShow();
coopSwiper();
var mySwiper = new Swiper('.banner .swiper-container', {
loop: true,
@RenderSection("Scripts", required: false)
// 如果需要前进后退按钮
nextButton: '.banner-next',
prevButton: '.banner-prev',
autoplay: 3000,
})
var mySwiper1 = new Swiper('.banner .mobile', {
loop: true,
autoplay: 3000,
});
</script>
</body>
</html>
Binary file not shown.

After

Width:  |  Height:  |  Size: 174 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 179 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 175 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 174 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 556 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 742 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 393 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 393 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 282 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 319 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 348 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 334 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 82 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 288 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 242 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 243 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 278 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 266 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 146 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 96 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 393 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 393 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 95 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 106 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 106 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 463 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 181 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 196 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 237 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 251 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 191 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 92 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 153 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 63 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 161 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 80 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 93 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 270 B

+4
View File
@@ -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);
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+1015 -893
View File
File diff suppressed because it is too large Load Diff