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
718a7d61
authored
Sep 04, 2019
by
zhangheng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
b6ad0754
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
62 additions
and
54 deletions
+62
-54
.idea/workspace.xml
+15
-10
Application/Home/View/default/Index_index.tpl
+3
-3
Public/static/js/index.js
+44
-41
No files found.
.idea/workspace.xml
View file @
718a7d61
...
...
@@ -3,6 +3,7 @@
<component
name=
"ChangeListManager"
>
<list
default=
"true"
id=
"393705e8-a82c-4795-9b3b-5f911ddba9ac"
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/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"
/>
...
...
@@ -41,12 +42,13 @@
<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=
"
458
"
>
<caret
line=
"2
81"
column=
"0"
lean-forward=
"true"
selection-start-line=
"281"
selection-start-column=
"0"
selection-end-line=
"281"
selection-end-column=
"0
"
/>
<state
relative-caret-position=
"
192
"
>
<caret
line=
"2
37"
column=
"37"
lean-forward=
"false"
selection-start-line=
"237"
selection-start-column=
"33"
selection-end-line=
"237"
selection-end-column=
"37
"
/>
<folding>
<element
signature=
"n#style#0;n#div#10;n#div#0;n#div#0;n#body#0;n#html#0;n#!!top"
expanded=
"true"
/>
<element
signature=
"n#style#0;n#div#3;n#div#0;n#div#10;n#div#0;n#div#0;n#body#0;n#html#0;n#!!top"
expanded=
"true"
/>
<element
signature=
"n#style#0;n#div#4;n#div#0;n#div#10;n#div#0;n#div#0;n#body#0;n#html#0;n#!!top"
expanded=
"true"
/>
<element
signature=
"n#style#0;n#div#5;n#div#0;n#div#10;n#div#0;n#div#0;n#body#0;n#html#0;n#!!top"
expanded=
"true"
/>
</folding>
</state>
</provider>
...
...
@@ -55,8 +57,8 @@
<file
leaf-file-name=
"index.js"
pinned=
"false"
current-in-tab=
"true"
>
<entry
file=
"file://$PROJECT_DIR$/Public/static/js/index.js"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"
336
"
>
<caret
line=
"
56"
column=
"14"
lean-forward=
"false"
selection-start-line=
"56"
selection-start-column=
"14"
selection-end-line=
"56"
selection-end-column=
"14
"
/>
<state
relative-caret-position=
"
277
"
>
<caret
line=
"
89"
column=
"53"
lean-forward=
"true"
selection-start-line=
"89"
selection-start-column=
"53"
selection-end-line=
"89"
selection-end-column=
"53
"
/>
<folding
/>
</state>
</provider>
...
...
@@ -504,12 +506,12 @@
<updated>
1566667513502
</updated>
<workItem
from=
"1566667516612"
duration=
"55749000"
/>
<workItem
from=
"1567098016695"
duration=
"6433000"
/>
<workItem
from=
"1567181764126"
duration=
"10
384
000"
/>
<workItem
from=
"1567181764126"
duration=
"10
866
000"
/>
</task>
<servers
/>
</component>
<component
name=
"TimeTrackingManager"
>
<option
name=
"totallyTimeSpent"
value=
"7
2566
000"
/>
<option
name=
"totallyTimeSpent"
value=
"7
3048
000"
/>
</component>
<component
name=
"ToolWindowManager"
>
<frame
x=
"0"
y=
"23"
width=
"1440"
height=
"815"
extended-state=
"6"
/>
...
...
@@ -592,6 +594,7 @@
<element
signature=
"n#style#0;n#div#10;n#div#0;n#div#0;n#body#0;n#html#0;n#!!top"
expanded=
"true"
/>
<element
signature=
"n#style#0;n#div#3;n#div#0;n#div#10;n#div#0;n#div#0;n#body#0;n#html#0;n#!!top"
expanded=
"true"
/>
<element
signature=
"n#style#0;n#div#4;n#div#0;n#div#10;n#div#0;n#div#0;n#body#0;n#html#0;n#!!top"
expanded=
"true"
/>
<element
signature=
"n#style#0;n#div#5;n#div#0;n#div#10;n#div#0;n#div#0;n#body#0;n#html#0;n#!!top"
expanded=
"true"
/>
</folding>
</state>
</provider>
...
...
@@ -644,6 +647,7 @@
<element
signature=
"n#style#0;n#div#10;n#div#0;n#div#0;n#body#0;n#html#0;n#!!top"
expanded=
"true"
/>
<element
signature=
"n#style#0;n#div#3;n#div#0;n#div#10;n#div#0;n#div#0;n#body#0;n#html#0;n#!!top"
expanded=
"true"
/>
<element
signature=
"n#style#0;n#div#4;n#div#0;n#div#10;n#div#0;n#div#0;n#body#0;n#html#0;n#!!top"
expanded=
"true"
/>
<element
signature=
"n#style#0;n#div#5;n#div#0;n#div#10;n#div#0;n#div#0;n#body#0;n#html#0;n#!!top"
expanded=
"true"
/>
</folding>
</state>
</provider>
...
...
@@ -778,20 +782,21 @@
</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=
"
458
"
>
<caret
line=
"2
81"
column=
"0"
lean-forward=
"true"
selection-start-line=
"281"
selection-start-column=
"0"
selection-end-line=
"281"
selection-end-column=
"0
"
/>
<state
relative-caret-position=
"
192
"
>
<caret
line=
"2
37"
column=
"37"
lean-forward=
"false"
selection-start-line=
"237"
selection-start-column=
"33"
selection-end-line=
"237"
selection-end-column=
"37
"
/>
<folding>
<element
signature=
"n#style#0;n#div#10;n#div#0;n#div#0;n#body#0;n#html#0;n#!!top"
expanded=
"true"
/>
<element
signature=
"n#style#0;n#div#3;n#div#0;n#div#10;n#div#0;n#div#0;n#body#0;n#html#0;n#!!top"
expanded=
"true"
/>
<element
signature=
"n#style#0;n#div#4;n#div#0;n#div#10;n#div#0;n#div#0;n#body#0;n#html#0;n#!!top"
expanded=
"true"
/>
<element
signature=
"n#style#0;n#div#5;n#div#0;n#div#10;n#div#0;n#div#0;n#body#0;n#html#0;n#!!top"
expanded=
"true"
/>
</folding>
</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=
"
336
"
>
<caret
line=
"
56"
column=
"14"
lean-forward=
"false"
selection-start-line=
"56"
selection-start-column=
"14"
selection-end-line=
"56"
selection-end-column=
"14
"
/>
<state
relative-caret-position=
"
277
"
>
<caret
line=
"
89"
column=
"53"
lean-forward=
"true"
selection-start-line=
"89"
selection-start-column=
"53"
selection-end-line=
"89"
selection-end-column=
"53
"
/>
<folding
/>
</state>
</provider>
...
...
Application/Home/View/default/Index_index.tpl
View file @
718a7d61
...
...
@@ -241,11 +241,11 @@
</div>
<div
class=
"btn-g-g-bj"
></div>
</div>
<div
class=
"no-prize
"
style=
"display: block
"
></div>
<div
class=
"prize"
style=
"display: none"
>
<div
class=
"no-prize
m-prize"
style=
"display: none
"
></div>
<div
class=
"prize
y-prize
"
style=
"display: none"
>
<div
class=
"btn-info"
></div>
</div>
<div
class=
"btn"
>
<div
class=
"btn
m-prize"
style=
"display: none
"
>
<div
class=
"btn-share"
></div>
<div
class=
"btn-j-x"
></div>
</div>
...
...
Public/static/js/index.js
View file @
718a7d61
...
...
@@ -64,53 +64,56 @@ $(document).ready(function () {
coverImg
:
'Public/static/images/m-c.jpg'
,
ratio
:
.
4
},
function
()
{
alert
(
'至于你信不信,我反正不信!'
);
if
(
!
prize_lock
)
{
return
;
}
prize_lock
=
false
;
$
.
ajax
({
url
:
'/index/get_prize'
,
type
:
'post'
,
data
:
{
'photo_url'
:
$
(
'.h-b'
).
attr
(
'src'
)
},
success
:
function
(
resp
)
{
setTimeout
(
function
()
{
prize_lock
=
true
;
$
(
'.page-s-c'
).
hide
();
$
(
'.page_checking'
).
hide
();
if
(
resp
.
errcode
==
0
)
{
if
(
resp
.
data
.
prize_type
==
0
)
{
$
(
'#card'
).
attr
(
'src'
,
'Public/static/images/no-przie.jpg'
)
$
(
'.m-prize'
).
show
();
$
(
'.y-prize'
).
hide
();
}
else
{
$
(
'#card'
).
attr
(
'src'
,
'Public/static/images/prize-map.jpg'
)
$
(
'.m-prize'
).
show
();
$
(
'.y-prize'
).
hide
();
if
(
resp
.
data
.
info_type
==
0
||
resp
.
data
.
info_type
==
2
){
$
(
'.btn-submit'
).
show
();
}
else
{
$
(
'.page-info input'
).
attr
(
'disabled'
,
'disabled'
);
$
(
'.btn-submit'
).
addClass
(
'lock'
).
show
();
$
(
'.name'
).
val
(
resp
.
data
.
name
);
$
(
'.tel'
).
val
(
resp
.
data
.
tel
);
$
(
'.address'
).
val
(
resp
.
data
.
address
);
}
if
(
resp
.
data
.
info_type
==
2
||
resp
.
data
.
info_type
==
1
){
my_notify
(
'你已中过奖'
);
}
}
}
},
1000
);
}
});
this
.
clearCover
();
})
})
;
return
;
if
(
!
prize_lock
)
{
return
;
}
$
(
'.text_'
).
html
(
'抽奖中,<br>莫捉急~'
);
$
(
'.page_checking'
).
show
();
prize_lock
=
false
;
$
.
ajax
({
url
:
'/index/get_prize'
,
type
:
'post'
,
data
:
{
'photo_url'
:
$
(
'.h-b'
).
attr
(
'src'
)
},
success
:
function
(
resp
)
{
setTimeout
(
function
()
{
prize_lock
=
true
;
$
(
'.page-s-c'
).
hide
();
$
(
'.page_checking'
).
hide
();
if
(
resp
.
errcode
==
0
)
{
if
(
resp
.
data
.
prize_type
==
0
)
{
$
(
'.page-no-prize'
).
show
();
}
else
{
$
(
'.page-prize'
).
show
();
if
(
resp
.
data
.
info_type
==
0
||
resp
.
data
.
info_type
==
2
){
$
(
'.btn-submit'
).
show
();
}
else
{
$
(
'.page-info input'
).
attr
(
'disabled'
,
'disabled'
);
$
(
'.btn-submit'
).
addClass
(
'lock'
).
show
();
$
(
'.name'
).
val
(
resp
.
data
.
name
);
$
(
'.tel'
).
val
(
resp
.
data
.
tel
);
$
(
'.address'
).
val
(
resp
.
data
.
address
);
}
if
(
resp
.
data
.
info_type
==
2
||
resp
.
data
.
info_type
==
1
){
my_notify
(
'你已中过奖'
);
}
}
}
},
1000
);
}
});
});
$
(
'.btn-close-two'
).
on
(
'click'
,
function
()
{
$
(
'.page_home'
).
hide
();
...
...
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