...
|
...
|
@@ -10,6 +10,12 @@ var query = { |
|
|
middleSortId: 0,
|
|
|
smallSortId: 0
|
|
|
};
|
|
|
var brandList = {
|
|
|
list1: [],
|
|
|
list2: [],
|
|
|
list3: [],
|
|
|
list4: []
|
|
|
};
|
|
|
|
|
|
function brandItemEventBind() {
|
|
|
$('#brand_container .item').off().on('click', function() {
|
...
|
...
|
@@ -32,6 +38,7 @@ function getBrandList(_index, yhChannel) { |
|
|
return { name: item, content: data.data.all_list[item] };
|
|
|
});
|
|
|
list['focus' + _index] = true;
|
|
|
brandList['list' + _index] = list;
|
|
|
$('#brand_container').html(brandTmp({ list }));
|
|
|
brandItemEventBind();
|
|
|
});
|
...
|
...
|
@@ -106,10 +113,17 @@ $mask.click(function() { |
|
|
|
|
|
$(document).on('click', '#brand_container .nav span', function() {
|
|
|
var yhChannel = $(this).attr('yh_channel');
|
|
|
var index = $(this).attr('_index');
|
|
|
|
|
|
$('#brand_container .nav span').removeClass('focus');
|
|
|
$(this).addClass('focus');
|
|
|
getBrandList($(this).attr('_index'), yhChannel);
|
|
|
|
|
|
if(brandList['list' + index].length > 0) {
|
|
|
$('#brand_container').html(brandTmp({list: brandList['list' + index]}));
|
|
|
brandItemEventBind();
|
|
|
} else {
|
|
|
getBrandList(index, yhChannel);
|
|
|
}
|
|
|
});
|
|
|
|
|
|
$('.start-time').on('change', function() {
|
...
|
...
|
|