{extend name="$base" /} {block name="resources"} {/block} {block name="main"} {php} //首页顶部广告图 $top_list = api('System.Shop.advDetail', ['ap_keyword' => 'PC_INDEX_TOP', 'export_type' => 'data']); {/php} {notempty name="$top_list['data']"} {foreach name="$top_list['data']['advs']" item="vo" key="k"}
{if is_url($vo['adv_url'])} {else/} {/if}
{/foreach} {/notempty} {php} //PC端首页浮层 $web_floating = api('System.Shop.webFloating'); $web_floating = $web_floating['data']; {/php} {notempty name="$web_floating"} {if condition="$web_floating['is_show'] == 1"}
{/if} {/notempty} {php} $banner_list = api('System.Shop.advDetail', ['ap_keyword' => 'PC_INDEX_SWIPER', 'export_type' => 'data']); {/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 $vo['adv_image'] == ''} {else/} {if is_url($vo['adv_url'])} {else/} {/if} {/if}
{/foreach}
{/notempty}
{php} $recommend_list = api('System.Shop.advDetail', ['ap_keyword' => 'PC_INDEX_RECOMMEND', 'export_type' => 'data']); {/php} {notempty name="$recommend_list['data']['advs']"}
{foreach name="$recommend_list['data']['advs']" key="k" item="v"}
{if is_url($v['adv_url'])} {else/} {/if}
{/foreach}
{/notempty} {php} $discount_data = api("System.Goods.newestDiscount"); $discount = $discount_data['data']; $discount_adv = api('System.Shop.advDetail', ['ap_keyword' => 'PC_INDEX_DISCOUNT', 'export_type' => 'data']); $discount_adv = $discount_adv['data']; {/php} {notempty name="$discount"}
限时秒杀
FLASH DEALS
距离本场结束还有
00
00
00
00
{notempty name="$discount_adv"}
{foreach name="$discount_adv['advs']" item="vo" key="k"} {if is_url($vo['adv_url'])} {else/} {/if} {/foreach}

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

{/notempty}
{foreach name="$discount['goods_list']" item="vo" key="k"} {if condition="$k % 4 == 0 && $k == 0"}
{/if}

{$vo.goods_name}

¥{$vo.promotion_price} ¥{$vo.price}
{if condition="$k % 4 == 3 && $k != 0"}
{if condition="$k != count($discount['goods_list']) -1 "}
{/if} {/if} {if condition="$k == count($discount['goods_list']) -1 "}
{/if} {/foreach}
{/notempty} {php} $block_list = api("System.Goods.goodsCategoryBlockPc"); $block_list = $block_list['data']; {/php} {notempty name="$block_list"}
{php} echo $block_list; {/php}
{/notempty} {/block} {block name="script"}
{/block}