{extend name="$base" /} {block name="resources"} {/block} {block name="main"} {php} $data = api('System.Goods.goodsConsultList', ['goods_id' => $goods_id, 'page_index' => $page_index, 'ct_id' => $ct_id]); $data = $data['data']; $goods_info = api('System.Goods.goodsInfo', ['goods_id' => $goods_id]); $goods_info = $goods_info['data']; $total_count = $data['total_count']; $consult_list = $data['data']; {/php} {if condition="$goods_info"}

#### {:lang('goods_purchase_consultation')}

{:lang('goods_text')}！

{:lang('goods_need_consult')}
{if condition="$total_count eq 0"}
{:lang('goods_no_consultation_yet')}
{else /}
{volist name="consult_list" id="vo"}

{:lang('goods_consulting_user')}：
  {if condition="$vo.member_name eq ''"} {:lang('goods_tourist')} {else /} {$vo.member_name} {/if} {:lang('goods_consulting_type')}： {if condition="$vo.ct_id eq 1"} {:lang('goods_commodity_consultation')} {elseif condition="$vo.ct_id eq 2"/} {:lang('goods_payment_problem')} {else/} {:lang('goods_invoice_and_warranty')} {/if} [{$vo.consult_addtime | getTimeStampTurnTime}]

{:lang('goods_consultation_content')}：

  {$vo.consult_content}

{if condition="$vo.consult_reply neq ''"}

{:lang('goods_merchant_reply')}：

  {$vo.consult_reply}

  [{$vo.consult_reply_time | getTimeStampTurnTime}]

{/if}
{/volist}
{if condition="$total_count neq 0"}

{/if} {/if}
{:lang('goods_publish_consultation')}

{:lang('goods_consulting_type')}：
  {:lang('goods_commodity_consultation')} {:lang('goods_payment_problem')} {:lang('goods_invoice_and_warranty')}

{:lang('goods_consultation_content')}：

  {:lang('goods_publish_consultation')}

{:lang('goods_commodity_information')}
{$goods_info.goods_name}
  {:lang('goods_sale_price')}： ￥{$goods_info.promotion_price}
{else/}
{/if} {/block} {block name="script"}
{/block}