|
|
|
|
|
|
|
|
return count ; |
|
|
return count ; |
|
|
}, |
|
|
}, |
|
|
setCategoryCurrent: function(category, first) { |
|
|
setCategoryCurrent: function(category, first) { |
|
|
var idScroll = 'products'; |
|
|
|
|
|
|
|
|
var idScroll = false; |
|
|
if(this.categoryCurrent && this.categoryCurrent.id == category.id && !first) { |
|
|
if(this.categoryCurrent && this.categoryCurrent.id == category.id && !first) { |
|
|
this.categoryCurrent = null ; |
|
|
this.categoryCurrent = null ; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
setTimeout(function() { |
|
|
setTimeout(function() { |
|
|
opendistrib_products(); |
|
|
opendistrib_products(); |
|
|
}, 500); |
|
|
}, 500); |
|
|
setTimeout(opendistrib_scroll, 250, idScroll); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(idScroll) { |
|
|
|
|
|
setTimeout(opendistrib_scroll, 250, idScroll); |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
computed : { |
|
|
computed : { |