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

产品

@@ -46,7 +46,7 @@ class ProductController extends HomeBaseController{ @@ -46,7 +46,7 @@ class ProductController extends HomeBaseController{
46 $cpid = Db::name('portal_category_post') -> where('category_id',12) -> find(); 46 $cpid = Db::name('portal_category_post') -> where('category_id',12) -> find();
47 $cpdata = Db::name('portal_post') -> where('id',$cpid['post_id']) -> find(); 47 $cpdata = Db::name('portal_post') -> where('id',$cpid['post_id']) -> find();
48 $cpdata['post_content'] = cmf_replace_content_file_url(htmlspecialchars_decode($cpdata['post_content'])); 48 $cpdata['post_content'] = cmf_replace_content_file_url(htmlspecialchars_decode($cpdata['post_content']));
49 - $this -> assign('category',$cpdata['id']); 49 +
50 $this -> assign('zuixin',$cpdata); 50 $this -> assign('zuixin',$cpdata);
51 51
52 /* $shuju2 = $this -> wuxianx($data); 52 /* $shuju2 = $this -> wuxianx($data);
@@ -106,14 +106,7 @@ @@ -106,14 +106,7 @@
106 }) 106 })
107 107
108 108
109 - $(function(){  
110 109
111 - $('.ce'+{$category}).children('h2').css({color:"red"});  
112 - //$('.ce1'+{$category}).children('img').attr('src',"__TMPL__/public/assets/images/aicon10.png");  
113 - $('.ce1'+{$category}).parent().parent().prev().next('.ce1_2').slideDown();  
114 - $('.ce1'+{$category}).parent().parent().prev().children('img').attr('src',"__TMPL__/public/assets/images/aicon10.png");  
115 - $('.ce1'+{$category}).children('h3').css({color:"red"});  
116 - })  
117 110
118 //点击产品中心 111 //点击产品中心
119 function chanpin(){ 112 function chanpin(){
@@ -135,7 +128,7 @@ @@ -135,7 +128,7 @@
135 128
136 $('.ce1_title').children('h2').css({color:""}); 129 $('.ce1_title').children('h2').css({color:""});
137 $('.ce1_2_Li_title').children('h3').css({color:""}); 130 $('.ce1_2_Li_title').children('h3').css({color:""});
138 - $('.ce1'+id).children('h2').css({color:"red"}); 131 + $('.ce'+id).children('h2').css({color:"red"});
139 $.post("{:url('Product/erji')}",{id:id},function(data){ 132 $.post("{:url('Product/erji')}",{id:id},function(data){
140 shuju = JSON.parse(data); 133 shuju = JSON.parse(data);
141 $('.biaoti').text(shuju.post_title); 134 $('.biaoti').text(shuju.post_title);