A-A+

thinkphp volist嵌套循环

2015年11月20日 php 暂无评论 阅读 2,782 views 次
  • <volist name="onuserdata" id="v">
  •                 <div class="item-wrap">
  •                     <div class="item">
  •                         <div class="f-fl">
  •                             <img src="{$v.headurl}" alt="">
  •                             <div class="name">{$v.nickname}</div>
  •                             <div class="earnings">本月收益:{$v.balance}</div>
  •                         </div>
  •                         <div class="f-fr note">
  •                             <h2>已上架菜品</h2>
  •                             <div class="cook-list">
  •                                 <ul>
  •                                 <volist name="v['recipe']" id="vr">
  •                                     <li>{$vr.title}</li>
  •                                 </volist>
  •                                 </ul>
  •                             </div>
  •                         </div>
  •                         <div class="clear"></div>
  •                     </div>
  •                 </div>
  •                 </volist>
标签:

给我留言