diff --git a/app/index/controller/Brand.php b/app/index/controller/Brand.php new file mode 100644 index 00000000..6cf7fd5d --- /dev/null +++ b/app/index/controller/Brand.php @@ -0,0 +1,43 @@ + $this->lang_id, + 'unique_label' => 'BANNER_67ff632a5f7aa' + ]) + ->type('image') + ->enabled(true) + ->visible(['id', 'title', 'title_txt_color', 'image', 'desc', 'desc_txt_color', 'link']) + ->order(['sort' => 'asc', 'id' => 'desc']) + ->select(); + View::assign('banners', $banners); + + return View::fetch('story'); + } + + /** + * 品牌里程 + */ + public function mileage() + { + + return View::fetch('mileage'); + } +} diff --git a/app/index/route/route.php b/app/index/route/route.php index add0a31e..f349a2d7 100644 --- a/app/index/route/route.php +++ b/app/index/route/route.php @@ -48,5 +48,13 @@ Route::group('faq', function() { Route::get('index', 'Faq/index'); }); +// 品牌 +Route::group('brand', function() { + // 品牌故事 + Route::get('story', 'Brand/story'); + // 品牌里程 + Route::get('mileage', 'Brand/mileage'); +}); + // 数据迁移 Route::get('/data/migration', 'DataMigration/index'); diff --git a/app/index/view/brand/mileage.html b/app/index/view/brand/mileage.html new file mode 100644 index 00000000..e69de29b diff --git a/app/index/view/brand/story.html b/app/index/view/brand/story.html new file mode 100644 index 00000000..eb5ada2d --- /dev/null +++ b/app/index/view/brand/story.html @@ -0,0 +1,43 @@ +{extend name="public/base" /} +{block name="style"} + +{/block} +{block name="main"} +
+ {notempty name="banners"}
+ {$ba.title}
+{$ba.title}
+