Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
cof_vip
Project
Project
Details
Activity
Releases
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
houdong
cof_vip
Commits
472051a1
Commit
472051a1
authored
Mar 23, 2023
by
houdong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
抽奖提示换成弹窗
parent
28e2cbe7
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
4 deletions
+8
-4
lottery.js
Public/js/lottery.js
+5
-1
IndexAction.class.php
app/Lib/Action/Vip/IndexAction.class.php
+1
-1
lucky.html
app/Tpl/Vip/Index/lucky.html
+1
-1
pop.html
app/Tpl/Vip/Index/pop.html
+1
-1
No files found.
Public/js/lottery.js
View file @
472051a1
...
...
@@ -93,7 +93,11 @@ $(function() {
$
(
"#lottery .btn"
).
on
(
'click'
,
function
(
event
)
{
$
.
get
(
"/Index/checkLucky"
,
{},
function
(
data
)
{
if
(
data
.
status
==
0
)
{
if
(
data
.
status
==
2
)
{
$
(
".mask"
).
show
();
$
(
"#pop1"
).
show
();
}
else
if
(
data
.
status
==
0
)
{
layer
.
msg
(
data
.
info
);
}
else
{
event
.
preventDefault
();
...
...
app/Lib/Action/Vip/IndexAction.class.php
View file @
472051a1
...
...
@@ -1131,7 +1131,7 @@ class IndexAction extends IdentityAction {
public
function
checkLucky
()
{
$userId
=
$this
->
user
[
'userID'
];
if
(
$userId
==
0
){
$this
->
ajaxReturn
([
'status'
=>
0
,
'info'
=>
'请登录后再操作'
]);
$this
->
ajaxReturn
([
'status'
=>
2
,
'info'
=>
'请登录后再操作'
]);
}
//每个月1--7号可以抽奖
if
(
date
(
'd'
)
>
7
){
...
...
app/Tpl/Vip/Index/lucky.html
View file @
472051a1
...
...
@@ -15,7 +15,7 @@
<script
type=
"text/javascript"
src=
"__PUBLIC__/js/jquery-1.8.2.min.js"
></script>
<script
type=
"text/javascript"
src=
"__PUBLIC__/js/layer/layer.min.js"
></script>
<script
type=
"text/javascript"
src=
"__PUBLIC__/js/clipboard.min.js"
></script>
<script
type=
"text/javascript"
src=
"__PUBLIC__/js/lottery.js"
></script>
<script
type=
"text/javascript"
src=
"__PUBLIC__/js/lottery.js
?_=23
"
></script>
<script
type=
"text/javascript"
src=
"__PUBLIC__/js/pk.js{$Think.config.js_version}3232"
></script>
</head>
...
...
app/Tpl/Vip/Index/pop.html
View file @
472051a1
<div
class=
"submit-info-pop pops web-pop"
style=
"display: none;"
id=
"pop1"
targetUrl=
""
>
<div
class=
"submit-info-pop pops web-pop"
style=
"display: none;
z-index: 1112
"
id=
"pop1"
targetUrl=
""
>
<span
class=
"t-pop-close"
><img
src=
"__PUBLIC__/images/h5/g2020/pop-close.png"
alt=
""
></span>
<div
class=
"p-msg"
>
<!--报名成功-->
...
...
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