正在显示
1 个修改的文件
包含
43 行增加
和
2 行删除
@@ -31,10 +31,10 @@ | @@ -31,10 +31,10 @@ | ||
31 | <div class="product_mainBox"> | 31 | <div class="product_mainBox"> |
32 | 32 | ||
33 | <div class="pro_left"> | 33 | <div class="pro_left"> |
34 | - <h1 class="proTitle">产品中心</h1> | 34 | + <h1 class="proTitle" onclick="chanpin()">产品中心</h1> |
35 | <volist name="shuju" id="vol"> | 35 | <volist name="shuju" id="vol"> |
36 | <div class="ce1"> | 36 | <div class="ce1"> |
37 | - <div class="ce1_title"> | 37 | + <div class="ce1_title ce{$vol.id}" onclick="erji({$vol.id})"> |
38 | <img src="__TMPL__/public/assets/images/aicon09.png" alt=""> | 38 | <img src="__TMPL__/public/assets/images/aicon09.png" alt=""> |
39 | <h2>{$vol.name}</h2> | 39 | <h2>{$vol.name}</h2> |
40 | </div> | 40 | </div> |
@@ -105,6 +105,47 @@ | @@ -105,6 +105,47 @@ | ||
105 | $('.pro_right_txt').removeClass('pro_height'); | 105 | $('.pro_right_txt').removeClass('pro_height'); |
106 | }) | 106 | }) |
107 | 107 | ||
108 | + | ||
109 | + $(function(){ | ||
110 | + | ||
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 | + | ||
118 | + //点击产品中心 | ||
119 | + function chanpin(){ | ||
120 | + | ||
121 | + $('.ce1_title').children('h2').css({color:""}); | ||
122 | + $('.ce1_2_Li_title').children('h3').css({color:""}); | ||
123 | + | ||
124 | + $.post("{:url('Product/chanpins')}", function(data) { | ||
125 | + shuju = JSON.parse(data); | ||
126 | + $('.biaoti').text(shuju.post_title); | ||
127 | + $('.zhaiyao').text(shuju.post_excerpt); | ||
128 | + $('.pro_right_txt').html(shuju.post_content); | ||
129 | + }); | ||
130 | + | ||
131 | + } | ||
132 | + | ||
133 | + //点击二级分类 | ||
134 | + function erji(id){ | ||
135 | + | ||
136 | + $('.ce1_title').children('h2').css({color:""}); | ||
137 | + $('.ce1_2_Li_title').children('h3').css({color:""}); | ||
138 | + $('.ce1'+id).children('h2').css({color:"red"}); | ||
139 | + $.post("{:url('Product/erji')}",{id:id},function(data){ | ||
140 | + shuju = JSON.parse(data); | ||
141 | + $('.biaoti').text(shuju.post_title); | ||
142 | + $('.zhaiyao').text(shuju.post_excerpt); | ||
143 | + $('.pro_right_txt').html(shuju.post_content); | ||
144 | + }); | ||
145 | + | ||
146 | + } | ||
147 | + | ||
148 | + | ||
108 | //点击查询单个文章 | 149 | //点击查询单个文章 |
109 | function neiro(id){ | 150 | function neiro(id){ |
110 | $('.ce1_2_Li_title').children('h3').css({color:''}); | 151 | $('.ce1_2_Li_title').children('h3').css({color:''}); |
-
请 注册 或 登录 后发表评论