Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
tl_estate
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hujun
tl_estate
Commits
e2bfad8b
Commit
e2bfad8b
authored
Dec 14, 2017
by
clone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
h5模块
parent
d4b4031e
Hide whitespace changes
Inline
Side-by-side
Showing
19 changed files
with
188 additions
and
31 deletions
+188
-31
common.php
application/app/common.php
+1
-0
config.php
application/app/config.php
+6
-0
Index.php
application/app/controller/Index.php
+10
-0
Test.php
application/app/controller/Test.php
+8
-0
UserType.php
application/app/controller/UserType.php
+8
-0
User.php
application/app/model/User.php
+10
-0
UserType.php
application/app/model/UserType.php
+10
-0
index.html
application/app/view/index/index.html
+0
-0
Index.php
application/index/controller/Index.php
+10
-0
Test.php
application/index/controller/Test.php
+8
-0
UserType.php
application/index/controller/UserType.php
+8
-0
User.php
application/index/model/User.php
+10
-0
UserType.php
application/index/model/UserType.php
+10
-0
index.html
application/index/view/index/index.html
+0
-0
member.html
application/index/view/member/member.html
+31
-28
member1.html
application/index/view/member/member1.html
+31
-0
route.php
application/route.php
+5
-0
build.php
build.php
+3
-3
app.php
public/app.php
+19
-0
No files found.
application/app/common.php
0 → 100644
View file @
e2bfad8b
<?php
application/app/config.php
0 → 100644
View file @
e2bfad8b
<?php
//配置文件
return
[
];
\ No newline at end of file
application/app/controller/Index.php
0 → 100644
View file @
e2bfad8b
<?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>'
;
}
}
application/app/controller/Test.php
0 → 100644
View file @
e2bfad8b
<?php
namespace
app\app\controller
;
class
Test
{
}
\ No newline at end of file
application/app/controller/UserType.php
0 → 100644
View file @
e2bfad8b
<?php
namespace
app\app\controller
;
class
UserType
{
}
\ No newline at end of file
application/app/model/User.php
0 → 100644
View file @
e2bfad8b
<?php
namespace
app\app\model
;
use
think\Model
;
class
User
extends
Model
{
}
\ No newline at end of file
application/app/model/UserType.php
0 → 100644
View file @
e2bfad8b
<?php
namespace
app\app\model
;
use
think\Model
;
class
UserType
extends
Model
{
}
\ No newline at end of file
application/app/view/index/index.html
0 → 100644
View file @
e2bfad8b
application/index/controller/Index.php
0 → 100644
View file @
e2bfad8b
<?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>'
;
}
}
application/index/controller/Test.php
0 → 100644
View file @
e2bfad8b
<?php
namespace
app\index\controller
;
class
Test
{
}
\ No newline at end of file
application/index/controller/UserType.php
0 → 100644
View file @
e2bfad8b
<?php
namespace
app\index\controller
;
class
UserType
{
}
\ No newline at end of file
application/index/model/User.php
0 → 100644
View file @
e2bfad8b
<?php
namespace
app\index\model
;
use
think\Model
;
class
User
extends
Model
{
}
\ No newline at end of file
application/index/model/UserType.php
0 → 100644
View file @
e2bfad8b
<?php
namespace
app\index\model
;
use
think\Model
;
class
UserType
extends
Model
{
}
\ No newline at end of file
application/index/view/index/index.html
0 → 100644
View file @
e2bfad8b
application/index/view/member/member.html
View file @
e2bfad8b
{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
application/index/view/member/member1.html
0 → 100644
View file @
e2bfad8b
{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
application/route.php
View file @
e2bfad8b
...
@@ -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'
]],
...
...
build.php
View file @
e2bfad8b
...
@@ -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'
],
...
...
public/app.php
0 → 100644
View file @
e2bfad8b
<?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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment