{extend name="$base" /} {block name="resources"} {/block} {block name="lunbo"} {php} $banner_list = api('System.Shop.advDetail', ['ap_keyword' => 'PC_POINT_SWIPER', 'export_type' => 'data']); $system_config = api('System.Config.systemConfig'); $system_config = $system_config['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} $condition = array( "ng.state" => 1, "ng.point_exchange_type" => array( 'in', '1,2,3' ) ); if ($id) { if ($id == 1) { $order = "sales desc"; } elseif ($id == 2) { $order = "collects desc"; } elseif ($id == 3) { $order = "evaluates desc"; } elseif ($id == 4) { $order = "shares desc"; } else { $id = 0; $order = "sort ".$system_config['sort_type'].",goods_id desc"; } } else { $id = 0; $order = "sort ".$system_config['sort_type'].",goods_id desc"; } $page_index = request()->get('page', 1); $condition = array( "ng.state" => 1, "ng.point_exchange_type" => array( 'in', '1,2,3' ) ); $goods_list = api('System.Goods.goodsList', ['page_index' => $page_index, 'condition' => $condition, 'order'=>$order]); $goods_list = $goods_list['data']; $total_count = $goods_list['total_count']; {/php} {if condition="$total_count>0"}

- {:lang('goods_commodity_sorting')}:
- {:lang('goods_by_volume')}
- {:lang('goods_by_collection')}
- {:lang('goods_evaluation_quantity')}
- {:lang('goods_by_sharing')}

{foreach $goods_list.data as $goods}
- {if condition="$goods['is_hot'] eq 1"} {/if} {if condition="$goods['is_recommend'] eq 1"} {/if} {if condition="$goods['is_new'] eq 1"} {/if} {if $goods['point_exchange_type'] eq 2} {else/} {/if}
  {if $goods['point_exchange_type'] == 2 || $goods['point_exchange_type'] == 3} {$goods.point_exchange}积分 {elseif $goods['point_exchange_type'] == 1} {if $goods['promotion_price'] > 0} ￥{$goods['promotion_price']}+{$goods.point_exchange}积分 {else/} {$goods.point_exchange}积分 {/if} {/if}
  {if $goods['point_exchange_type'] eq 2} {else/} {/if} {$goods.goods_name} {if $goods['point_exchange_type'] eq 2} 立即兑换 {else/} 立即兑换 {/if}
{/foreach}

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