1.后台栏目
2.显示方式,水平排列,把下面相关代码改成栏目
猜您喜欢{:model_config($mid,'booking')['title']}{:del_html(get_sort($fid,'seo_title')?:get_sort($fid))}标签
</ul>
{volist name=":fun('Tagfun@getCorrelation',$info.seo_keywords,15)" offset="9" length=10' id="vo"}
<div><a rel="nofollow" href="{$vo.url}" target="_blank">{$vo.title}</a> </div>
{/volist}
这个你这个全是顶级栏目吧,这样:
{volist name=":fun('sort@top','booking',true) " id="vo"} <div><a rel="nofollow" href="{:urls('booking/content/index',['fid'=>$vo['id']]}" target="_blank">{$vo.name}</a> </div> {/volist}
<ul class="tab-btn">
<li data-id="tab2">{:model_config($mid,'booking')['title']}{:del_html(get_sort($fid,'seo_title')?:get_sort($fid))}相关栏目<div class="active"></div></li>
</ul>
<div id="tab1" class="tab">
<div class="tabcont rsort">
{volist name=":fun('sort@top','booking')" id="fname" }
{volist name=":fun('sort@sons',$key,'booking')" id="sname" }
<div class="fname"><a href="/booking/list-{$key}.html">{:model_config($mid,'booking')['title']}{$sname}</a></div>
{/volist}
{/volist}
</div>
</div>
</div>
<script type="text/javascript">
$(function () {
$("#tab1").show();
});
$(".foorertabs ul li").on('click',function () {
$(".foorertabs ul li div").removeClass('active');
$(this).find('div').addClass('active');
$(".tab").hide();
let showId = '#'+ $(this).data('id');
$(showId).show();
})
</script>