Commit e2bfad8b authored by clone's avatar clone

h5模块

parent d4b4031e
<?php
//配置文件
return [
];
\ No newline at end of file
<?php
namespace app\app\controller;
class Index
{
public function index()
{
return '<style type="text/css">*{ padding: 0; margin: 0; } div{ padding: 4px 48px;} a{color:#2E5CD5;cursor: pointer;text-decoration: none} a:hover{text-decoration:underline; } body{ background: #fff; font-family: "Century Gothic","Microsoft yahei"; color: #333;font-size:18px;} h1{ font-size: 100px; font-weight: normal; margin-bottom: 12px; } p{ line-height: 1.6em; font-size: 42px }</style><div style="padding: 24px 48px;"> <h1>:)</h1><p> ThinkPHP V5<br/><span style="font-size:30px">十年磨一剑 - 为API开发设计的高性能框架</span></p><span style="font-size:22px;">[ V5.0 版本由 <a href="http://www.qiniu.com" target="qiniu">七牛云</a> 独家赞助发布 ]</span></div><script type="text/javascript" src="http://tajs.qq.com/stats?sId=9347272" charset="UTF-8"></script><script type="text/javascript" src="http://ad.topthink.com/Public/static/client.js"></script><thinkad id="ad_bd568ce7058a1091"></thinkad>';
}
}
<?php
namespace app\app\controller;
class Test
{
}
\ No newline at end of file
<?php
namespace app\app\controller;
class UserType
{
}
\ No newline at end of file
<?php
namespace app\app\model;
use think\Model;
class User extends Model
{
}
\ No newline at end of file
<?php
namespace app\app\model;
use think\Model;
class UserType extends Model
{
}
\ No newline at end of file
<?php
namespace app\index\controller;
class Index
{
public function index()
{
return '<style type="text/css">*{ padding: 0; margin: 0; } div{ padding: 4px 48px;} a{color:#2E5CD5;cursor: pointer;text-decoration: none} a:hover{text-decoration:underline; } body{ background: #fff; font-family: "Century Gothic","Microsoft yahei"; color: #333;font-size:18px;} h1{ font-size: 100px; font-weight: normal; margin-bottom: 12px; } p{ line-height: 1.6em; font-size: 42px }</style><div style="padding: 24px 48px;"> <h1>:)</h1><p> ThinkPHP V5<br/><span style="font-size:30px">十年磨一剑 - 为API开发设计的高性能框架</span></p><span style="font-size:22px;">[ V5.0 版本由 <a href="http://www.qiniu.com" target="qiniu">七牛云</a> 独家赞助发布 ]</span></div><script type="text/javascript" src="http://tajs.qq.com/stats?sId=9347272" charset="UTF-8"></script><script type="text/javascript" src="http://ad.topthink.com/Public/static/client.js"></script><thinkad id="ad_bd568ce7058a1091"></thinkad>';
}
}
<?php
namespace app\index\controller;
class Test
{
}
\ No newline at end of file
<?php
namespace app\index\controller;
class UserType
{
}
\ No newline at end of file
<?php
namespace app\index\model;
use think\Model;
class User extends Model
{
}
\ No newline at end of file
<?php
namespace app\index\model;
use think\Model;
class UserType extends Model
{
}
\ No newline at end of file
{layout name="global/frame_tpl" /} <!DOCTYPE html>
<input type="hidden" class="page-load" id="user" /> <html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
<link rel="stylesheet" href="../../../../resource/css/bootstrap.css" type="text/css" />
<script src="../../../../resource/lib/js/jquery-2.0.3.min.js"></script>
<script src="../../../../resource/lib/js/bootstrap.min.js"></script>
</head>
<body style="height: 100%">
<!-- Large modal -->
<button type="button" class="btn btn-primary" data-toggle="modal" data-target=".bs-example-modal-lg">Large modal</button>
<div class="modal fade bs-example-modal-lg" tabindex="-1" role="dialog" aria-labelledby="myLargeModalLabel">
<div class="modal-dialog modal-lg" role="document">
<div class="modal-content">
...
</div>
</div>
</div>
<link rel="stylesheet" href="../../../../resource/css/bootstrap-combined.min.css" type="text/css" /> <!-- Small modal -->
<link rel="stylesheet" href="../../../../resource/css/bootstrap-datetimepicker.min.css" type="text/css" /> <button type="button" class="btn btn-primary" data-toggle="modal" data-target=".bs-example-modal-sm">Small modal</button>
<label>编辑:</label>
<?php
create_editor('describe');
?>
<input readonly="readonly" type="text" name="cover_image" id="cover_image" class="require"/>
<button class="button6 Bannertu" type="button">选择图片</button>
<span class="tip">建议尺寸288x320</span>
Copy <div class="modal fade bs-example-modal-sm" tabindex="-1" role="dialog" aria-labelledby="mySmallModalLabel">
<div class="modal-dialog modal-sm" role="document">
<button type="button" class="btn btn-default" aria-label="Left Align"> <div class="modal-content">
<span class="glyphicon glyphicon-align-left" aria-hidden="true"></span> ...
</button> </div>
</div>
<button type="button" class="btn btn-default btn-lg"> </div>
<span class="glyphicon glyphicon-star" aria-hidden="true"></span> Star </body>
</button> </html>
\ No newline at end of file
<div id="datetimepicker" class="input-append date">
<input type="text"></input>
<span class="add-on">
<i data-time-icon="icon-time" data-date-icon="icon-calendar"></i>
</span>
</div>
\ No newline at end of file
{layout name="global/frame_tpl" /}
<input type="hidden" class="page-load" id="user" />
<link rel="stylesheet" href="../../../../resource/css/bootstrap-combined.min.css" type="text/css" />
<link rel="stylesheet" href="../../../../resource/css/bootstrap-datetimepicker.min.css" type="text/css" />
<label>编辑:</label>
<?php
create_editor('describe');
?>
<input readonly="readonly" type="text" name="cover_image" id="cover_image" class="require"/>
<button class="button6 Bannertu" type="button">选择图片</button>
<span class="tip">建议尺寸288x320</span>
Copy
<button type="button" class="btn btn-default" aria-label="Left Align">
<span class="glyphicon glyphicon-align-left" aria-hidden="true"></span>
</button>
<button type="button" class="btn btn-default btn-lg">
<span class="glyphicon glyphicon-star" aria-hidden="true"></span> Star
</button>
<div id="datetimepicker" class="input-append date">
<input type="text"></input>
<span class="add-on">
<i data-time-icon="icon-time" data-date-icon="icon-calendar"></i>
</span>
</div>
\ No newline at end of file
...@@ -40,6 +40,11 @@ Route::rule([ ...@@ -40,6 +40,11 @@ Route::rule([
/*Error /*Error
Route::rule(['/city/:name' => 'error/index'] , '' ,'GET');*/ Route::rule(['/city/:name' => 'error/index'] , '' ,'GET');*/
Route::group('app',[
'index' => ['app/index/index',['method' => 'get']]
]);
Route::group('index',[ Route::group('index',[
'member' => ['index/member.index/member',['method' => 'get']], 'member' => ['index/member.index/member',['method' => 'get']],
'preview_list' => ['index/member.index/preview_list',['method' => 'get']], 'preview_list' => ['index/member.index/preview_list',['method' => 'get']],
......
...@@ -13,16 +13,16 @@ return [ ...@@ -13,16 +13,16 @@ return [
// 生成应用公共文件 // 生成应用公共文件
'__file__' => ['common.php', 'config.php', 'database.php'], '__file__' => ['common.php', 'config.php', 'database.php'],
// 定义demo模块的自动生成 (按照实际定义的文件名生成) /* // 定义demo模块的自动生成 (按照实际定义的文件名生成)
'demo' => [ 'demo' => [
'__file__' => ['common.php'], '__file__' => ['common.php'],
'__dir__' => ['behavior', 'controller', 'model', 'view'], '__dir__' => ['behavior', 'controller', 'model', 'view'],
'controller' => ['Index', 'Test', 'UserType'], 'controller' => ['Index', 'Test', 'UserType'],
'model' => ['User', 'UserType'], 'model' => ['User', 'UserType'],
'view' => ['index/index'], 'view' => ['index/index'],
], ],*/
// 其他更多的模块定义 // 其他更多的模块定义
'index' => [ 'app' => [
'__file__' => ['common.php'], '__file__' => ['common.php'],
'__dir__' => ['behavior', 'controller', 'model', 'view'], '__dir__' => ['behavior', 'controller', 'model', 'view'],
'controller' => ['Index', 'Test', 'UserType'], 'controller' => ['Index', 'Test', 'UserType'],
......
<?php
/**
* Created by PhpStorm.
* User : zw
* Date : 2017/12/14
* Time : 9:36
* Intro:
*/
// [ 应用入口文件 ]
// 定义应用目录
define('APP_PATH', __DIR__ . '/../application/');
// 加载框架引导文件
require __DIR__ . '/../thinkphp/start.php';
// 读取自动生成定义文件
/*$build = include './../build.php';
// 运行自动生成
\think\Build::run($build);*/
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment