{extend name="$base" /} {block name="resources"}
{/block} {block name="main"}

| 排行 | 商品名称 |  | 销售量
--- | --- | --- | --- | ---
{foreach $goods_list as $k=>$goods_info}
| {if condition="$k eq 0"} {$k + 1} {elseif condition="$k eq 1"/} {$k + 1} {elseif condition="$k eq 2"/} {$k + 1} {else/} {$k + 1} {/if} | {$goods_info.goods_name} | {if condition="$k eq 0"} {elseif condition="$k eq 1"/} {elseif condition="$k eq 2"/} {/if} | {if condition="$k eq 0"} {$goods_info.real_sales} {elseif condition="$k eq 1"/} {$goods_info.real_sales} {elseif condition="$k eq 2"/} {$goods_info.real_sales} {else/} {$goods_info.real_sales} {/if}
{/foreach}

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