...
|
...
|
@@ -31,10 +31,10 @@ |
|
|
<div class="product_mainBox">
|
|
|
|
|
|
<div class="pro_left">
|
|
|
<h1 class="proTitle">产品中心</h1>
|
|
|
<h1 class="proTitle" onclick="chanpin()">产品中心</h1>
|
|
|
<volist name="shuju" id="vol">
|
|
|
<div class="ce1">
|
|
|
<div class="ce1_title">
|
|
|
<div class="ce1_title ce{$vol.id}" onclick="erji({$vol.id})">
|
|
|
<img src="__TMPL__/public/assets/images/aicon09.png" alt="">
|
|
|
<h2>{$vol.name}</h2>
|
|
|
</div>
|
...
|
...
|
@@ -105,6 +105,47 @@ |
|
|
$('.pro_right_txt').removeClass('pro_height');
|
|
|
})
|
|
|
|
|
|
|
|
|
$(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(){
|
|
|
|
|
|
$('.ce1_title').children('h2').css({color:""});
|
|
|
$('.ce1_2_Li_title').children('h3').css({color:""});
|
|
|
|
|
|
$.post("{:url('Product/chanpins')}", function(data) {
|
|
|
shuju = JSON.parse(data);
|
|
|
$('.biaoti').text(shuju.post_title);
|
|
|
$('.zhaiyao').text(shuju.post_excerpt);
|
|
|
$('.pro_right_txt').html(shuju.post_content);
|
|
|
});
|
|
|
|
|
|
}
|
|
|
|
|
|
//点击二级分类
|
|
|
function erji(id){
|
|
|
|
|
|
$('.ce1_title').children('h2').css({color:""});
|
|
|
$('.ce1_2_Li_title').children('h3').css({color:""});
|
|
|
$('.ce1'+id).children('h2').css({color:"red"});
|
|
|
$.post("{:url('Product/erji')}",{id:id},function(data){
|
|
|
shuju = JSON.parse(data);
|
|
|
$('.biaoti').text(shuju.post_title);
|
|
|
$('.zhaiyao').text(shuju.post_excerpt);
|
|
|
$('.pro_right_txt').html(shuju.post_content);
|
|
|
});
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
//点击查询单个文章
|
|
|
function neiro(id){
|
|
|
$('.ce1_2_Li_title').children('h3').css({color:''});
|
...
|
...
|
|