重构客户端测试页面
This commit is contained in:
parent
0db404d0c9
commit
f713a8ae1e
|
@ -194,7 +194,6 @@
|
|||
<Content Include="Content\js\Longbow.Common.js" />
|
||||
<Content Include="Content\js\messages_zh.js" />
|
||||
<Content Include="Content\js\messages_zh.min.js" />
|
||||
<Content Include="Content\html\DeviceTest.htm" />
|
||||
<Content Include="Scripts\Content.js" />
|
||||
<Content Include="Scripts\Dicts.js" />
|
||||
<Content Include="Scripts\Exceptions.js" />
|
||||
|
@ -319,6 +318,8 @@
|
|||
<Content Include="Views\Admin\Messages.cshtml" />
|
||||
<Content Include="Views\Admin\Tasks.cshtml" />
|
||||
<Content Include="Views\Admin\Mobile.cshtml" />
|
||||
<Content Include="Views\Shared\_Mobile.cshtml" />
|
||||
<Content Include="Views\Home\Mobile.cshtml" />
|
||||
<None Include="Web.Debug.config">
|
||||
<DependentUpon>Web.config</DependentUpon>
|
||||
</None>
|
||||
|
|
|
@ -1,22 +0,0 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title></title>
|
||||
<meta charset="utf-8" />
|
||||
<script src="../js/jquery-1.10.2.js"></script>
|
||||
<script src="../js/Longbow.Common.js"></script>
|
||||
<script>
|
||||
var browser = $.browser;
|
||||
document.writeln("语言版本:" + browser.language + "</br>");
|
||||
document.writeln("是否为移动终端:" + browser.versions.mobile + "</br>");
|
||||
document.writeln("ios终端:" + browser.versions.ios + "</br>");
|
||||
document.writeln("android终端:" + browser.versions.android + "</br>");
|
||||
document.writeln("是否为iPhone:" + browser.versions.iPhone + "</br>");
|
||||
document.writeln("是否iPad:" + browser.versions.iPad + "</br>");
|
||||
document.writeln(navigator.userAgent);
|
||||
document.writeln(JSON.stringify(browser.versions));
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
</body>
|
||||
</html>
|
|
@ -140,7 +140,6 @@ namespace Bootstrap.Admin.Controllers
|
|||
///
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[AllowAnonymous]
|
||||
public ActionResult Mobile()
|
||||
{
|
||||
var v = new NavigatorBarModel("~/Admin/Mobile");
|
||||
|
|
|
@ -85,5 +85,14 @@ namespace Bootstrap.Admin.Controllers
|
|||
else
|
||||
return View();
|
||||
}
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[AllowAnonymous]
|
||||
public ActionResult Mobile()
|
||||
{
|
||||
return View();
|
||||
}
|
||||
}
|
||||
}
|
|
@ -10,65 +10,10 @@
|
|||
}
|
||||
</style>
|
||||
}
|
||||
@section Javascript {
|
||||
<script>
|
||||
$(function () {
|
||||
var browser = $.browser;
|
||||
$('#language').text(browser.language);
|
||||
$('#mobile').text(browser.versions.mobile);
|
||||
$('#webapp').text(browser.versions.webApp);
|
||||
$('#webkit').text(browser.versions.webKit);
|
||||
$('#ios').text(browser.versions.ios);
|
||||
$('#android').text(browser.versions.android);
|
||||
$('#iphone').text(browser.versions.iPhone);
|
||||
$('#ipad').text(browser.versions.iPad);
|
||||
$('#useragent').text(navigator.userAgent);
|
||||
$('#versions').text(JSON.stringify(browser.versions));
|
||||
});
|
||||
</script>
|
||||
}
|
||||
@section header {
|
||||
@Html.Partial("Header", Model)
|
||||
}
|
||||
@section navigator {
|
||||
@Html.Partial("Navigator", Model)
|
||||
}
|
||||
<div class="form-group">
|
||||
<label class="control-label">语言版本:</label>
|
||||
<label id="language" class="form-control-static"></label>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="control-label">是否为移动终端:</label>
|
||||
<label id="mobile" class="form-control-static"></label>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="control-label">webApp:</label>
|
||||
<label id="webapp" class="form-control-static"></label>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="control-label">webKit:</label>
|
||||
<label id="webkit" class="form-control-static"></label>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="control-label">ios终端:</label>
|
||||
<label id="ios" class="form-control-static"></label>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="control-label">android终端:</label>
|
||||
<label id="android" class="form-control-static"></label>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="control-label">是否为iPhone:</label>
|
||||
<label id="iphone" class="form-control-static"></label>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="control-label">是否iPad:</label>
|
||||
<label id="ipad" class="form-control-static"></label>
|
||||
</div><div class="form-group">
|
||||
<label class="control-label">userAgent:</label>
|
||||
<label id="useragent" class="form-control-static"></label>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="control-label">versions:</label>
|
||||
<label id="versions" class="form-control-static"></label>
|
||||
</div>
|
||||
@Html.Partial("_Mobile")
|
|
@ -0,0 +1,18 @@
|
|||
@{
|
||||
ViewBag.Title = "客户端测试";
|
||||
Layout = "~/Views/Shared/_Layout.cshtml";
|
||||
}
|
||||
@section css {
|
||||
<style type="text/css">
|
||||
label {
|
||||
word-break: break-all;
|
||||
}
|
||||
|
||||
section {
|
||||
padding-top: 15px;
|
||||
}
|
||||
</style>
|
||||
}
|
||||
<section class="container-fluid">
|
||||
@Html.Partial("_Mobile")
|
||||
</section>
|
|
@ -0,0 +1,54 @@
|
|||
<div class="form-group">
|
||||
<label class="control-label">语言版本:</label>
|
||||
<label id="language" class="form-control-static"></label>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="control-label">是否为移动终端:</label>
|
||||
<label id="mobile" class="form-control-static"></label>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="control-label">webApp:</label>
|
||||
<label id="webapp" class="form-control-static"></label>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="control-label">webKit:</label>
|
||||
<label id="webkit" class="form-control-static"></label>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="control-label">ios终端:</label>
|
||||
<label id="ios" class="form-control-static"></label>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="control-label">android终端:</label>
|
||||
<label id="android" class="form-control-static"></label>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="control-label">是否为iPhone:</label>
|
||||
<label id="iphone" class="form-control-static"></label>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="control-label">是否iPad:</label>
|
||||
<label id="ipad" class="form-control-static"></label>
|
||||
</div><div class="form-group">
|
||||
<label class="control-label">userAgent:</label>
|
||||
<label id="useragent" class="form-control-static"></label>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="control-label">versions:</label>
|
||||
<label id="versions" class="form-control-static"></label>
|
||||
</div>
|
||||
<script>
|
||||
window.onload = function () {
|
||||
var browser = $.browser;
|
||||
$('#language').text(browser.language);
|
||||
$('#mobile').text(browser.versions.mobile);
|
||||
$('#webapp').text(browser.versions.webApp);
|
||||
$('#webkit').text(browser.versions.webKit);
|
||||
$('#ios').text(browser.versions.ios);
|
||||
$('#android').text(browser.versions.android);
|
||||
$('#iphone').text(browser.versions.iPhone);
|
||||
$('#ipad').text(browser.versions.iPad);
|
||||
$('#useragent').text(navigator.userAgent);
|
||||
$('#versions').text(JSON.stringify(browser.versions));
|
||||
};
|
||||
</script>
|
|
@ -48,7 +48,7 @@ INSERT [dbo].[Navigations] ([ID], [ParentId], [Name], [Order], [Icon], [Url], [C
|
|||
INSERT [dbo].[Navigations] ([ID], [ParentId], [Name], [Order], [Icon], [Url], [Category]) VALUES (18, 0, N'工具集合', 160, N'fa fa-gavel', N'#', N'0')
|
||||
INSERT [dbo].[Navigations] ([ID], [ParentId], [Name], [Order], [Icon], [Url], [Category]) VALUES (19, 18, N'客户端测试', 10, N'fa fa-wrench', N'~/Admin/Mobile', N'0')
|
||||
INSERT [dbo].[Navigations] ([ID], [ParentId], [Name], [Order], [Icon], [Url], [Category]) VALUES (20, 0, N'工具集合', 20, N'fa fa-gavel', N'#', N'1')
|
||||
INSERT [dbo].[Navigations] ([ID], [ParentId], [Name], [Order], [Icon], [Url], [Category]) VALUES (21, 20, N'客户端测试', 10, N'fa fa-wrench', N'../Content/html/DeviceTest.htm', N'1')
|
||||
INSERT [dbo].[Navigations] ([ID], [ParentId], [Name], [Order], [Icon], [Url], [Category]) VALUES (21, 20, N'客户端测试', 10, N'fa fa-wrench', N'../Home/Mobile', N'1')
|
||||
SET IDENTITY_INSERT [dbo].[Navigations] OFF
|
||||
|
||||
DELETE FROM GROUPS WHERE ID = 1
|
||||
|
|
Loading…
Reference in New Issue