Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
php
/
dencare-game
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
007449b2
authored
Aug 27, 2019
by
zhangheng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
y
parent
29008421
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
147 additions
and
91 deletions
+147
-91
.idea/workspace.xml
+123
-32
Application/Home/Controller/IndexController.class.php
+4
-38
Application/Home/View/default/Index_index.tpl
+1
-1
Application/User/Controller/ReportController.class.php
+16
-16
Application/User/View/default/Report_index.tpl
+3
-4
No files found.
.idea/workspace.xml
View file @
007449b2
...
...
@@ -2,10 +2,10 @@
<project
version=
"4"
>
<component
name=
"ChangeListManager"
>
<list
default=
"true"
id=
"393705e8-a82c-4795-9b3b-5f911ddba9ac"
name=
"Default"
comment=
""
>
<change
type=
"MODIFICATION"
beforePath=
"$PROJECT_DIR$/
.sass-cache/a99bcb3812225bbee2e3b2905f436d29891f981a/main.scssc"
afterPath=
"$PROJECT_DIR$/.sass-cache/a99bcb3812225bbee2e3b2905f436d29891f981a/main.scssc
"
/>
<change
type=
"MODIFICATION"
beforePath=
"$PROJECT_DIR$/
.idea/workspace.xml"
afterPath=
"$PROJECT_DIR$/.idea/workspace.xm
l"
/>
<change
type=
"MODIFICATION"
beforePath=
"$PROJECT_DIR$/
Public/static/css/main.css"
afterPath=
"$PROJECT_DIR$/Public/static/css/main.css
"
/>
<change
type=
"MODIFICATION"
beforePath=
"$PROJECT_DIR$/
Public/static/css/main.scss"
afterPath=
"$PROJECT_DIR$/Public/static/css/main.scss
"
/>
<change
type=
"MODIFICATION"
beforePath=
"$PROJECT_DIR$/
Application/Home/Controller/IndexController.class.php"
afterPath=
"$PROJECT_DIR$/Application/Home/Controller/IndexController.class.php
"
/>
<change
type=
"MODIFICATION"
beforePath=
"$PROJECT_DIR$/
Application/Home/View/default/Index_index.tpl"
afterPath=
"$PROJECT_DIR$/Application/Home/View/default/Index_index.tp
l"
/>
<change
type=
"MODIFICATION"
beforePath=
"$PROJECT_DIR$/
Application/User/Controller/ReportController.class.php"
afterPath=
"$PROJECT_DIR$/Application/User/Controller/ReportController.class.php
"
/>
<change
type=
"MODIFICATION"
beforePath=
"$PROJECT_DIR$/
Application/User/View/default/Report_index.tpl"
afterPath=
"$PROJECT_DIR$/Application/User/View/default/Report_index.tpl
"
/>
</list>
<option
name=
"EXCLUDED_CONVERTED_TO_IGNORED"
value=
"true"
/>
<option
name=
"TRACKING_ENABLED"
value=
"true"
/>
...
...
@@ -19,7 +19,7 @@
</component>
<component
name=
"ExecutionTargetManager"
SELECTED_TARGET=
"default_target"
/>
<component
name=
"FileEditorManager"
>
<splitter
split-orientation=
"horizontal"
split-proportion=
"0.
44581282
"
>
<splitter
split-orientation=
"horizontal"
split-proportion=
"0.
5862069
"
>
<split-first>
<leaf>
<file
leaf-file-name=
"index.html"
pinned=
"false"
current-in-tab=
"false"
>
...
...
@@ -84,8 +84,8 @@
<file
leaf-file-name=
"Index_index.tpl"
pinned=
"false"
current-in-tab=
"false"
>
<entry
file=
"file://$PROJECT_DIR$/Application/Home/View/default/Index_index.tpl"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"
266
"
>
<caret
line=
"
203"
column=
"16"
lean-forward=
"true"
selection-start-line=
"203"
selection-start-column=
"16"
selection-end-line=
"203"
selection-end-column=
"25
"
/>
<state
relative-caret-position=
"
475
"
>
<caret
line=
"
42"
column=
"12"
lean-forward=
"false"
selection-start-line=
"42"
selection-start-column=
"12"
selection-end-line=
"42"
selection-end-column=
"12
"
/>
<folding>
<element
signature=
"n#style#0;n#div#0;n#div#0;n#body#0;n#html#0;n#!!top"
expanded=
"true"
/>
<element
signature=
"n#style#0;n#div#1;n#div#0;n#body#0;n#html#0;n#!!top"
expanded=
"true"
/>
...
...
@@ -156,14 +156,34 @@
<file
leaf-file-name=
"IndexController.class.php"
pinned=
"false"
current-in-tab=
"false"
>
<entry
file=
"file://$PROJECT_DIR$/Application/Home/Controller/IndexController.class.php"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"
-1206
"
>
<caret
line=
"
55"
column=
"22"
lean-forward=
"true"
selection-start-line=
"55"
selection-start-column=
"22"
selection-end-line=
"55"
selection-end-column=
"22
"
/>
<state
relative-caret-position=
"
143
"
>
<caret
line=
"
91"
column=
"29"
lean-forward=
"true"
selection-start-line=
"91"
selection-start-column=
"29"
selection-end-line=
"91"
selection-end-column=
"29
"
/>
<folding
/>
</state>
</provider>
</entry>
</file>
<file
leaf-file-name=
"index.js"
pinned=
"false"
current-in-tab=
"true"
>
<file
leaf-file-name=
"Report_index.tpl"
pinned=
"false"
current-in-tab=
"false"
>
<entry
file=
"file://$PROJECT_DIR$/Application/User/View/default/Report_index.tpl"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"285"
>
<caret
line=
"16"
column=
"74"
lean-forward=
"false"
selection-start-line=
"16"
selection-start-column=
"74"
selection-end-line=
"16"
selection-end-column=
"74"
/>
<folding
/>
</state>
</provider>
</entry>
</file>
<file
leaf-file-name=
"ReportController.class.php"
pinned=
"false"
current-in-tab=
"true"
>
<entry
file=
"file://$PROJECT_DIR$/Application/User/Controller/ReportController.class.php"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"57"
>
<caret
line=
"28"
column=
"22"
lean-forward=
"true"
selection-start-line=
"28"
selection-start-column=
"22"
selection-end-line=
"28"
selection-end-column=
"22"
/>
<folding
/>
</state>
</provider>
</entry>
</file>
<file
leaf-file-name=
"index.js"
pinned=
"false"
current-in-tab=
"false"
>
<entry
file=
"file://$PROJECT_DIR$/Public/static/js/index.js"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"304"
>
...
...
@@ -229,9 +249,12 @@
<option
value=
"$PROJECT_DIR$/Public/static/js/hammer.min.js"
/>
<option
value=
"$PROJECT_DIR$/index.html"
/>
<option
value=
"$PROJECT_DIR$/Application/Common/Conf/db.php"
/>
<option
value=
"$PROJECT_DIR$/Application/Home/View/default/Index_index.tpl"
/>
<option
value=
"$PROJECT_DIR$/Public/static/js/index.js"
/>
<option
value=
"$PROJECT_DIR$/Public/static/css/main.scss"
/>
<option
value=
"$PROJECT_DIR$/Application/Home/View/default/Index_index.tpl"
/>
<option
value=
"$PROJECT_DIR$/Application/Home/Controller/IndexController.class.php"
/>
<option
value=
"$PROJECT_DIR$/Application/User/View/default/Report_index.tpl"
/>
<option
value=
"$PROJECT_DIR$/Application/User/Controller/ReportController.class.php"
/>
</list>
</option>
</component>
...
...
@@ -243,7 +266,7 @@
</component>
<component
name=
"PhpWorkspaceProjectConfiguration"
backward_compatibility_performed=
"true"
/>
<component
name=
"ProjectFrameBounds"
>
<option
name=
"x"
value=
"
-314
"
/>
<option
name=
"x"
value=
"
2
"
/>
<option
name=
"y"
value=
"23"
/>
<option
name=
"width"
value=
"1440"
/>
<option
name=
"height"
value=
"817"
/>
...
...
@@ -352,6 +375,58 @@
<option
name=
"myItemId"
value=
"Application"
/>
<option
name=
"myItemType"
value=
"com.jetbrains.php.projectView.PhpTreeStructureProvider$1"
/>
</PATH_ELEMENT>
<PATH_ELEMENT>
<option
name=
"myItemId"
value=
"User"
/>
<option
name=
"myItemType"
value=
"com.jetbrains.php.projectView.PhpTreeStructureProvider$1"
/>
</PATH_ELEMENT>
<PATH_ELEMENT>
<option
name=
"myItemId"
value=
"View"
/>
<option
name=
"myItemType"
value=
"com.jetbrains.php.projectView.PhpTreeStructureProvider$1"
/>
</PATH_ELEMENT>
<PATH_ELEMENT>
<option
name=
"myItemId"
value=
"default"
/>
<option
name=
"myItemType"
value=
"com.jetbrains.php.projectView.PhpTreeStructureProvider$1"
/>
</PATH_ELEMENT>
</PATH>
<PATH>
<PATH_ELEMENT>
<option
name=
"myItemId"
value=
"dencare-game"
/>
<option
name=
"myItemType"
value=
"com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode"
/>
</PATH_ELEMENT>
<PATH_ELEMENT>
<option
name=
"myItemId"
value=
"dencare-game"
/>
<option
name=
"myItemType"
value=
"com.jetbrains.php.projectView.PhpTreeStructureProvider$1"
/>
</PATH_ELEMENT>
<PATH_ELEMENT>
<option
name=
"myItemId"
value=
"Application"
/>
<option
name=
"myItemType"
value=
"com.jetbrains.php.projectView.PhpTreeStructureProvider$1"
/>
</PATH_ELEMENT>
<PATH_ELEMENT>
<option
name=
"myItemId"
value=
"User"
/>
<option
name=
"myItemType"
value=
"com.jetbrains.php.projectView.PhpTreeStructureProvider$1"
/>
</PATH_ELEMENT>
<PATH_ELEMENT>
<option
name=
"myItemId"
value=
"Controller"
/>
<option
name=
"myItemType"
value=
"com.jetbrains.php.projectView.PhpTreeStructureProvider$1"
/>
</PATH_ELEMENT>
</PATH>
<PATH>
<PATH_ELEMENT>
<option
name=
"myItemId"
value=
"dencare-game"
/>
<option
name=
"myItemType"
value=
"com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode"
/>
</PATH_ELEMENT>
<PATH_ELEMENT>
<option
name=
"myItemId"
value=
"dencare-game"
/>
<option
name=
"myItemType"
value=
"com.jetbrains.php.projectView.PhpTreeStructureProvider$1"
/>
</PATH_ELEMENT>
<PATH_ELEMENT>
<option
name=
"myItemId"
value=
"Application"
/>
<option
name=
"myItemType"
value=
"com.jetbrains.php.projectView.PhpTreeStructureProvider$1"
/>
</PATH_ELEMENT>
<PATH_ELEMENT>
<option
name=
"myItemId"
value=
"User"
/>
<option
name=
"myItemType"
value=
"com.jetbrains.php.projectView.PhpTreeStructureProvider$1"
/>
</PATH_ELEMENT>
</PATH>
<PATH>
<PATH_ELEMENT>
...
...
@@ -533,18 +608,18 @@
<option
name=
"number"
value=
"Default"
/>
<option
name=
"presentableId"
value=
"Default"
/>
<updated>
1566667513502
</updated>
<workItem
from=
"1566667516612"
duration=
"43
787
000"
/>
<workItem
from=
"1566667516612"
duration=
"43
935
000"
/>
</task>
<servers
/>
</component>
<component
name=
"TimeTrackingManager"
>
<option
name=
"totallyTimeSpent"
value=
"43
787
000"
/>
<option
name=
"totallyTimeSpent"
value=
"43
935
000"
/>
</component>
<component
name=
"ToolWindowManager"
>
<frame
x=
"
-314"
y=
"23"
width=
"1440"
height=
"817"
extended-state=
"0
"
/>
<frame
x=
"
2"
y=
"23"
width=
"1440"
height=
"817"
extended-state=
"6
"
/>
<editor
active=
"true"
/>
<layout>
<window_info
id=
"Project"
active=
"false"
anchor=
"left"
auto_hide=
"false"
internal_type=
"DOCKED"
type=
"DOCKED"
visible=
"true"
show_stripe_button=
"true"
weight=
"0.
12875536
"
sideWeight=
"0.5"
order=
"0"
side_tool=
"false"
content_ui=
"combo"
/>
<window_info
id=
"Project"
active=
"false"
anchor=
"left"
auto_hide=
"false"
internal_type=
"DOCKED"
type=
"DOCKED"
visible=
"true"
show_stripe_button=
"true"
weight=
"0.
22389127
"
sideWeight=
"0.5"
order=
"0"
side_tool=
"false"
content_ui=
"combo"
/>
<window_info
id=
"TODO"
active=
"false"
anchor=
"bottom"
auto_hide=
"false"
internal_type=
"DOCKED"
type=
"DOCKED"
visible=
"false"
show_stripe_button=
"true"
weight=
"0.33"
sideWeight=
"0.5"
order=
"6"
side_tool=
"false"
content_ui=
"tabs"
/>
<window_info
id=
"Event Log"
active=
"false"
anchor=
"bottom"
auto_hide=
"false"
internal_type=
"DOCKED"
type=
"DOCKED"
visible=
"false"
show_stripe_button=
"true"
weight=
"0.33"
sideWeight=
"0.5"
order=
"7"
side_tool=
"true"
content_ui=
"tabs"
/>
<window_info
id=
"Database"
active=
"false"
anchor=
"right"
auto_hide=
"false"
internal_type=
"DOCKED"
type=
"DOCKED"
visible=
"false"
show_stripe_button=
"true"
weight=
"0.33"
sideWeight=
"0.5"
order=
"3"
side_tool=
"false"
content_ui=
"tabs"
/>
...
...
@@ -629,14 +704,6 @@
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/Application/Home/Controller/IndexController.class.php"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"-1206"
>
<caret
line=
"55"
column=
"22"
lean-forward=
"true"
selection-start-line=
"55"
selection-start-column=
"22"
selection-end-line=
"55"
selection-end-column=
"22"
/>
<folding
/>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/index.html"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"380"
>
...
...
@@ -694,10 +761,26 @@
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/Public/static/js/index.js"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"304"
>
<caret
line=
"44"
column=
"36"
lean-forward=
"true"
selection-start-line=
"44"
selection-start-column=
"36"
selection-end-line=
"44"
selection-end-column=
"36"
/>
<folding
/>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/Public/static/css/main.scss"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"222"
>
<caret
line=
"925"
column=
"3"
lean-forward=
"false"
selection-start-line=
"925"
selection-start-column=
"3"
selection-end-line=
"925"
selection-end-column=
"3"
/>
<folding
/>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/Application/Home/View/default/Index_index.tpl"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"
266
"
>
<caret
line=
"
203"
column=
"16"
lean-forward=
"true"
selection-start-line=
"203"
selection-start-column=
"16"
selection-end-line=
"203"
selection-end-column=
"25
"
/>
<state
relative-caret-position=
"
475
"
>
<caret
line=
"
42"
column=
"12"
lean-forward=
"false"
selection-start-line=
"42"
selection-start-column=
"12"
selection-end-line=
"42"
selection-end-column=
"12
"
/>
<folding>
<element
signature=
"n#style#0;n#div#0;n#div#0;n#body#0;n#html#0;n#!!top"
expanded=
"true"
/>
<element
signature=
"n#style#0;n#div#1;n#div#0;n#body#0;n#html#0;n#!!top"
expanded=
"true"
/>
...
...
@@ -754,18 +837,26 @@
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/
Public/static/js/index.js
"
>
<entry
file=
"file://$PROJECT_DIR$/
Application/Home/Controller/IndexController.class.php
"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"
304
"
>
<caret
line=
"
44"
column=
"36"
lean-forward=
"true"
selection-start-line=
"44"
selection-start-column=
"36"
selection-end-line=
"44"
selection-end-column=
"36
"
/>
<state
relative-caret-position=
"
143
"
>
<caret
line=
"
91"
column=
"29"
lean-forward=
"true"
selection-start-line=
"91"
selection-start-column=
"29"
selection-end-line=
"91"
selection-end-column=
"29
"
/>
<folding
/>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/
Public/static/css/main.scss
"
>
<entry
file=
"file://$PROJECT_DIR$/
Application/User/View/default/Report_index.tpl
"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"222"
>
<caret
line=
"925"
column=
"3"
lean-forward=
"false"
selection-start-line=
"925"
selection-start-column=
"3"
selection-end-line=
"925"
selection-end-column=
"3"
/>
<state
relative-caret-position=
"285"
>
<caret
line=
"16"
column=
"74"
lean-forward=
"false"
selection-start-line=
"16"
selection-start-column=
"74"
selection-end-line=
"16"
selection-end-column=
"74"
/>
<folding
/>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/Application/User/Controller/ReportController.class.php"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"57"
>
<caret
line=
"28"
column=
"22"
lean-forward=
"true"
selection-start-line=
"28"
selection-start-column=
"22"
selection-end-line=
"28"
selection-end-column=
"22"
/>
<folding
/>
</state>
</provider>
...
...
Application/Home/Controller/IndexController.class.php
View file @
007449b2
...
...
@@ -88,30 +88,13 @@ class IndexController extends Controller
'take_time'
=>
array
(
array
(
'gt'
,
$from
),
array
(
'lt'
,
$to
)),
'is_get'
=>
1
,
))
->
count
();
// 1是电影票
if
(
$type
==
1
)
{
if
(
$c
>=
2
)
{
continue
;
}
}
// 1牙膏
if
(
$type
==
2
)
{
if
(
$c
>=
2
)
{
continue
;
}
}
// 3是手机
if
(
$type
==
3
)
{
if
(
$c
>=
1
)
{
continue
;
}
}
// 4是吹风机
if
(
$type
==
4
)
{
if
(
$type
==
1
)
{
if
(
$c
>=
2
)
{
continue
;
}
}
$req_type
[]
=
$type
;
}
if
(
empty
(
$req_type
))
{
...
...
@@ -288,29 +271,12 @@ class IndexController extends Controller
{
for
(
$i
=
0
;
$i
<
3
;
$i
++
)
{
M
(
'Prize'
)
->
add
(
array
(
'content'
=>
'电影票'
,
'type'
=>
1
,
));
}
for
(
$i
=
0
;
$i
<
3
;
$i
++
)
{
M
(
'Prize'
)
->
add
(
array
(
'content'
=>
'牙膏'
,
'type'
=>
2
,
));
}
for
(
$i
=
0
;
$i
<
3
;
$i
++
)
{
M
(
'Prize'
)
->
add
(
array
(
'content'
=>
'手机'
,
'type'
=>
3
,
));
}
for
(
$i
=
0
;
$i
<
3
;
$i
++
)
{
M
(
'Prize'
)
->
add
(
array
(
'content'
=>
'吹风机'
,
'type'
=>
4
,
'type'
=>
1
,
));
}
}
}
Application/Home/View/default/Index_index.tpl
View file @
007449b2
...
...
@@ -40,7 +40,7 @@
// doc.addEventListener('
DOMContentLoaded
'
,
recalc
,
false
);
// })(document, window);
</script>
<title></title>
<title>
冷酸灵
</title>
<link
href=
"__CDN__/css/swiper.min.css"
rel=
"stylesheet"
>
<link
href=
"__CDN__/css/main.css"
rel=
"stylesheet"
>
...
...
Application/User/Controller/ReportController.class.php
View file @
007449b2
...
...
@@ -29,23 +29,23 @@ class ReportController extends BaseUserController
'type'
=>
1
,
'is_get'
=>
0
))
->
count
();
$count_2
=
M
(
'Prize'
)
->
where
(
array
(
'type'
=>
2
,
'is_get'
=>
0
))
->
count
();
$count_3
=
M
(
'Prize'
)
->
where
(
array
(
'type'
=>
3
,
'is_get'
=>
0
))
->
count
();
$count_4
=
M
(
'Prize'
)
->
where
(
array
(
'type'
=>
4
,
'is_get'
=>
0
))
->
count
();
//
$count_2=M('Prize')->where(array(
//
'type'=>2,
//
'is_get'=>0
//
))->count();
//
//
$count_3=M('Prize')->where(array(
//
'type'=>3,
//
'is_get'=>0
//
))->count();
//
$count_4=M('Prize')->where(array(
//
'type'=>4,
//
'is_get'=>0
//
))->count();
$this
->
assign
(
'count_1'
,
$count_1
);
$this
->
assign
(
'count_2'
,
$count_2
);
$this
->
assign
(
'count_3'
,
$count_3
);
$this
->
assign
(
'count_4'
,
$count_4
);
//
$this->assign('count_2',$count_2);
//
$this->assign('count_3',$count_3);
//
$this->assign('count_4',$count_4);
$this
->
assign
(
'event_meta_list'
,
$event_meta_list
);
$this
->
assign
(
'data_list'
,
$data_list
[
$channel
]);
...
...
Application/User/View/default/Report_index.tpl
View file @
007449b2
...
...
@@ -13,10 +13,9 @@
</div>
<table
class=
"table"
class=
"table table-striped"
>
<tr>
<td
style=
"width: 100px;"
>
电影票剩余:
<span
style=
"color: red"
>
{:$count_1}
</span></td>
<td
style=
"width: 100px"
>
牙膏剩余:
<span
style=
"color: red"
>
{:$count_2}
</span></td>
<td
style=
"width: 100px"
>
手机剩余:
<span
style=
"color: red"
>
{:$count_3}
</span></td>
<td
style=
"width: 100px"
>
吹风机剩余:
<span
style=
"color: red"
>
{:$count_4}
</span></td>
<td
style=
"width: 100px"
>
牙膏剩余:
<span
style=
"color: red"
>
{:$count_1}
</span></td>
</tr>
...
...
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