Commit 875bf45f by guanzhenshan

增加用户名显示

parent b13807fd
<Project Sdk="Microsoft.NET.Sdk.Web">
<PropertyGroup>
<TargetFramework>netcoreapp2.2</TargetFramework>
<TargetFramework>netcoreapp2.1</TargetFramework>
</PropertyGroup>
<ItemGroup>
......
......@@ -47,8 +47,8 @@
<span><img alt="image" class="img-circle" src="css/hplus/img/profile_small.jpg" /></span>
<a data-toggle="dropdown" class="dropdown-toggle" href="#">
<span class="clear">
<span class="block m-t-xs"><strong class="font-bold">Beaut-zihan</strong></span>
<span class="text-muted text-xs block">百伦数据中心<b class="caret"></b></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" id="user-name">百伦数据中心</span>
</span>
</a>
</div>
......
......@@ -31,7 +31,7 @@ namespace Bailun.DC.Web
});
//עsession
services.AddSession();
//services.AddSession();
services.AddMvc().SetCompatibilityVersion(CompatibilityVersion.Version_2_1);
......@@ -65,7 +65,7 @@ namespace Bailun.DC.Web
//app.UseMvcWithDefaultRoute();
// session
app.UseSession();
//app.UseSession();
app.UseMvc(routes =>
{
......
......@@ -313,6 +313,10 @@ function login() {
userid = result.userid;
username = result.username;
jobs = result.jobs;
$('#user-job').html(jobs);
$('#user-name').html(username);
}
else {
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