{extend name="$member_base" /} {block name="right_main"} {php} $virtual_goods_data = api('System.Member.virtualGoodsList', ['page_index' => $page_index]); $virtual_list = $virtual_goods_data['data']['data']; $total_count = $virtual_goods_data['data']['total_count']; {/php}
我的虚拟码

商品名称 | 虚拟码 | 创建时间 | 过期时间 | 操作
--- | --- | --- | --- | ---
{notempty name="$virtual_list"} {foreach $virtual_list as $vo}
{$vo.virtual_goods_name} | {$vo.virtual_code} | {$vo.create_time | getTimeStampTurnTime} | {if condition="$vo.end_time != 0"}{$vo.end_time | getTimeStampTurnTime}{else/}不限制{/if} | {switch $vo.goods_type } {case value="0"} 查看 {/case} {case value="2"} 查看 {/case} {case value="3"} 查看 {/case} {case value="4"} 查看 {/case} {/switch}
{/foreach} {else/}
暂无相关数据！
{/notempty}

{if condition="$total_count>0"}

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