Authored by 周少峰

Merge branch 'release/4.5' of http://git.yoho.cn/fe/yohobuywap into release/4.5

... ... @@ -234,7 +234,7 @@ function reMarginFooter(fixedElement) {
jsonData = {
page: bpIdArr[0],
floor: bpIdArr[1],
data: bpIdArr.slice(2).join('_') //防止值字符串中有_导致的问题
data: /_[1|0]$/.test(bpIdArr.join('_')) ? bpIdArr[2] : bpIdArr.slice(2).join('_') //防止值字符串中有_导致的问题
};
if (window._yas.sendCustomInfo) {
window._yas.sendCustomInfo(jsonData, Boolean(parseInt(bpIdArr[3]) || 1));
... ... @@ -244,7 +244,8 @@ function reMarginFooter(fixedElement) {
// 绑定埋点点击事件
bindBpEvent = function() {
$('.buriedpoint').off('click').on('click', function(e) {
$('.buriedpoint').off('click');
$(document).on('click', '.buriedpoint', function(e) {
var databpid = $(this).attr('data-bp-id') || '',
bpIdArr = databpid.split('_');
... ... @@ -6256,8 +6257,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');
});
... ...
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
... ... @@ -216,7 +216,7 @@ function reMarginFooter(fixedElement) {
jsonData = {
page: bpIdArr[0],
floor: bpIdArr[1],
data: bpIdArr.slice(2).join('_') //防止值字符串中有_导致的问题
data: /_[1|0]$/.test(bpIdArr.join('_')) ? bpIdArr[2] : bpIdArr.slice(2).join('_') //防止值字符串中有_导致的问题
};
if (window._yas.sendCustomInfo) {
window._yas.sendCustomInfo(jsonData, Boolean(parseInt(bpIdArr[3]) || 1));
... ... @@ -226,7 +226,8 @@ function reMarginFooter(fixedElement) {
// 绑定埋点点击事件
bindBpEvent = function() {
$('.buriedpoint').off('click').on('click', function(e) {
$('.buriedpoint').off('click');
$(document).on('click', '.buriedpoint', function(e) {
var databpid = $(this).attr('data-bp-id') || '',
bpIdArr = databpid.split('_');
... ...
... ... @@ -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');
});
... ...
... ... @@ -3,14 +3,14 @@
<div class="filter-body">
<ul class="classify">
{{#each classify}}
<li class="buriedpoint classify-item{{#if @first}} active{{/if}}" data-bp-id="filter_classify_{{name}}_1">
<p class="shower{{#if default}} default{{/if}}">
<li class="classify-item{{#if @first}} active{{/if}}">
<p class="buriedpoint shower{{#if default}} default{{/if}}" data-bp-id="filter_classify_{{title}}_1">
<span class="title">{{title}}:</span>
{{name}}
</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>
... ...