Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
php
/
sx-prize
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
7b6b3dbc
authored
Jul 07, 2019
by
张恒
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
j
parent
bc829280
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
52 additions
and
42 deletions
+52
-42
.idea/workspace.xml
+42
-39
Application/Home/Controller/IndexController.class.php
+1
-0
Application/Home/View/default/Index_index.tpl
+5
-1
Public/static/js/index.js
+4
-2
No files found.
.idea/workspace.xml
View file @
7b6b3dbc
...
...
@@ -2,7 +2,10 @@
<project
version=
"4"
>
<component
name=
"ChangeListManager"
>
<list
default=
"true"
id=
"83262c17-7030-4f8f-af17-e1cc55f76944"
name=
"Default"
comment=
""
>
<change
type=
"MODIFICATION"
beforePath=
"$PROJECT_DIR$/.idea/workspace.xml"
afterPath=
"$PROJECT_DIR$/.idea/workspace.xml"
/>
<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.tpl"
/>
<change
type=
"MODIFICATION"
beforePath=
"$PROJECT_DIR$/Public/static/js/index.js"
afterPath=
"$PROJECT_DIR$/Public/static/js/index.js"
/>
</list>
<option
name=
"EXCLUDED_CONVERTED_TO_IGNORED"
value=
"true"
/>
<option
name=
"TRACKING_ENABLED"
value=
"true"
/>
...
...
@@ -22,7 +25,7 @@
<file
leaf-file-name=
"index.html"
pinned=
"false"
current-in-tab=
"false"
>
<entry
file=
"file://$PROJECT_DIR$/index.html"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"
1767
"
>
<state
relative-caret-position=
"
919
"
>
<caret
line=
"93"
column=
"37"
lean-forward=
"false"
selection-start-line=
"93"
selection-start-column=
"37"
selection-end-line=
"93"
selection-end-column=
"37"
/>
<folding
/>
</state>
...
...
@@ -32,8 +35,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=
"
253
"
>
<caret
line=
"5
3"
column=
"16"
lean-forward=
"false"
selection-start-line=
"53"
selection-start-column=
"16"
selection-end-line=
"53"
selection-end-column=
"25
"
/>
<state
relative-caret-position=
"
329
"
>
<caret
line=
"5
6"
column=
"12"
lean-forward=
"false"
selection-start-line=
"56"
selection-start-column=
"8"
selection-end-line=
"56"
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"
/>
...
...
@@ -42,21 +45,21 @@
</provider>
</entry>
</file>
<file
leaf-file-name=
"index.js"
pinned=
"false"
current-in-tab=
"
fals
e"
>
<file
leaf-file-name=
"index.js"
pinned=
"false"
current-in-tab=
"
tru
e"
>
<entry
file=
"file://$PROJECT_DIR$/Public/static/js/index.js"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"
-132
"
>
<caret
line=
"
44"
column=
"34"
lean-forward=
"false"
selection-start-line=
"44"
selection-start-column=
"34"
selection-end-line=
"44"
selection-end-column=
"34
"
/>
<state
relative-caret-position=
"
438
"
>
<caret
line=
"
57"
column=
"41"
lean-forward=
"false"
selection-start-line=
"57"
selection-start-column=
"41"
selection-end-line=
"57"
selection-end-column=
"41
"
/>
<folding
/>
</state>
</provider>
</entry>
</file>
<file
leaf-file-name=
"IndexController.class.php"
pinned=
"false"
current-in-tab=
"
tru
e"
>
<file
leaf-file-name=
"IndexController.class.php"
pinned=
"false"
current-in-tab=
"
fals
e"
>
<entry
file=
"file://$PROJECT_DIR$/Application/Home/Controller/IndexController.class.php"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"
399
"
>
<caret
line=
"
69"
column=
"9"
lean-forward=
"false"
selection-start-line=
"69"
selection-start-column=
"9"
selection-end-line=
"69"
selection-end-column=
"
9"
/>
<state
relative-caret-position=
"
418
"
>
<caret
line=
"
83"
column=
"29"
lean-forward=
"true"
selection-start-line=
"83"
selection-start-column=
"29"
selection-end-line=
"83"
selection-end-column=
"2
9"
/>
<folding>
<element
signature=
"e#34#44#0#PHP"
expanded=
"true"
/>
</folding>
...
...
@@ -81,8 +84,8 @@
<file
leaf-file-name=
"main.scss"
pinned=
"false"
current-in-tab=
"true"
>
<entry
file=
"file://$PROJECT_DIR$/Public/static/css/main.scss"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"
292
"
>
<caret
line=
"17
5"
column=
"16"
lean-forward=
"true"
selection-start-line=
"175"
selection-start-column=
"16"
selection-end-line=
"175"
selection-end-column=
"16
"
/>
<state
relative-caret-position=
"
330
"
>
<caret
line=
"17
7"
column=
"0"
lean-forward=
"true"
selection-start-line=
"177"
selection-start-column=
"0"
selection-end-line=
"177"
selection-end-column=
"0
"
/>
<folding
/>
</state>
</provider>
...
...
@@ -120,9 +123,9 @@
<list>
<option
value=
"$PROJECT_DIR$/Application/Common/Conf/db.php"
/>
<option
value=
"$PROJECT_DIR$/Public/static/css/main.scss"
/>
<option
value=
"$PROJECT_DIR$/Application/Home/Controller/IndexController.class.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$/Application/Home/Controller/IndexController.class.php"
/>
</list>
</option>
</component>
...
...
@@ -136,7 +139,7 @@
<component
name=
"ProjectFrameBounds"
>
<option
name=
"y"
value=
"23"
/>
<option
name=
"width"
value=
"1440"
/>
<option
name=
"height"
value=
"8
21
"
/>
<option
name=
"height"
value=
"8
17
"
/>
</component>
<component
name=
"ProjectView"
>
<navigator
currentView=
"ProjectPane"
proportions=
""
version=
"1"
>
...
...
@@ -454,16 +457,16 @@
<option
name=
"presentableId"
value=
"Default"
/>
<updated>
1562502557206
</updated>
<workItem
from=
"1562502558877"
duration=
"2926000"
/>
<workItem
from=
"1562505554364"
duration=
"2
048
000"
/>
<workItem
from=
"1562505554364"
duration=
"2
519
000"
/>
</task>
<servers
/>
</component>
<component
name=
"TimeTrackingManager"
>
<option
name=
"totallyTimeSpent"
value=
"
4974
000"
/>
<option
name=
"totallyTimeSpent"
value=
"
5445
000"
/>
</component>
<component
name=
"ToolWindowManager"
>
<frame
x=
"0"
y=
"23"
width=
"1440"
height=
"8
21
"
extended-state=
"6"
/>
<editor
active=
"
tru
e"
/>
<frame
x=
"0"
y=
"23"
width=
"1440"
height=
"8
17
"
extended-state=
"6"
/>
<editor
active=
"
fals
e"
/>
<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.1881259"
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"
/>
...
...
@@ -472,7 +475,7 @@
<window_info
id=
"Version Control"
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=
"8"
side_tool=
"false"
content_ui=
"tabs"
/>
<window_info
id=
"Run"
active=
"false"
anchor=
"bottom"
auto_hide=
"false"
internal_type=
"DOCKED"
type=
"DOCKED"
visible=
"false"
show_stripe_button=
"true"
weight=
"0.32921812"
sideWeight=
"0.5"
order=
"2"
side_tool=
"false"
content_ui=
"tabs"
/>
<window_info
id=
"Structure"
active=
"false"
anchor=
"left"
auto_hide=
"false"
internal_type=
"DOCKED"
type=
"DOCKED"
visible=
"false"
show_stripe_button=
"true"
weight=
"0.25"
sideWeight=
"0.5"
order=
"1"
side_tool=
"false"
content_ui=
"tabs"
/>
<window_info
id=
"Terminal"
active=
"
false"
anchor=
"bottom"
auto_hide=
"false"
internal_type=
"DOCKED"
type=
"DOCKED"
visible=
"true"
show_stripe_button=
"true"
weight=
"0.23045267
"
sideWeight=
"0.5"
order=
"9"
side_tool=
"false"
content_ui=
"tabs"
/>
<window_info
id=
"Terminal"
active=
"
true"
anchor=
"bottom"
auto_hide=
"false"
internal_type=
"DOCKED"
type=
"DOCKED"
visible=
"true"
show_stripe_button=
"true"
weight=
"0.23172414
"
sideWeight=
"0.5"
order=
"9"
side_tool=
"false"
content_ui=
"tabs"
/>
<window_info
id=
"Favorites"
active=
"false"
anchor=
"left"
auto_hide=
"false"
internal_type=
"DOCKED"
type=
"DOCKED"
visible=
"false"
show_stripe_button=
"true"
weight=
"0.33"
sideWeight=
"0.5"
order=
"4"
side_tool=
"true"
content_ui=
"tabs"
/>
<window_info
id=
"Debug"
active=
"false"
anchor=
"bottom"
auto_hide=
"false"
internal_type=
"DOCKED"
type=
"DOCKED"
visible=
"false"
show_stripe_button=
"true"
weight=
"0.4"
sideWeight=
"0.5"
order=
"3"
side_tool=
"false"
content_ui=
"tabs"
/>
<window_info
id=
"Cvs"
active=
"false"
anchor=
"bottom"
auto_hide=
"false"
internal_type=
"DOCKED"
type=
"DOCKED"
visible=
"false"
show_stripe_button=
"true"
weight=
"0.25"
sideWeight=
"0.5"
order=
"4"
side_tool=
"false"
content_ui=
"tabs"
/>
...
...
@@ -581,26 +584,36 @@
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/
index.html
"
>
<entry
file=
"file://$PROJECT_DIR$/
Application/Home/Controller/IndexController.class.php
"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"1767"
>
<caret
line=
"93"
column=
"37"
lean-forward=
"false"
selection-start-line=
"93"
selection-start-column=
"37"
selection-end-line=
"93"
selection-end-column=
"37"
/>
<state
relative-caret-position=
"418"
>
<caret
line=
"83"
column=
"29"
lean-forward=
"true"
selection-start-line=
"83"
selection-start-column=
"29"
selection-end-line=
"83"
selection-end-column=
"29"
/>
<folding>
<element
signature=
"e#34#44#0#PHP"
expanded=
"true"
/>
</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=
"3306"
>
<caret
line=
"174"
column=
"21"
lean-forward=
"false"
selection-start-line=
"174"
selection-start-column=
"21"
selection-end-line=
"174"
selection-end-column=
"21"
/>
<folding
/>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/
Public/static/js/index.js
"
>
<entry
file=
"file://$PROJECT_DIR$/
index.html
"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"
-132
"
>
<caret
line=
"
44"
column=
"34"
lean-forward=
"false"
selection-start-line=
"44"
selection-start-column=
"34"
selection-end-line=
"44"
selection-end-column=
"34
"
/>
<state
relative-caret-position=
"
919
"
>
<caret
line=
"
93"
column=
"37"
lean-forward=
"false"
selection-start-line=
"93"
selection-start-column=
"37"
selection-end-line=
"93"
selection-end-column=
"37
"
/>
<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=
"
253
"
>
<caret
line=
"5
3"
column=
"16"
lean-forward=
"false"
selection-start-line=
"53"
selection-start-column=
"16"
selection-end-line=
"53"
selection-end-column=
"25
"
/>
<state
relative-caret-position=
"
329
"
>
<caret
line=
"5
6"
column=
"12"
lean-forward=
"false"
selection-start-line=
"56"
selection-start-column=
"8"
selection-end-line=
"56"
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"
/>
...
...
@@ -608,24 +621,14 @@
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/Public/static/
css/main.scs
s"
>
<entry
file=
"file://$PROJECT_DIR$/Public/static/
js/index.j
s"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"
3306
"
>
<caret
line=
"
174"
column=
"21"
lean-forward=
"false"
selection-start-line=
"174"
selection-start-column=
"21"
selection-end-line=
"174"
selection-end-column=
"2
1"
/>
<state
relative-caret-position=
"
438
"
>
<caret
line=
"
57"
column=
"41"
lean-forward=
"false"
selection-start-line=
"57"
selection-start-column=
"41"
selection-end-line=
"57"
selection-end-column=
"4
1"
/>
<folding
/>
</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=
"399"
>
<caret
line=
"69"
column=
"9"
lean-forward=
"false"
selection-start-line=
"69"
selection-start-column=
"9"
selection-end-line=
"69"
selection-end-column=
"9"
/>
<folding>
<element
signature=
"e#34#44#0#PHP"
expanded=
"true"
/>
</folding>
</state>
</provider>
</entry>
</component>
<component
name=
"masterDetails"
>
<states>
...
...
Application/Home/Controller/IndexController.class.php
View file @
7b6b3dbc
...
...
@@ -82,6 +82,7 @@ class IndexController extends Controller
))
->
count
();
if
(
$type
==
1
)
{
if
(
$c
>=
10
)
{
continue
;
}
...
...
Application/Home/View/default/Index_index.tpl
View file @
7b6b3dbc
...
...
@@ -51,7 +51,11 @@
<body
ontouchmove=
"return false;"
>
<div
id=
"container"
>
<div
class=
"btn-prize"
style=
"display: none"
>
点击抽奖
</div>
<div
class=
"btn-prize"
style=
"display: none"
>
点击抽奖
</div>
<div
class=
"prize-type"
style=
"display: none"
></div>
</div>
<script>
...
...
Public/static/js/index.js
View file @
7b6b3dbc
...
...
@@ -30,7 +30,6 @@ $(document).ready(function () {
}
$
(
'.btn-prize'
).
on
(
'click'
,
function
()
{
if
(
prize_lock
==
2
){
my_notify
(
'点击太快'
);
return
;
}
btnPrize
();
...
...
@@ -38,6 +37,7 @@ $(document).ready(function () {
});
function
btnPrize
()
{
prize_lock
=
2
;
$
(
'.btn-prize'
).
text
(
'抽奖中...'
);
$
.
ajax
({
url
:
'/index/tryPrize'
,
type
:
'post'
,
...
...
@@ -51,9 +51,11 @@ function btnPrize() {
if
(
resp
.
data
.
prize
==
0
)
{
my_notify
(
prize_word
[
rank
])
}
else
{
$
(
'.btn-prize'
).
hide
();
$
(
'.prize-type'
).
text
(
'已中奖,请麻烦找官方登记信息'
).
show
();
}
}
$
(
'.btn-prize'
).
text
(
'点击抽奖'
);
prize_lock
=
1
;
},
error
:
function
()
{
...
...
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