修改分类
This commit is contained in:
@@ -281,10 +281,10 @@ class TopicNas extends Common
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
dump($article_categorys_new);
|
// dump($article_categorys_new);
|
||||||
dump($article_categorys_two);exit;
|
// dump($article_categorys_two);exit;
|
||||||
|
|
||||||
View::assign('article_categorys', $article_categorys);
|
View::assign('article_categorys', $article_categorys_new);
|
||||||
|
|
||||||
return View::fetch('help_detail');
|
return View::fetch('help_detail');
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -34,51 +34,63 @@
|
|||||||
<div class="nav-tree">
|
<div class="nav-tree">
|
||||||
|
|
||||||
<!-- start 三级菜单的测试代码 可删-->
|
<!-- start 三级菜单的测试代码 可删-->
|
||||||
|
{volist name="article_categorys" id="ac"}
|
||||||
<div class="category">
|
<div class="category">
|
||||||
<!-- 一级 -->
|
<!-- 一级 -->
|
||||||
<div class="category-title">
|
<div class="category-title">
|
||||||
<div class="arrow"><img src="helpImg/nars-jt.png" class="arrow" /></div>
|
<div class="arrow {if condition='$ac.id == $Request.get.cid'}rotate{/if}"><img src="__IMAGES__/nars-jt.png" class="arrow {if condition='$ac.id == $Request.get.cid'}rotate{/if}" /></div>
|
||||||
<span>初次使用</span>
|
|
||||||
</div>
|
|
||||||
<!-- 二级-->
|
|
||||||
<ul class="sub-list">
|
|
||||||
<li class="two-mues">
|
|
||||||
<a href="#" class="two-a">
|
|
||||||
<div class="arrow"><img src="helpImg/nars-jt.png" class="arrow" /></div>
|
|
||||||
<span>我是二级</span>
|
|
||||||
</a>
|
|
||||||
<!-- 三级-->
|
|
||||||
<ul class="thress-mues">
|
|
||||||
<li><a href="#" style="padding-top: 6px;padding-left: 30px;">我是三级?</a></li>
|
|
||||||
</ul>
|
|
||||||
</li>
|
|
||||||
<li><a href="#" style="padding-top: 6px;">拿到产品后我该如何安装使用?</a></li>
|
|
||||||
<li><a href="#">APP无法下载/下载失败怎么办?</a></li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
<!-- end 三级菜单的测试代码 可删-->
|
|
||||||
|
|
||||||
{volist name="article_categorys" id="ac"}
|
|
||||||
<div class="category">
|
|
||||||
<div class="category-title">
|
|
||||||
<div class="arrow {if condition='$ac.id == $Request.get.cid'}rotate{/if}">
|
|
||||||
<img src="__IMAGES__/nas-jt.png"
|
|
||||||
class="arrow {if condition='$ac.id == $Request.get.cid'}rotate{/if}" />
|
|
||||||
</div>
|
|
||||||
<span>{$ac.name}</span>
|
<span>{$ac.name}</span>
|
||||||
</div>
|
</div>
|
||||||
|
<!-- 二级-->
|
||||||
<ul class="sub-list" {if condition='$ac.id == $Request.get.cid' }style="display: block;" {/if}>
|
<ul class="sub-list" {if condition='$ac.id == $Request.get.cid' }style="display: block;" {/if}>
|
||||||
{volist name="ac.article" id="ar"}
|
{volist name="ac.article" id="ar"}
|
||||||
<li>
|
{if condition='!empty($ac.child)' }
|
||||||
<a href="{:url('/index/topic/nas/help_detail', ['cid' => $ac.id, 'id' => $ar.id])}" {eq
|
<li class="two-mues">
|
||||||
name="ar.id" value="$Request.get.id" }class="active" {/eq}>
|
<a href="#" class="two-a">
|
||||||
{$ar.title}
|
<div class="arrow"><img src="__IMAGES__/nars-jt.png" class="arrow" /></div>
|
||||||
|
<span>{$ar.title}</span>
|
||||||
</a>
|
</a>
|
||||||
</li>
|
<ul class="thress-mues">
|
||||||
|
{volist name="ar.article" id="ad"}
|
||||||
|
<li><a href="{:url('/index/topic/nas/help_detail', ['cid' => $ad.id, 'id' => $ad.id])}" style="padding-top: 6px;padding-left: 30px;" {eq
|
||||||
|
name="ad.id" value="$Request.get.id" }class="active" {/eq}>{$ad.title}</a></li>
|
||||||
{/volist}
|
{/volist}
|
||||||
</ul>
|
</ul>
|
||||||
|
<!-- 三级-->
|
||||||
|
</li>
|
||||||
|
{/if}
|
||||||
|
{if condition='empty($ac.child)' }
|
||||||
|
<li><a href="{:url('/index/topic/nas/help_detail', ['cid' => $ac.id, 'id' => $ar.id])}" style="padding-top: 6px;" {eq
|
||||||
|
name="ar.id" value="$Request.get.id" }class="active" {/eq}>{$ar.title}</a></li>
|
||||||
|
{/if}
|
||||||
|
{/volist}
|
||||||
|
<!-- <li><a href="#">APP无法下载/下载失败怎么办?</a></li>-->
|
||||||
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
{/volist}
|
{/volist}
|
||||||
|
<!-- end 三级菜单的测试代码 可删-->
|
||||||
|
|
||||||
|
<!-- {volist name="article_categorys" id="ac"}-->
|
||||||
|
<!-- <div class="category">-->
|
||||||
|
<!-- <div class="category-title">-->
|
||||||
|
<!-- <div class="arrow {if condition='$ac.id == $Request.get.cid'}rotate{/if}">-->
|
||||||
|
<!-- <img src="__IMAGES__/nas-jt.png"-->
|
||||||
|
<!-- class="arrow {if condition='$ac.id == $Request.get.cid'}rotate{/if}" />-->
|
||||||
|
<!-- </div>-->
|
||||||
|
<!-- <span>{$ac.name}</span>-->
|
||||||
|
<!-- </div>-->
|
||||||
|
<!-- <ul class="sub-list" {if condition='$ac.id == $Request.get.cid' }style="display: block;" {/if}>-->
|
||||||
|
<!-- {volist name="ac.article" id="ar"}-->
|
||||||
|
<!-- <li>-->
|
||||||
|
<!-- <a href="{:url('/index/topic/nas/help_detail', ['cid' => $ac.id, 'id' => $ar.id])}" {eq-->
|
||||||
|
<!-- name="ar.id" value="$Request.get.id" }class="active" {/eq}>-->
|
||||||
|
<!-- {$ar.title}-->
|
||||||
|
<!-- </a>-->
|
||||||
|
<!-- </li>-->
|
||||||
|
<!-- {/volist}-->
|
||||||
|
<!-- </ul>-->
|
||||||
|
<!-- </div>-->
|
||||||
|
<!-- {/volist}-->
|
||||||
</div>
|
</div>
|
||||||
{/notempty}
|
{/notempty}
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user