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"} +
+ {volist name="banners" id="ba" offset="0" length="2"} +
+
+
+

{$ba.title}

+
+
{$ba.desc|raw}
+
+
+ +
+
+
+ {/volist} +
+
+
+ {volist name="banners" id="ba" offset="2" length="3"} +
+
+
+

{$ba.title}

+
+
{$ba.desc|raw}
+
+ {/volist} +
+
+ {/notempty} +
+
+{/block} \ No newline at end of file diff --git a/public/static/index/css/brand.css b/public/static/index/css/brand.css index 67b10c1e..9cf87014 100755 --- a/public/static/index/css/brand.css +++ b/public/static/index/css/brand.css @@ -1,7 +1,7 @@ .orico_Page_brand { width: 100%; position: relative; - height: 100vh; + height: auto; overflow-y: auto; overflow-x: hidden; background: #f2f2f2; diff --git a/public/static/index/images/OurBrand.png b/public/static/index/images/OurBrand.png new file mode 100755 index 00000000..6add4876 Binary files /dev/null and b/public/static/index/images/OurBrand.png differ