thinkphp5 volist 嵌套

 {volist name="type_arr" id='tav'  key='tak' }
        <div class="card">
            <div class="card-body">
                <h4 class="card-title">{:lang('check_type')[$tak]}</h4>
                <table class="table table-bordered mb-0">
                    <thead>
                    <tr>
                        <th>任务阶段</th>
                        <th>任务金额</th>
                        <th>已完成奖励</th>
                        <th>未完成处罚</th>
                        <th>完成状态</th>
                        <th>获得奖励</th>
                    </tr>
                    </thead>
                    {volist name='tav' id='tavv' key='tavk'}

                    <tr>
                        <td>{$tavv.level}</td>
                        <td>{$tavv.todo_num}</td>
                        <td>{$tavv.reward_price}</td>
                        <td>{$tavv.undo_punish_price}</td>
                        <td>{$tavv.status}</td>
                        <td>{$tavv.reward_price}</td>
                    </tr>
                    {/volist}
                </table>
            </div>
        </div>
        {/volist}
上一篇:28.ThinkPhP5 视频教程(三十讲):浅析session、cookie机制


下一篇:Thinkphp5漏洞复现