Authored by 徐祁xuqi

sub classify data

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