作者 anyv
1 个管道 的构建 通过 耗费 0 秒

产品

... ... @@ -93,7 +93,7 @@ class ListController extends HomeBaseController
$data = Db::name('portal_category') -> select();
$shuju = $this -> wuxian($data);
dump($shuju);die;
$this -> assign('jdata',$shuju);
... ... @@ -110,6 +110,7 @@ class ListController extends HomeBaseController
$wh_data = Db::name('portal_post') -> where('id',$post_data['post_id']) -> find();
$wh_data['post_content'] = cmf_replace_content_file_url(htmlspecialchars_decode($wh_data['post_content']));
$this -> assign('zuixin',$wh_data);
$this -> assign('category',$category['id']);
}else{
... ...
... ... @@ -84,14 +84,14 @@
<volist name="jdata" id="vo">
<div class="ce1">
<div class="ce1_title">
<div class="ce1_title ce1{$vo.id}">
<img src="__TMPL__/public/assets/images/aicon09.png" alt="">
<h2>{$vo.name}</h2>
</div>
<div class="ce1_2">
<div class="ce1_2_Ul">
<volist name="vo.son" id="v">
<div class="ce1_2_Li_title" onclick="neiro({$v.id})">
<div class="ce1_2_Li_title ce{$v.id}" onclick="neiro({$v.id})">
<h3>{$v.name}</h3>
</div>
... ... @@ -150,6 +150,12 @@
}
}*/
$(document).ready(function(){
$('.ce'+{$category}).parent().parent().parent().trigger('click');
})
//点击查询单个文章
function neiro(id){
... ...