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

产品

... ... @@ -46,7 +46,7 @@ class ProductController extends HomeBaseController{
$cpid = Db::name('portal_category_post') -> where('category_id',12) -> find();
$cpdata = Db::name('portal_post') -> where('id',$cpid['post_id']) -> find();
$cpdata['post_content'] = cmf_replace_content_file_url(htmlspecialchars_decode($cpdata['post_content']));
$this -> assign('category',$cpdata['id']);
$this -> assign('zuixin',$cpdata);
/* $shuju2 = $this -> wuxianx($data);
... ...
... ... @@ -106,14 +106,7 @@
})
$(function(){
$('.ce'+{$category}).children('h2').css({color:"red"});
//$('.ce1'+{$category}).children('img').attr('src',"__TMPL__/public/assets/images/aicon10.png");
$('.ce1'+{$category}).parent().parent().prev().next('.ce1_2').slideDown();
$('.ce1'+{$category}).parent().parent().prev().children('img').attr('src',"__TMPL__/public/assets/images/aicon10.png");
$('.ce1'+{$category}).children('h3').css({color:"red"});
})
//点击产品中心
function chanpin(){
... ... @@ -135,7 +128,7 @@
$('.ce1_title').children('h2').css({color:""});
$('.ce1_2_Li_title').children('h3').css({color:""});
$('.ce1'+id).children('h2').css({color:"red"});
$('.ce'+id).children('h2').css({color:"red"});
$.post("{:url('Product/erji')}",{id:id},function(data){
shuju = JSON.parse(data);
$('.biaoti').text(shuju.post_title);
... ...