0
0

tree.html 827 B

123456789101112131415161718192021222324252627
  1. {volist name="data" id="v"}
  2. <div class="p-div" style="text-indent:{$depth * 1}em;" onclick="itemsClick('{$v.id}')">
  3. -| {$v.title}
  4. </div>
  5. <!--<tr>-->
  6. <!-- <td style="text-indent:{$depth * 2}em;>-->
  7. <!-- {if condition="isset($v['children']) && !empty($v['children'])"}-->
  8. <!-- <i class="glyphicon glyphicon-folder-open"></i>-->
  9. <!-- {else /}-->
  10. <!-- <i class="glyphicon glyphicon-list-alt"></i>-->
  11. <!-- {/if}-->
  12. <!-- {$v.title}-->
  13. <!-- </td>-->
  14. <!--</tr>-->
  15. {if condition="isset($v['children']) && !empty($v['children'])"}
  16. {:widget_view('asset_items/tree',['data'=>$v['children'],'depth'=>$depth + 1])}
  17. {/if}
  18. {/volist}
  19. <script>
  20. function itemsClick(cateId){
  21. var url = "{:url('selectGoods')}?cateId="+cateId;
  22. window.location.href = url;
  23. }
  24. </script>