导航调整

master
yin5th 2022-11-05 23:41:59 +08:00
parent ab4f24febe
commit fb83f8192d
1 changed files with 2 additions and 1 deletions

View File

@ -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})">