完善前台演示
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user