feat: index - 首页及顶部导航处理
This commit is contained in:
25
app/index/route/route.php
Normal file
25
app/index/route/route.php
Normal file
@@ -0,0 +1,25 @@
|
||||
<?php
|
||||
// +----------------------------------------------------------------------
|
||||
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
|
||||
// +----------------------------------------------------------------------
|
||||
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
|
||||
// +----------------------------------------------------------------------
|
||||
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
|
||||
// +----------------------------------------------------------------------
|
||||
// | Author: liu21st <liu21st@gmail.com>
|
||||
// +----------------------------------------------------------------------
|
||||
use think\facade\Route;
|
||||
|
||||
Route::get('/', 'Index/index');
|
||||
|
||||
Route::group('product', function() {
|
||||
// 产品列表页
|
||||
Route::get('index/:id', 'Product/index')->name('product_index');
|
||||
// 产品详情页
|
||||
Route::get('detail/:id', 'Product/detail')->name('product_detail');
|
||||
// 产品搜索页
|
||||
Route::get('search', 'Product/search')->name('product_search');
|
||||
});
|
||||
|
||||
// 数据迁移
|
||||
Route::get('/data/migration', 'DataMigration/index');
|
||||
Reference in New Issue
Block a user