导航调整
parent
ab4f24febe
commit
fb83f8192d
|
@ -14,7 +14,8 @@ $bg_mobile = $firstCategory['bg_mobile'];
|
|||
|
||||
$bgImg = $isMobile? $bg_mobile : $bg_pc;
|
||||
$bgImg = trim($bgImg);
|
||||
$bgImg = $bgImg ?: '/static/web/images/public/header-bg.jpg';
|
||||
$defaultBg = request()->controller() == 'Index' ? '' : '/static/web/images/public/header-bg.jpg';
|
||||
$bgImg = $bgImg ?: $defaultBg;
|
||||
{/php}
|
||||
<!-- 头部 -->
|
||||
<div class="header {$Request.controller == 'Index' ? 'no-background' : ''} w100" style="background-image:url({$bgImg})">
|
||||
|
|
Loading…
Reference in New Issue