Former-commit-id: 8080970b7f8edd0d6afccc762da7a4e85549f833
TangShanKaiPing
wanggang 6 years ago
parent a7f5aead33
commit 24f4c2eb29

@ -3,7 +3,7 @@
"windowsAuthentication": false, "windowsAuthentication": false,
"anonymousAuthentication": true, "anonymousAuthentication": true,
"iisExpress": { "iisExpress": {
"applicationUrl": "http://localhost:8082", "applicationUrl": "http://localhost:8003",
"sslPort": 0 "sslPort": 0
} }
}, },
@ -21,7 +21,7 @@
"environmentVariables": { "environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development" "ASPNETCORE_ENVIRONMENT": "Development"
}, },
"applicationUrl": "http://localhost:8082" "applicationUrl": "http://localhost:8003"
} }
} }
} }

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.7 KiB

@ -168,6 +168,7 @@ namespace UserCenter
var host = "localhost"; var host = "localhost";
dbContext.Set<Site>().Add(new Site dbContext.Set<Site>().Add(new Site
{ {
Icon = "/images/iotcenter.png",
Name = "物联网平台", Name = "物联网平台",
Description = "智能设备管控中心", Description = "智能设备管控中心",
Home = $"http://{host}:8001/", Home = $"http://{host}:8001/",
@ -177,6 +178,7 @@ namespace UserCenter
}); });
dbContext.Set<Site>().Add(new Site dbContext.Set<Site>().Add(new Site
{ {
Icon = "/images/studycenter.png",
Name = "学习平台", Name = "学习平台",
Description = "资源库、在线学习、网络课程中心", Description = "资源库、在线学习、网络课程中心",
Home = $"http://{host}:8082/", Home = $"http://{host}:8082/",

@ -1,21 +1,4 @@
@model List<Site> @model List<Site>
@{ @{
HtmlTitle = "用户中心"; HtmlTitle = "用户中心";
} }
<div class="row">
@foreach (var site in Model)
{
<div class="col-lg-3 col-xs-6">
<div class="small-box bg-green">
<div class="inner">
<h2><img style="height:1em;" src="@(site.Icon??"/images/empty.png")" /> @site.Name</h2>
<p>@site.Description</p>
</div>
<div class="icon">
<i class="ion ion-bag"></i>
</div>
<a href="@site.Home" class="small-box-footer">More info <i class="fa fa-arrow-circle-right"></i></a>
</div>
</div>
}
</div>

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.7 KiB

Loading…
Cancel
Save