Commit 875bf45f by guanzhenshan

增加用户名显示

parent b13807fd
<Project Sdk="Microsoft.NET.Sdk.Web"> <Project Sdk="Microsoft.NET.Sdk.Web">
<PropertyGroup> <PropertyGroup>
<TargetFramework>netcoreapp2.2</TargetFramework> <TargetFramework>netcoreapp2.1</TargetFramework>
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>
......
...@@ -47,8 +47,8 @@ ...@@ -47,8 +47,8 @@
<span><img alt="image" class="img-circle" src="css/hplus/img/profile_small.jpg" /></span> <span><img alt="image" class="img-circle" src="css/hplus/img/profile_small.jpg" /></span>
<a data-toggle="dropdown" class="dropdown-toggle" href="#"> <a data-toggle="dropdown" class="dropdown-toggle" href="#">
<span class="clear"> <span class="clear">
<span class="block m-t-xs"><strong class="font-bold">Beaut-zihan</strong></span> <span class="block m-t-xs"><strong class="font-bold" id="user-job">Beaut-zihan</strong></span>
<span class="text-muted text-xs block">百伦数据中心<b class="caret"></b></span> <span class="text-muted text-xs block" id="user-name">百伦数据中心</span>
</span> </span>
</a> </a>
</div> </div>
......
...@@ -31,7 +31,7 @@ namespace Bailun.DC.Web ...@@ -31,7 +31,7 @@ namespace Bailun.DC.Web
}); });
//עsession //עsession
services.AddSession(); //services.AddSession();
services.AddMvc().SetCompatibilityVersion(CompatibilityVersion.Version_2_1); services.AddMvc().SetCompatibilityVersion(CompatibilityVersion.Version_2_1);
...@@ -65,7 +65,7 @@ namespace Bailun.DC.Web ...@@ -65,7 +65,7 @@ namespace Bailun.DC.Web
//app.UseMvcWithDefaultRoute(); //app.UseMvcWithDefaultRoute();
// session // session
app.UseSession(); //app.UseSession();
app.UseMvc(routes => app.UseMvc(routes =>
{ {
......
...@@ -313,6 +313,10 @@ function login() { ...@@ -313,6 +313,10 @@ function login() {
userid = result.userid; userid = result.userid;
username = result.username; username = result.username;
jobs = result.jobs; jobs = result.jobs;
$('#user-job').html(jobs);
$('#user-name').html(username);
} }
else { else {
window.location = "http://www.bailuntec.com/Login/Index?guid=dbc0cffc7f4d11e8a4ca246e96754d42"; window.location = "http://www.bailuntec.com/Login/Index?guid=dbc0cffc7f4d11e8a4ca246e96754d42";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment