聯(lián)系官方銷售客服
1835022288
028-61286886
<div class="class"> <div class="tit">分類</div> <dl> <dd {if !$cat || $cat.child}class="aon"{else}{/if} id="all"><a href="{Router::search_url($params, 'catid', $parent.id)}">全部</a></dd> {loop $related $t} <dd id="s1" {if $t.id==$cat.id}class="aon"{else}{/if}><a href="{Router::search_url($params, 'catid', $t.id)}">{$t.name}</a></dd> {/loop} </dl> </div> <div class="type"> <div class="tit">類型</div> <dl> <dd class="aon" id="all2"><a href="/productList/list.aspx?lcid=7&proclass=">全部</a></dd> <dd id="ss4"><a href="/productList/list.aspx?lcid=7&protype=4&proclass=&key=">外開窗</a></dd> <dd id="ss5"><a href="/productList/list.aspx?lcid=7&protype=5&proclass=&key=">內(nèi)開/外開窗</a></dd> <dd id="ss6"><a href="/productList/list.aspx?lcid=7&protype=6&proclass=&key=">內(nèi)開窗</a></dd> <dd id="ss9"><a href="/productList/list.aspx?lcid=7&protype=9&proclass=&key=">推拉窗</a></dd> </dl> </div>
我想問下這個(gè)產(chǎn)品中心的二三級(jí)如何當(dāng)搜索欄目 這邊我按照文檔循環(huán)出來了二級(jí) 點(diǎn)擊后都是當(dāng)前欄目的下級(jí) 怎么直接循環(huán)出二三級(jí)欄目當(dāng)搜索條件呢
$related是顯示當(dāng)前欄目的下級(jí)或者同級(jí)欄目,他會(huì)根據(jù)欄目參數(shù)來變動(dòng),你要一層層的循環(huán)就用category標(biāo)簽了
回復(fù)@迅睿框架技術(shù)-小陌 一層一層的話怎么設(shè)置這個(gè)搜索地址呢
回復(fù)@迅睿框架技術(shù)-小陌 好的 我先弄下 謝謝