Authored by 李靖

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

详情页店铺埋点



See merge request !470
@@ -13,7 +13,7 @@ @@ -13,7 +13,7 @@
13 <ul class="search-associate"></ul> 13 <ul class="search-associate"></ul>
14 {{/ search}} 14 {{/ search}}
15 {{#if brandWay}} 15 {{#if brandWay}}
16 - <div class="brand-way"> 16 + <div class="brand-way" data-shopid="{{brandWay/shopId}}" data-brandid="{{brandWay/brandId}}">
17 <div class="brand-enter"> 17 <div class="brand-enter">
18 {{# brandWay}} 18 {{# brandWay}}
19 <a href={{url}}> 19 <a href={{url}}>
  1 +// 详情页底部店铺点击埋点
  2 +$('a.store').on('click', function() {
  3 + if (window._yas && window._yas.sendCustomInfo) {
  4 + window._yas.sendCustomInfo({
  5 + op: 'YB_BRAND_SHOP_C',
  6 + param: JSON.stringify({
  7 + BRAND_ID: $('#brand-id').val(),
  8 + SHOP_ID: $('#shopId').val(),
  9 + POS_ID: 102
  10 + })
  11 + }, true);
  12 + }
  13 +});
@@ -137,6 +137,9 @@ setTimeout(() => { @@ -137,6 +137,9 @@ setTimeout(() => {
137 // 引入like事件 137 // 引入like事件
138 require('./detail/like'); 138 require('./detail/like');
139 139
  140 + // 引入店铺埋点
  141 + require('./detail/store');
  142 +
140 // 设定购物bar 143 // 设定购物bar
141 let $cartBar = $('.cart-bar'); 144 let $cartBar = $('.cart-bar');
142 let timer = setInterval(function() { 145 let timer = setInterval(function() {
@@ -833,6 +833,20 @@ $('#goods-container').on('click', '.good-info', function() { @@ -833,6 +833,20 @@ $('#goods-container').on('click', '.good-info', function() {
833 // return false; 833 // return false;
834 }); 834 });
835 835
  836 +// 进入店铺埋点
  837 +$('.brand-way a').on('click', function() {
  838 + if (window._yas && window._yas.sendCustomInfo) {
  839 + window._yas.sendCustomInfo({
  840 + op: 'YB_BRAND_SHOP_C',
  841 + param: JSON.stringify({
  842 + BRAND_ID: $('.brand-way').data('brandid'),
  843 + SHOP_ID: $('.brand-way').data('shopid'),
  844 + POS_ID: 101
  845 + })
  846 + }, true);
  847 + }
  848 +});
  849 +
836 $('.more-shop').on('click', function() { 850 $('.more-shop').on('click', function() {
837 if ($(this).hasClass('down')) { 851 if ($(this).hasClass('down')) {
838 $('.brand-enter').css('max-height', '100%'); 852 $('.brand-enter').css('max-height', '100%');