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
郭成尧
9 years ago
Commit
91a6c42ececcd28604589b97f8f7748e1ea49645
1 parent
0e379473
列表搞定
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
48 additions
and
53 deletions
template/m.yohobuy.com/actions/index/coupon/index.phtml
template/m.yohobuy.com/actions/index/coupon/test.phtml
yohobuy/m.yohobuy.com/application/controllers/Coupon.php
template/m.yohobuy.com/actions/index/coupon/index.phtml
View file @
91a6c42
{
{>layout/header
}
}
{
{#
floor
}
}
<div
class=
"coupon-floor"
>
{
{#if
showTitle
}
}
<div
class=
"coupon-title"
>
{
{title
}
}
</div>
{
{/if
}
}
{
{#
coupons
}
}
<div
class=
"coupon-box"
style=
"background-image: url('http://static.dev.yohobuy.com/img/test/coupon.png')"
>
{
{#if
url
}
}
<a
href=
"{{url}}"
>
<div
class=
"coupon-left"
></div>
</a>
{
{^
}
}
<div
class=
"coupon-left"
></div>
{
{/if
}
}
<div
class=
"coupon-right"
>
{
{#if
status
}
}
<div
class=
"coupon-right-reBox"
>
</div>
{
{#if
isCoupon
}
}
{
{#
list
}
}
<div
class=
"coupon-floor"
>
<div
class=
"coupon-title"
>
</div>
<div
class=
"coupon-box"
style=
"background-image: url('http://static.dev.yohobuy.com/img/test/coupon.png')"
>
{
{#if
image.src
}
}
<a
href=
"{{goShopping}}"
>
<div
class=
"coupon-left"
></div>
</a>
{
{^
}
}
{
{#if
is_zero
}
}
<a
href=
"{{go}}"
>
<div
class=
"coupon-right-goBox"
>
</div>
</a>
{
{^
}
}
<a
href=
"{{go}}"
>
<div
style=
"height: 100%;width:100%"
class=
"coupon-right-goBox"
>
</div></a>
{
{/if
}
}
<div
class=
"coupon-left"
></div>
{
{/if
}
}
<div
class=
"coupon-right"
>
{
{#if
isGet
}
}
<div
class=
"coupon-right-reBox"
></div>
{
{/if
}
}
{
{#if
isGeted
}
}
<a
href=
"{{goShopping}}"
>
<div
class=
"coupon-right-goBox"
></div>
</a>
{
{/if
}
}
{
{#if
isZero
}
}
<a
href=
"{{goShopping}}"
>
<div
style=
"height: 100%;width:100%"
class=
"coupon-right-goBox"
></div>
</a>
{
{/if
}
}
</div>
</div>
</div>
{
{/
coupons
}
}
</div>
{
{/
list
}
}
{
{/if
}
}
{
{/
floor
}
}
<div
class=
"coupon-mask"
></div>
<div
class=
"coupon-message"
>
<div
class=
"coupon-message-content"
></div>
...
...
@@ -50,5 +46,4 @@
<div
class=
"iconfont icon-box"
>
648
;</div>
<div
class=
"icon-msg"
>领取成功</div>
</div>
{
{/floor
}
}
{
{>
layout/footer
}
}
\ No newline at end of file
...
...
template/m.yohobuy.com/actions/index/coupon/test.phtml
View file @
91a6c42
{
{>
layout/header
}
}
{
{#
floor
}
}
{
{#if
isCoupon
}
}
{
{#
list
}
}
{
{#if
isGet
}
}
<div>
{
{status
}
}</div>
{
{/if
}
}
{
{#if
isZero
}
}
<div>
{
{status
}
}</div>
{
{/if
}
}
{
{#if
isGeted
}
}
<div>
{
{status
}
}</div>
{
{/if
}
}
{
{/list
}
}
{
{/if
}
}
{
{#if
isCarouselBanner
}
}
{
{#
list
}
}
<div>isCarouselBanner</div>
{
{/list
}
}
{
{/if
}
}
{
{#if
isCoupon
}
}
{
{#
list
}
}
{
{#if
isGet
}
}
<div>
{
{status
}
}</div>
{
{/if
}
}
{
{#if
isZero
}
}
<div>
{
{status
}
}</div>
{
{/if
}
}
{
{#if
isGeted
}
}
<div>
{
{status
}
}</div>
{
{/if
}
}
{
{/list
}
}
{
{/if
}
}
<!--
{
{#if
isCarouselBanner
}
}-->
<!--
{
{#
list
}
}-->
<!--
<div>isCarouselBanner</div>-->
<!--
{
{/list
}
}-->
<!--
{
{/if
}
}-->
{
{/
floor
}
}
<input
type=
"hidden"
id=
"couponId"
/>
...
...
yohobuy/m.yohobuy.com/application/controllers/Coupon.php
View file @
91a6c42
...
...
@@ -25,7 +25,7 @@ class CouponController extends AbstractAction
if
(
isset
(
$resource
[
'code'
])
&&
$resource
[
'code'
]
==
200
)
{
$result
=
CouponFloorProcess
::
getContent
(
$resource
[
'data'
]);
}
$this
->
_view
->
display
(
'
test
'
,
array
(
$this
->
_view
->
display
(
'
index
'
,
array
(
'floor'
=>
$result
,
));
}
...
...
Please
register
or
login
to post a comment