完善前台演示

This commit is contained in:
2018-12-02 20:28:09 +08:00
parent 69c3133e4c
commit 06a724a7ae
24 changed files with 839 additions and 378 deletions
+21 -3
View File
@@ -9,7 +9,25 @@
}
<div class="banner normal sec-banner">
<em style="background: url('/images/default/slide-1.jpg') center top no-repeat; background-size: 100%;"></em>
@if (string.IsNullOrEmpty(Model.BannerImg))
{
<em style="background: url('/images/default/slide-1.jpg') center top no-repeat; background-size: 100%;"></em>
}
else
{
<em style="background: url('@Model.BannerImg') center top no-repeat; background-size: 100%;"></em>
}
</div>
<!-- mb banner -->
<div class="banner mobile sec-banner">
@if (string.IsNullOrEmpty(Model.BannerImg))
{
<em style="background: url('/images/default/slide-1.jpg') center top no-repeat; background-size: 100%;"></em>
}
else
{
<em style="background: url('@Model.BannerImg') center top no-repeat; background-size: 100%;"></em>
}
</div>
@if (Model.PId > 0)
{
@@ -51,7 +69,7 @@
<div class="news-pic">
<div class="pic-box">
<img src="/userfiles/images/new/150.jpg" alt="@a.Title">
<img src="@a.Pic" alt="@a.Title">
</div>
</div>
}
@@ -72,7 +90,7 @@
</ul>
<!-- 分页按钮 -->
<div class="normal">
@Html.Raw(Pages.GetPageStr(ViewBag.pagesize, (int)ViewBag.totalCount, ViewBag.page, $"/Article/Index/{Model.Id}" + "?page={0}", 99, 10, ""))
</div>
<!-- 点击加载更多 -->
</div>