Authored by lijing

详情页底部新增店铺入口埋点

// 详情页底部店铺点击埋点
$('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);
}
});
$('#enter-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: 101
})
}, true);
}
});
... ...
... ... @@ -137,6 +137,9 @@ setTimeout(() => {
// 引入like事件
require('./detail/like');
// 引入店铺埋点
require('./detail/store');
// 设定购物bar
let $cartBar = $('.cart-bar');
let timer = setInterval(function() {
... ...