<div class="layui-side layui-bg-black">
<div class="layui-side-scroll">
<!-- 左侧导航区域(可配合layui已有的垂直导航) -->
<ul class="layui-nav layui-nav-tree" lay-filter="test">
<li class="layui-nav-item layui-nav-itemed" th:each="resource:${resources}">
<a class="" href="javascript:;" th:text="${resource.resourceName}">所有商品</a>
<dl class="layui-nav-child" th:if="${resource.subs} ne null" th:each="sub:${resource.subs}">
<dd><a href="javascript:;" th:text="${sub.resourceName}">列表一</a></dd>
</dl>
</li>
</ul>
</div>
</div>