ecshop仿京东分类程序出错。

2016-07-07 16:13 来源:www.chinab4c.com 作者:ecshop专家

我按照http://bbs.ecshop.com/viewthread.php?tid=94688&highlight=DIV%2B%2Bcss所说的完成以后,点击二级菜单向右移动。效果:www.ydldhina.com
lib如下:
<meta http-equiv="Content-Type" content="text/html; charset=gbk">
<div class="my_left_category">
<h1>商品分类</h1>
<div class="my_left_cat_list">
{assign var="pre_item_level" value=-1}
<!--{foreach from=cat_list(0,0,false,3,false) item=cat}-->
{if $cat.level lt 2 && $pre_item_level gt 0}
</ul></div></div></div></div>
{/if}
{if $cat.level eq 0}
<h2><a href="{$cat.url}">{$cat.name|escape:html}</a></h2>
{elseif $cat.level eq 1}
<div class="h2_cat">
<h3><SPAN> - {$cat.cat_desc|escape:html}</SPAN><a href="{$cat.url}">{$cat.name|escape:html}</a></h3>
<div class="h3_cat">
<div class="shadow">
<div class="shadow_border">
<ul>
{elseif $cat.level eq 2}
<li><a href="{$cat.url}">{$cat.name|escape:html}</a></li>
{/if}
{assign var="pre_item_level" value=$cat.level}
<!--{/foreach}-->
{if $pre_item_level gt 0}
</ul></div></div></div></div>
{/if}
</div>
</div>