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
王水玲
2016-04-22 16:17:26 +0800
Commit
1e567bb82c3eee4b21b2e819b69d2fb1cb869fe1
1 parent
53563ce4
领券中心修改
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
38 additions
and
36 deletions
static/js/index/coupon.js
template/m.yohobuy.com/actions/index/coupon/index.phtml
static/js/index/coupon.js
View file @
1e567bb
...
...
@@ -15,6 +15,9 @@ $receive.on('click', function() {
$
.
ajax
({
url
:
'/coupon/receiveCoupon'
,
data
:
{
couponID
:
$curDom
.
parents
(
'.coupon-floor'
).
attr
(
'coupon-id'
)
},
dataType
:
'json'
,
success
:
function
(
data
)
{
var
msg
=
data
.
msg
,
...
...
template/m.yohobuy.com/actions/index/coupon/index.phtml
View file @
1e567bb
{
{>layout/header
}
}
<div
class=
"coupon-area"
>
{
{#
content
}
}
{
{#if
isSingleImage
}
}
<a
href=
"{{url}}"
><img
src=
"{{src}}"
class=
"just-img"
/></a>
{
{/if
}
}
{
{#if
isCarouselBanner
}
}
{
{>
home/banner_top
}
}
{
{/if
}
}
{
{#if
isCoupon
}
}
<div
class=
"coupon-floor"
>
{
{#if
showFloorTitle
}
}
<div
class=
"floor-title"
>
{
{floorTitle
}
}
</div>
{
{/if
}
}
<div
class=
"floor-main"
style=
"background-image: url({{image.src}});"
>
<a
href=
"{{image.url}}"
class=
"main-left"
></a>
{
{#if
isGet
}
}
<div
class=
"main-right-receive"
>
<span
class=
"on-receive"
></span>
</div>
<a
href=
"{{image.url}}"
class=
"main-right-use"
style=
"display: none"
>
<span
class=
"received"
></span>
</a>
{
{#
content
}
}
{
{#if
isSingleImage
}
}
<a
href=
"{{url}}"
><img
src=
"{{src}}"
class=
"just-img"
/></a>
{
{/if
}
}
{
{#if
isGeted
}
}
<a
href=
"{{image.url}}"
class=
"main-right-use"
>
<span
class=
"received"
></span>
</a>
{
{#if
isCarouselBanner
}
}
{
{>
home/banner_top
}
}
{
{/if
}
}
{
{#if
isZero
}
}
<a
href=
"{{image.url}}"
class=
"main-right-go"
>
<span
class=
"zero"
></span>
</a>
{
{#if
isCoupon
}
}
<div
class=
"coupon-floor"
coupon-id=
"{{couponID}}"
>
{
{#if
showFloorTitle
}
}
<div
class=
"floor-title"
>
{
{floorTitle
}
}
</div>
{
{/if
}
}
<div
class=
"floor-main"
style=
"background-image: url({{image.src}});"
>
<a
href=
"{{image.url}}"
class=
"main-left"
></a>
{
{#if
isGet
}
}
<div
class=
"main-right-receive"
>
<span
class=
"on-receive"
></span>
</div>
<a
href=
"{{image.url}}"
class=
"main-right-use"
style=
"display: none"
>
<span
class=
"received"
></span>
</a>
{
{/if
}
}
{
{#if
isGeted
}
}
<a
href=
"{{image.url}}"
class=
"main-right-use"
>
<span
class=
"received"
></span>
</a>
{
{/if
}
}
{
{#if
isZero
}
}
<a
href=
"{{image.url}}"
class=
"main-right-go"
>
<span
class=
"zero"
></span>
</a>
{
{/if
}
}
</div>
</div>
{
{/if
}
}
</div>
</div>
{
{/if
}
}
{
{/
content
}
}
{
{/
content
}
}
</div>
<div
class=
"floor-mask"
></div>
<div
class=
"floor-message"
>
...
...
Please
register
or
login
to post a comment