This commit is contained in:
Dai 2024-07-23 07:40:19 +08:00
commit 4df073c506
4 changed files with 102 additions and 0 deletions

View File

@ -0,0 +1,20 @@
<?php
namespace app\h5\controller;
use support\Request;
class IndexController
{
public function student(Request $request)
{
return view('student/index');
}
public function teacher(Request $request)
{
return view('teacher/index');
}
}

View File

@ -0,0 +1,39 @@
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>恭喜,站点创建成功【学生】!</title>
<style>
.container {
width: 60%;
margin: 10% auto 0;
background-color: #f0f0f0;
padding: 2% 5%;
border-radius: 10px
}
ul {
padding-left: 20px;
}
ul li {
line-height: 2.3
}
a {
color: #20a53a
}
</style>
</head>
<body>
<div class="container">
<h1>恭喜, 站点创建成功 student</h1>
<h3>这是默认index.html本页面由系统自动生成</h3>
<ul>
<li>本页面在FTP根目录下的index.html</li>
<li>您可以修改、删除或覆盖本页面</li>
<li>FTP相关信息请到“面板系统后台 > FTP” 查看</li>
</ul>
</div>
</body>
</html>

View File

@ -0,0 +1,39 @@
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>恭喜,站点创建成功【教师】!</title>
<style>
.container {
width: 60%;
margin: 10% auto 0;
background-color: #f0f0f0;
padding: 2% 5%;
border-radius: 10px
}
ul {
padding-left: 20px;
}
ul li {
line-height: 2.3
}
a {
color: #20a53a
}
</style>
</head>
<body>
<div class="container">
<h1>恭喜, 站点创建成功 teacher</h1>
<h3>这是默认index.html本页面由系统自动生成</h3>
<ul>
<li>本页面在FTP根目录下的index.html</li>
<li>您可以修改、删除或覆盖本页面</li>
<li>FTP相关信息请到“面板系统后台 > FTP” 查看</li>
</ul>
</div>
</body>
</html>

View File

@ -13,9 +13,13 @@
*/ */
use Webman\Route; use Webman\Route;
// 默认路由 // 默认路由
Route::any('/', [\plugin\admin\app\controller\IndexController::class, 'index']); Route::any('/', [\plugin\admin\app\controller\IndexController::class, 'index']);
//Route::any('/h5/student', [\app\h5\controller\IndexController::class, 'student']);
//Route::any('/h5/teacher', [\app\h5\controller\IndexController::class, 'teacher']);