From d158d6c37004c7873ba3a3fdcc8eedc6f3d4c6f7 Mon Sep 17 00:00:00 2001 From: Edward Yang Date: Mon, 18 Jul 2022 11:59:56 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A8=A1=E6=9D=BF=E4=BB=A3=E7=A0=81=E4=BC=98?= =?UTF-8?q?=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- themes/black/home.blade.php | 15 ++++++++ themes/black/home2.blade.php | 11 ------ themes/default/home.blade.php | 71 ++--------------------------------- 3 files changed, 18 insertions(+), 79 deletions(-) create mode 100644 themes/black/home.blade.php delete mode 100644 themes/black/home2.blade.php diff --git a/themes/black/home.blade.php b/themes/black/home.blade.php new file mode 100644 index 00000000..bd960ffa --- /dev/null +++ b/themes/black/home.blade.php @@ -0,0 +1,15 @@ +@extends('layout.master') +@section('body-class', 'page-home') +@section('content') + + +
+
+
+ 这里是 black 模板, 系统优先读取, 删除该文件即可调用 default 模板 +
+
+
+ + +@endsection diff --git a/themes/black/home2.blade.php b/themes/black/home2.blade.php deleted file mode 100644 index 83c201ef..00000000 --- a/themes/black/home2.blade.php +++ /dev/null @@ -1,11 +0,0 @@ -@extends('layout.master') -@section('body-class', 'page-home') -@section('content') - -黑色模板开始 - -{!! $html !!} - -黑色模板结束 - -@endsection diff --git a/themes/default/home.blade.php b/themes/default/home.blade.php index e4a4a136..df177d09 100644 --- a/themes/default/home.blade.php +++ b/themes/default/home.blade.php @@ -3,74 +3,9 @@ @section('content') -@foreach($modules as $module) - @include($module['view_path'], $module) -@endforeach + @foreach($modules as $module) + @include($module['view_path'], $module) + @endforeach -{{-- --}} -{{--
--}} -{{-- @foreach ($categories as $category) - {{ $category->description->name }} -@endforeach --}} -{{--
-
-
-
-
-
- - -
-
-
-
-
-
-
-
推荐商品模块
-
- -
- @foreach ($category_products as $products) -
-
- @foreach ($products as $product) -
- @include('shared.product') -
- @endforeach -
-
- @endforeach -
-
-
- -
- -
- -
-
推荐品牌模块
-
-
- @for ($i = 0; $i < 8; $i++) -
-
-
- @endfor -
-
-
--}} @endsection