{php} $goods_list = api('System.Goods.goodsList', [ 'page_size' => $custom_template_v['control_data']['goods_list']['goods_limit_count'], 'condition' => [ 'ng.category_id_1' => $custom_template_v['control_data']['goods_list']['goods_source'], 'ng.state' => 1 ] ]); $custom_template_v['goods_list'] = $goods_list['data']['data']; {/php}
{notempty name="$custom_template_v['goods_list']"}

{foreach $custom_template_v['goods_list'] as $k=>$v}
- {if condition="$custom_template_v['control_data']['goods_list']['goods_show_goods_name'] eq 1"}

  ##### {notempty name="$v.group_name"}{$v.group_name}{/notempty} {$v["goods_name"]}

  {/if}
  {if condition="$custom_template_v['control_data']['goods_list']['goods_show_goods_price'] eq 1"} ￥{$v["promotion_price"]} {if condition="$v.shipping_fee==0"} 包邮 {/if} {/if}
{/foreach}

{/notempty}