Authored by 郭成尧

列表搞定

{{>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">&#xe648;</div>
<div class="icon-msg">领取成功</div>
</div>
{{/floor}}
{{> layout/footer}}
\ No newline at end of file
... ...
{{> 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"/>
... ...
... ... @@ -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,
));
}
... ...