Authored by 徐祁xuqi

sub classify data

... ... @@ -29,8 +29,12 @@ function highlightMainItem() {
var $mainItem = $('.filter-body .classify');
$mainItem.on('touchstart', '.shower', function() {
var bpIdData = $(this).attr('data-bp-id') || '';
$mainItem.removeClass('highlight');
$(this).addClass('highlight');
$(document).trigger('shouldSendBpData', [bpIdData]);
}).on('touchend touchcancel', '.shower', function() {
$(this).removeClass('highlight');
});
... ...
... ... @@ -10,7 +10,7 @@
</p>
<ul class="sub-classify" data-type={{dataType}}>
{{# subs}}
<li class="buriedpoint sub-item{{#if chosed}} chosed{{/if}}" data-id={{dataId}} data-bp-id="filter_subclassify_{{name}}_1">
<li class="buriedpoint sub-item{{#if chosed}} chosed{{/if}}" data-id="{{dataId}}" data-bp-id="filter_subclassify_{{name}}_1">
{{name}}
<i class="iconfont chosed-icon">&#xe617;</i>
</li>
... ...