{extend name="$base" /} {block name="resources"} {/block} {block name="main"} {php} $banner_list = api('System.Shop.advDetail', ['ap_keyword' => 'PC_COUPON_SWIPER', 'export_type' => 'data']); $data = api('System.Goods.couponList', ['page_index' => $page_index]); $data = $data['data']; $promotion_list = $data['data']; $total_count = $data['total_count']; {/php}
优惠券中心 省钱更多，领券更多

- 限时抢券
- 叠加使用
- 种类多样

我的优惠券
{notempty name="$banner_list['data']"}

{foreach name="$banner_list['data']['advs']" item="vo" key="k"}
{/foreach}

{foreach name="$banner_list['data']['advs']" item="vo" key="k"}
{if is_url($vo['adv_url'])} {else/} {/if} {if $vo['adv_image']} {else /} {/if}
{/foreach}
{/notempty}
{notempty name="$promotion_list"}

{volist name="promotion_list" id="vo"} {if $vo['surplus_percentage'] > 0 && ($vo['max_fetch'] == 0 || $vo['received_num'] < $vo['max_fetch'])}
- {else /}
- {/if}
  ￥{$vo['money']} {$vo['coupon_name']}
  满{$vo['at_least'] > 0 ?$vo['at_least']: '任意金额'}可使用
  {$vo['range_type'] ? '适用所有商品' : '适用部分商品'}
  {if $vo['surplus_percentage'] > 0} {if $vo['max_fetch'] == 0 || $vo['received_num'] < $vo['max_fetch']} 立即领取 {else/} 您已领取 {/if} {else/} 已抢光 {/if}
{/volist}

{if condition="$total_count == 0"}
{:lang('no_coupons')}……
{/if} {if condition="$total_count>0"}

{/if}
{/notempty}
{/block} {block name="script"}
{/block}