更新:资源文件更新

virtual
zwesy 2020-12-01 09:10:02 +08:00
parent 37f09c42de
commit 47948c6864
27 changed files with 20 additions and 17 deletions

View File

@ -128,18 +128,21 @@ class Category extends Base
{
$crumbs = [];
$category = self::getById($currentId);
if($category) {
if($category['parent_id'] != 0){
$categoryIds = explode(',', trim($category['path'], ','));
$categories = self::where('id', 'in', $categoryIds)->column('*', 'id');
foreach($categoryIds as $id){
if(isset($categories[$id])){
$crumbs[] = $categories[$id]['title'];
}
}
}
$crumbs[] = $category['title'];
}
if($category['parent_id'] == 0){
$crumbs[] = $category;
}else{
$categoryIds = explode(',', trim($category['path'], ','));
$categories = self::alias('c')
->leftJoin('model m', 'c.model_id = m.id')
->where('c.id', 'in', $categoryIds)
->column('c.*,m.template', 'c.id');
foreach($categoryIds as $id){
if(isset($categories[$id])){
$crumbs[] = $categories[$id];
}
}
$crumbs[] = $category;
}
return $crumbs;
}

View File

@ -165,7 +165,7 @@ input,select,textarea{outline:medium none; resize: none;}
.foot-box .lower-box .ewm img{ width: 134px;}
.page-banner{ height: 40.625rem; position: relative; background-position: center; background-size: cover; position: relative; z-index: 2;}
.page-banner .info{ width: 100%; position: absolute; left: 0; bottom: 2.5rem; color: #fff;}
.page-banner .info{ width: 100%; position: absolute; left: 0; bottom: 2.5rem; color: #fff; padding-bottom: ;}
.page-banner .info strong{ font-size: 3.125rem; text-shadow: 0 0 5px rgba(0,0,0,0.5);}
.page-banner .info p{ font-size: 1.875rem; text-shadow: 0 0 5px rgba(0,0,0,0.5);}
.page-banner .info .w-1200{ position: relative;}

Binary file not shown.

After

Width:  |  Height:  |  Size: 499 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 571 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 92 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 84 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 173 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 139 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 117 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 74 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 78 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 92 KiB

View File

@ -3,7 +3,7 @@
<div class="all_center_box">
{php}
$bgImg = '__IMG__/page_ban1.jpg'; // 默认背景图
if (isset($category) && !empty(trim($category['src'])) && file_exists('./'.$category['src'])) {
if (isset($category) && !empty(trim($category['src'])) && file_exists('.'.$category['src'])) {
$bgImg = $category.src;
}
{/php}
@ -37,7 +37,7 @@
$target = '';
}
$imgSrc = '__IMG__/article_bg.jpg';
if (!empty(trim($item['src'])) && file_exists('./'.$item['src'])) {
if (!empty(trim($item['src'])) && file_exists('.'.$item['src'])) {
$imgSrc = $item['src'];
}
{/php}
@ -76,7 +76,7 @@
$target = '';
}
$imgSrc = '__IMG__/article_bg.jpg';
if (!empty(trim($item['src'])) && file_exists('./'.$item['src'])) {
if (!empty(trim($item['src'])) && file_exists('.'.$item['src'])) {
$imgSrc = $item['src'];
}
{/php}

View File

@ -5,7 +5,7 @@
{if $isContent}
{foreach $cateCrumbs as $k => $cate}
{if $k != 0}-{/if}
<a><cite>{$cate}</cite></a>
<a><cite>{$cate.title}</cite></a>
{/foreach}
{elseif !empty($rule) /}
<a><cite>{$rule.title}</cite></a>