{extend name="$LAYOUT_HOME_BASE" /} {block name="title"}{$catName} - 积分商城 - {__block__}{/block} {block name="meta"} {/block} {block name="css"} {/block} {block name="nav"} {include file="$LAYOUT_HOME_TOP" /} {include file="$LAYOUT_HOME_HEADER" /} {/block} {block name="main"} {/* 横栏广告 */}

{wst:ads code="ads-integral" cache='86400'}
{/wst:ads}

{php}$signScore=explode(",",WSTConf('CONF.signScore'));{/php}
{if condition="session('WST_USER.userId') >0"}

{:session('WST_USER.userName')?session('WST_USER.userName'):session('WST_USER.loginName')}

当前积分
{$user["userScore"]}
余额（元）
{$user["userMoney"]}
{if(WSTConf('CONF.signScoreSwitch')==1 && $signScore[0]>0)} {if(session('WST_USER.signScoreTime')==date('Y-m-d'))}
{else}
{/if} {/if} {else}
Hi 欢迎来到{:WSTMSubstr(WSTConf('CONF.mallName'),0,13)}
请登录 立即注册
{/if}
{wst:ads code="ads-integral" cache='86400' key='k'} {if condition="$k+1 eq 1"} {else/} {/if} {/wst:ads}
{/* 筛选条件 */}

- 全部商品分类
{volist name="$catList" id='vo'}
- {$vo['catName']}
{/volist}

{/* 商品展示 */}
{volist name='goodsPage["Rows"]' id='vo'}
{$vo['goodsName']}
店铺价：￥{$vo['shopPrice']}
￥{$vo['goodsPrice']} + {$vo['integralNum']} 积分
{if condition="($vo['totalNum']-$vo['orderNum']) gt 0"} {if condition="isSet($user) and $user['userScore'] lt $vo['integralNum']"} 积分不足 {else/} 立即兑换 {/if} {else/} 已抢光 {/if}
{/volist}
{include file="$LAYOUT_HOME_RIGHT_CART"/} {/block} {block name="footer"} {include file="$LAYOUT_HOME_FOOTER" /} {/block} {block name="js"}
{/block}