...
|
...
|
@@ -47,7 +47,7 @@ |
|
|
<li class="sales" onclick="classify_sales()">销量
|
|
|
<img src="__TMPL__/public/assets/images/s1.png" alt="">
|
|
|
</li>
|
|
|
<li class="price">价格
|
|
|
<li class="price" onclick="classify_price()">价格
|
|
|
<img src="__TMPL__/public/assets/images/s1.png" alt="">
|
|
|
</li>
|
|
|
</ul>
|
...
|
...
|
@@ -132,7 +132,7 @@ |
|
|
}
|
|
|
|
|
|
/**
|
|
|
*销量
|
|
|
*销量排序
|
|
|
*/
|
|
|
function classify_sales(){
|
|
|
classify_id = $('.cl_navActive').attr('data-id');
|
...
|
...
|
@@ -146,6 +146,22 @@ |
|
|
}
|
|
|
});
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
*价格排序
|
|
|
*/
|
|
|
function classify_price(){
|
|
|
classify_id = $('.cl_navActive').attr('data-id');
|
|
|
lable_id = $('.cl_Active2').attr('data-id');
|
|
|
$.post("{:url('Classify/classify_price')}",{classify_id:classify_id,lable_id:lable_id},function(data){
|
|
|
$('.in_hotLi').remove();
|
|
|
data_arr = JSON.parse(data);
|
|
|
for(var i=0;i<data_arr.length;i++){
|
|
|
show_img = data_arr[i].show_img;
|
|
|
$('.se_con').append("<div class='in_hotLi'><div class='in_hotImg'><img src='"+show_img+"'></div><div class='in_hotText'><div class='in_hotName txt-cut'><span>"+data_arr[i].name+"</span>"+data_arr[i].book_name+"</div><div class='in_cam_shopPrice'><div class='in_hotPrice1'>¥<span>"+data_arr[i].price0+"</span>."+data_arr[i].price01+"</div></div></div></div>");
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
</script>
|
|
|
<script>
|
|
|
$('.cl_nav ul li').click(function() {
|
...
|
...
|
|