Authored by 李靖

Merge branch 'feature/detailFooter' into 'release/5.6'

详情页店铺埋点



See merge request !470
... ... @@ -13,7 +13,7 @@
<ul class="search-associate"></ul>
{{/ search}}
{{#if brandWay}}
<div class="brand-way">
<div class="brand-way" data-shopid="{{brandWay/shopId}}" data-brandid="{{brandWay/brandId}}">
<div class="brand-enter">
{{# brandWay}}
<a href={{url}}>
... ...
// 详情页底部店铺点击埋点
$('a.store').on('click', function() {
if (window._yas && window._yas.sendCustomInfo) {
window._yas.sendCustomInfo({
op: 'YB_BRAND_SHOP_C',
param: JSON.stringify({
BRAND_ID: $('#brand-id').val(),
SHOP_ID: $('#shopId').val(),
POS_ID: 102
})
}, true);
}
});
... ...
... ... @@ -137,6 +137,9 @@ setTimeout(() => {
// 引入like事件
require('./detail/like');
// 引入店铺埋点
require('./detail/store');
// 设定购物bar
let $cartBar = $('.cart-bar');
let timer = setInterval(function() {
... ...
... ... @@ -833,6 +833,20 @@ $('#goods-container').on('click', '.good-info', function() {
// return false;
});
// 进入店铺埋点
$('.brand-way a').on('click', function() {
if (window._yas && window._yas.sendCustomInfo) {
window._yas.sendCustomInfo({
op: 'YB_BRAND_SHOP_C',
param: JSON.stringify({
BRAND_ID: $('.brand-way').data('brandid'),
SHOP_ID: $('.brand-way').data('shopid'),
POS_ID: 101
})
}, true);
}
});
$('.more-shop').on('click', function() {
if ($(this).hasClass('down')) {
$('.brand-enter').css('max-height', '100%');
... ...