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

产品

... ... @@ -58,7 +58,7 @@ class ListController extends HomeBaseController
$path = explode('-', $category['path']);
dump($category);die;
//产品介绍
if($path[1] == 12){
... ... @@ -92,6 +92,17 @@ class ListController extends HomeBaseController
if(count($path) == 4){
//将最新文章的说明文献coa显示
$cos_data = Db::name('docu_coa') -> where('post_id',$category['id']) -> select();
$this -> assign('cos_data',$cos_data);
//显示文章
$post_data = Db::name('portal_category_post') -> where('category_id',$category['id']) -> find();
$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);
}else{
$zuixin = Db::name('portal_post') -> where('id','in',$arr3) -> where('delete_time',0) -> order('create_time desc') -> limit(1) -> select();
... ...
... ... @@ -16,7 +16,7 @@
</head>
<body class="pro_box">
<div class="aside">
<a href="{:url('Product/commp',array('id'=>38))}">
<!-- <a href="{:url('Product/commp',array('id'=>38))}">
<div class="aside_1">
<img src="__TMPL__/public/assets/images/aicon13.png" alt="">
<p>说明书</p>
... ... @@ -33,7 +33,34 @@
<img src="__TMPL__/public/assets/images/aicon15.png" alt="">
<p>COA</p>
</div>
</a>
</a> -->
<volist name="cos_data" id="vo">
<a href="{:url('Product/commp',array('id'=>$vo.id))}">
<div class="aside_1">
<if condition="$vo.fenlei eq 1">
<img src="__TMPL__/public/assets/images/aicon13.png" alt="">
</if>
<if condition="$vo.fenlei eq 2">
<img src="__TMPL__/public/assets/images/aicon14.png" alt="">
</if>
<if condition="$vo.fenlei eq 3">
<img src="__TMPL__/public/assets/images/aicon15.png" alt="">
</if>
<if condition="$vo.fenlei eq 1">
<p>说明书</p>
</if>
<if condition="$vo.fenlei eq 2">
<p>文献</p>
</if>
<if condition="$vo.fenlei eq 3">
<p>COA</p>
</if>
</div>
</a>
</volist>
</div>
<include file="public@nav"/>
<div class="product_main">
... ...