{extend name="$base" /} {block name="resources"}
{/block} {block name="main"} {php} $data = api('NsCombopackage.ComboPackage.comboPackageById', ['combo_id' => $combo_id, 'curr_id' => $curr_id]); $combo_package = $data['data']['combo_package']; {/php} {if !empty($combo_package)}

{foreach name="$combo_package.goods_list" item="goods_info" key="k"}
- {notempty name="$goods_info['sku_picture_list']"} {foreach name="$goods_info.sku_picture_list" item ="img" } {/foreach} {else /} {foreach name="$goods_info.img_list" item ="img" key = "k"} {/foreach} {/notempty}

  # {$goods_info.goods_name}

  {:lang("goods_stock")}： {$goods_info.stock}{:lang("goods_piece")}
  {foreach name="goods_info['sku_list']" item="pro_skus" key="k"} {/foreach} {foreach name="goods_info['spec_list']" item="spec" key="k"}
  {$spec.spec_name}
    {foreach name="spec.value" item="spec_value" key="key"} {if condition="$spec_value['spec_id'] eq $spec['spec_id']"}
    - {switch name="$spec_value.spec_show_type"} {case value="1"} {$spec_value.spec_value_name} {/case} {case value="2"} {if condition="$spec_value.spec_value_data == ''"} {$spec_value.spec_value_name} {else/} {$spec_value.spec_value_name} {/if} {/case} {case value="3"} {if condition="$spec_value.spec_value_data == ''"} {$spec_value.spec_value_name} {else/} {$spec_value.spec_value_name} {/if} {/case} {/switch}
    {/if} {/foreach}
  {/foreach}
{/foreach}

- {:lang("package_price")}： ￥{$combo_package.combo_package_price}

  {:lang("original_price")}： ￥ {$combo_package.original_price}

  {:lang("goods_immediate_purchase")}
  {:lang("goods_purchase")} {:lang("goods_tao")} ({:lang("save_the_price")}{$combo_package.save_the_price})

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