...
|
...
|
@@ -268,7 +268,7 @@ |
|
|
<div class="kindwrapper" style="display:none">
|
|
|
<ul class="kindlist">
|
|
|
<li>
|
|
|
<p data-id="" onclick="floor(this)" >全部</p>
|
|
|
<p data-id="" onclick="category(this)" >全部</p>
|
|
|
</li>
|
|
|
<foreach name="category" item="vo">
|
|
|
<li>
|
...
|
...
|
@@ -499,19 +499,24 @@ $(".search_img").click(function(){ |
|
|
}
|
|
|
})
|
|
|
});
|
|
|
var order=1
|
|
|
var category=""
|
|
|
var floor=""
|
|
|
//默认排序
|
|
|
$("#order").click(function(){
|
|
|
var status=$("#order").html()
|
|
|
if (status=='默认排序'){
|
|
|
var order=1;
|
|
|
order=1;
|
|
|
}
|
|
|
else if (status=='热度排序'){
|
|
|
var order="";
|
|
|
order="";
|
|
|
}
|
|
|
$.ajax({
|
|
|
url: "{:url('portal/brand/brandAjax')}",
|
|
|
type: "post",
|
|
|
data: {
|
|
|
category:category,
|
|
|
floor:floor,
|
|
|
order:order,
|
|
|
},
|
|
|
success: function (data) {
|
...
|
...
|
@@ -541,13 +546,15 @@ $("#order").click(function(){ |
|
|
})
|
|
|
});
|
|
|
function category(obj) {
|
|
|
var id=$(obj).data("id");
|
|
|
category=$(obj).data("id");
|
|
|
var content=$(obj).html();
|
|
|
$.ajax({
|
|
|
url: "{:url('portal/brand/brandAjax')}",
|
|
|
type: "post",
|
|
|
data: {
|
|
|
category:id,
|
|
|
category:category,
|
|
|
floor:floor,
|
|
|
order:order,
|
|
|
},
|
|
|
success: function (data) {
|
|
|
var html=""
|
...
|
...
|
@@ -580,13 +587,15 @@ function category(obj) { |
|
|
})
|
|
|
}
|
|
|
function floor(obj) {
|
|
|
var id=$(obj).data("id");
|
|
|
floor=$(obj).data("id");
|
|
|
var content=$(obj).html();
|
|
|
$.ajax({
|
|
|
url: "{:url('portal/brand/brandAjax')}",
|
|
|
type: "post",
|
|
|
data: {
|
|
|
floor:id,
|
|
|
category:category,
|
|
|
floor:floor,
|
|
|
order:order,
|
|
|
},
|
|
|
success: function (data) {
|
|
|
var html=""
|
...
|
...
|
|