{extend name="$base" /} {block name="resources"} {/block} {block name="lunbo"} {php} //轮播 $banner_list = api('System.Shop.advDetail', ['ap_keyword' => 'PC_TOPIC_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}
{/block} {block name="main"} {php} $data = api('System.Goods.promotionTopic'); $data = $data['data']; $total_count = $data['total_count']; {/php} {if condition="$total_count eq 0"} {else /}
{$title_before}
{foreach name="$data['data']" id="v"}
{:lang("goods_entry_topic")}

### {$v['topic_name']}

{$v['desc']}
{/foreach}
{/if} {php} $guess_member_likes = api('System.Goods.guessMemberLikes'); $guess_member_likes = $guess_member_likes['data']; $member_history = api('System.Member.memberHistory'); $member_history = $member_history['data']; {/php} {notempty name="$guess_member_likes && $member_history"}
{:lang('guess_you_like')} {:lang('browse_history')}
{notempty name="$guess_member_likes"} {if condition="count($guess_member_likes) gt 6"} {:lang('batch')} {/if} {/notempty} {:lang('empty')}

{notempty name="$guess_member_likes"} {volist name="guess_member_likes" id="vo" key="k"} {if condition="$k%6 eq 1 and $k gt 1"}
- {else /}
- {/if}
  {$vo.goods_name}
  {in name="$vo.point_exchange_type" value="0,2"} ￥{$vo.price} {else/} {if $vo['point_exchange_type'] == 1 && $vo['promotion_price'] > 0} ￥{$vo.promotion_price}+{$vo.point_exchange}积分 {else/} {$vo.point_exchange}积分 {/if} {/in}
{/volist} {/notempty}

{if condition="$member_history eq ''"} {:lang('have_not_browsed_history_yet')}！ {else/} {volist name="member_histrorys" id="vo"}
- {$vo.goods_name}
  {in name="$vo.point_exchange_type" value="0,2"} ￥{$vo.price} {else/} {if $vo['point_exchange_type'] == 1 && $vo['promotion_price'] > 0} ￥{$vo.promotion_price}+{$vo.point_exchange}积分 {else/} {$vo.point_exchange}积分 {/if} {/in}
{/volist} {/if}

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