feat: 数据迁移命令
This commit is contained in:
26
app/index/controller/Article.php
Normal file
26
app/index/controller/Article.php
Normal file
@@ -0,0 +1,26 @@
|
||||
<?php
|
||||
declare (strict_types = 1);
|
||||
|
||||
namespace app\index\controller;
|
||||
|
||||
use think\facade\View;
|
||||
|
||||
class Article extends Common
|
||||
{
|
||||
/**
|
||||
* 文件列表
|
||||
*/
|
||||
public function index()
|
||||
{
|
||||
|
||||
return View::fetch('index');
|
||||
}
|
||||
|
||||
/**
|
||||
* 文章详情
|
||||
*/
|
||||
public function detail()
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
@@ -12,13 +12,24 @@ 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('search', 'Product/search');
|
||||
});
|
||||
|
||||
// 文章相关路由
|
||||
Route::group('article', function() {
|
||||
// 文章列表页
|
||||
Route::get('index/:id', 'Article/index');
|
||||
// 文章详情页
|
||||
Route::get('detail/:id', 'Article/detail');
|
||||
// 文章搜索页
|
||||
Route::get('search', 'Article/search');
|
||||
});
|
||||
|
||||
// 数据迁移
|
||||
|
||||
73
app/index/view/article/index.html
Normal file
73
app/index/view/article/index.html
Normal file
@@ -0,0 +1,73 @@
|
||||
{extend name="public/base" /}
|
||||
{block name="style"}
|
||||
<link rel="stylesheet" type="text/css" href="/static/index/css/category.css" />
|
||||
{/block}
|
||||
{block name="main"}
|
||||
<div class="orico_Page_category">
|
||||
<!--内容 -->
|
||||
<div class="categoryMain">
|
||||
<img src="categoryImg/eng-blog.jpg" class="categorybgimg" />
|
||||
<!-- 切换-->
|
||||
<div class="tabs">
|
||||
<div class="tabitme on">News</div>
|
||||
<div class="tabitme">Blogs</div>
|
||||
</div>
|
||||
<!--搜索-->
|
||||
<div class="categorySearch">
|
||||
<i class="search_icon"></i>
|
||||
<input type="text" placeholder="Search" class="search" id="article-search-in" value="">
|
||||
</div>
|
||||
<!-- 切换内容-->
|
||||
<div class="tabConten">
|
||||
<div class="tbmain">
|
||||
<div class="Contenitem">
|
||||
<a>
|
||||
<img src="categoryImg/t1.jpg" />
|
||||
<h3>ORICO Highlights Next-Gen Portable Data Storage and Charging Solution at Global
|
||||
Sources Mobile Electronics 2024 Fall</h3>
|
||||
<p>Hong Kong AsiaWorld-Expo, October 18-21, 2024 - A long-time Global Sources Mobile
|
||||
Electronics exhibitor, ORICO made a splash at the show with its cutting-edge
|
||||
next-generation portable data storage and...</p>
|
||||
</a>
|
||||
</div>
|
||||
<div class="Contenitem">
|
||||
<a>
|
||||
<img src="categoryImg/t1.jpg" />
|
||||
<h3>ORICO Highlights Next-Gen Portable Data Storage and Charging Solution at Global
|
||||
Sources Mobile Electronics 2024 Fall</h3>
|
||||
<p>Hong Kong AsiaWorld-Expo, October 18-21, 2024 - A long-time Global Sources Mobile
|
||||
Electronics exhibitor, ORICO made a splash at the show with its cutting-edge
|
||||
next-generation portable data storage and...</p>
|
||||
</a>
|
||||
</div>
|
||||
<div class="Contenitem">
|
||||
<a>
|
||||
<img src="categoryImg/t1.jpg" />
|
||||
<h3>ORICO Highlights Next-Gen Portable Data Storage and Charging Solution at Global
|
||||
Sources Mobile Electronics 2024 Fall</h3>
|
||||
<p>Hong Kong AsiaWorld-Expo, October 18-21, 2024 - A long-time Global Sources Mobile
|
||||
Electronics exhibitor, ORICO made a splash at the show with its cutting-edge
|
||||
next-generation portable data storage and...</p>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
<!-- 分页-->
|
||||
<div class="Page">
|
||||
<span class="p_page">
|
||||
<a class="a_prev"></a>
|
||||
<em class="num">
|
||||
<a class="a_cur">1</a>
|
||||
<a>2</a>
|
||||
<a>3</a>
|
||||
<a>4</a>
|
||||
</em>
|
||||
<a class="a_next"></a>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{/block}
|
||||
{block name="script"}
|
||||
|
||||
{/block}
|
||||
Reference in New Issue
Block a user