完善前台演示

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
+18 -1
View File
@@ -7,7 +7,24 @@
int topkid = ViewBag.kind.PId > 0 ? ViewBag.kind.PId : ViewBag.kind.Id;
}
<div class="banner normal sec-banner">
<em style="background: url('/images/default/slide-1.jpg') center top no-repeat; background-size:cover"></em>
@if (string.IsNullOrEmpty(ViewBag.kind.BannerImg))
{
<em style="background: url('/images/default/slide-1.jpg') center top no-repeat; background-size: 100%;"></em>
}
else
{
<em style="background: url('@ViewBag.kind.BannerImg') center top no-repeat; background-size: 100%;"></em>
}
</div>
<div class="banner mobile sec-banner">
@if (string.IsNullOrEmpty(ViewBag.kind.BannerImg))
{
<em style="background: url('/images/default/slide-1.jpg') center top no-repeat; background-size: 100%;"></em>
}
else
{
<em style="background: url('@ViewBag.kind.BannerImg') center top no-repeat; background-size: 100%;"></em>
}
</div>
<div class="sec-nav">