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
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
24 additions
and
59 deletions
+24
-59
.idea/workspace.xml
+0
-0
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
This diff is collapsed.
Click to expand it.
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