Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
YOHOBUYWAP
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
liangxs
9 years ago
Commit
7cb291b38378dc878f583563955583704b852c2c
1 parent
91a6c42e
领券修盖
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
11 deletions
static/js/index/coupon.js
yohobuy/m.yohobuy.com/application/controllers/Coupon.php
static/js/index/coupon.js
View file @
7cb291b
...
...
@@ -12,18 +12,21 @@ $receive.on('touchend',function(){
url
:
'/coupon/receiveCoupon'
,
dataType
:
'json'
,
success
:
function
(
data
){
var
msg
=
data
.
msg
;
var
status
=
data
.
status
;
if
(
!
status
){
$tooltip
.
show
();
setTimeout
(
function
(){
$tooltip
.
hide
();
//location.reload();
},
3000
);
if
(
data
[
'noLogin'
]
!==
true
)
{
var
msg
=
data
.
msg
;
var
status
=
data
.
status
;
if
(
!
status
){
$tooltip
.
show
();
setTimeout
(
function
(){
$tooltip
.
hide
();
},
3000
);
}
else
{
$message
.
find
(
'.coupon-message-content'
).
text
(
msg
);
$mask
.
show
();
$message
.
show
();
}
}
else
{
$message
.
find
(
'.coupon-message-content'
).
text
(
msg
);
$mask
.
show
();
$message
.
show
();
location
.
href
=
data
[
'url'
];
}
},
error
:
function
(){}
...
...
yohobuy/m.yohobuy.com/application/controllers/Coupon.php
View file @
7cb291b
...
...
@@ -27,6 +27,7 @@ class CouponController extends AbstractAction
}
$this
->
_view
->
display
(
'index'
,
array
(
'floor'
=>
$result
,
'floorPage'
=>
true
));
}
...
...
Please
register
or
login
to post a comment