修复缓存问题,开始使用scss重构

This commit is contained in:
2022-03-26 18:33:24 +08:00
parent e72f20a538
commit 9cb26e2cbf
8 changed files with 437 additions and 387 deletions

View File

@@ -11,92 +11,95 @@ use think\Request;
class Index extends Common
{
/**
* 显示资源列表
*
* @return \think\Response
*/
public function index($post_id = 0)
{
/**
* 显示资源列表
*
* @return \think\Response
*/
public function index($doc_name = '')
{
$list_post = Post::quickSelect();
if (empty($post_id)) {
$model_post = $list_post->first()->post->first();
} else {
$model_post = Post::quickFind($post_id);
$list_post = Post::quickSelect();
if (empty($doc_name)) {
$model_post = $list_post->first()->post->first();
} else {
if (is_numeric($doc_name)) {
$model_post = Post::quickFind($doc_name);
} else {
$model_post = Post::quickFindByTplName($doc_name);
}
}
View::assign('model_post', $model_post);
View::assign('list_post', $list_post);
return View::fetch();
}
View::assign('model_post', $model_post);
View::assign('list_post', $list_post);
/**
* 显示创建资源表单页.
*
* @return \think\Response
*/
public function create()
{
//
}
return View::fetch();
}
/**
* 保存新建的资源
*
* @param \think\Request $request
* @return \think\Response
*/
public function save(Request $request)
{
//
}
/**
* 显示指定的资源
*
* @param int $id
* @return \think\Response
*/
public function read($id)
{
//
}
/**
* 显示创建资源表单页.
*
* @return \think\Response
*/
public function create()
{
//
}
/**
* 显示编辑资源表单页.
*
* @param int $id
* @return \think\Response
*/
public function edit($id)
{
//
}
/**
* 保存新的资源
*
* @param \think\Request $request
* @return \think\Response
*/
public function save(Request $request)
{
//
}
/**
* 保存新的资源
*
* @param \think\Request $request
* @param int $id
* @return \think\Response
*/
public function update(Request $request, $id)
{
//
}
/**
* 显示指定资源
*
* @param int $id
* @return \think\Response
*/
public function read($id)
{
//
}
/**
* 显示编辑资源表单页.
*
* @param int $id
* @return \think\Response
*/
public function edit($id)
{
//
}
/**
* 保存更新的资源
*
* @param \think\Request $request
* @param int $id
* @return \think\Response
*/
public function update(Request $request, $id)
{
//
}
/**
* 删除指定资源
*
* @param int $id
* @return \think\Response
*/
public function delete($id)
{
//
}
/**
* 删除指定资源
*
* @param int $id
* @return \think\Response
*/
public function delete($id)
{
//
}
}