Merge branch 'feature/detailFooter' into 'release/5.6'
店铺入口埋点,三种情况(店铺id,品牌id,全球购id) See merge request !475
Showing
3 changed files
with
8 additions
and
6 deletions
@@ -35,7 +35,8 @@ const _processBrandShops = (list) => { | @@ -35,7 +35,8 @@ const _processBrandShops = (list) => { | ||
35 | shop_id: item.shop_id | 35 | shop_id: item.shop_id |
36 | }), | 36 | }), |
37 | thumb: helpers.image(item.shop_logo, 75, 40), | 37 | thumb: helpers.image(item.shop_logo, 75, 40), |
38 | - name: item.shop_name | 38 | + name: item.shop_name, |
39 | + shopId: item.shop_id | ||
39 | }); | 40 | }); |
40 | } else if (item.shop_type === 'tbl_brand') { | 41 | } else if (item.shop_type === 'tbl_brand') { |
41 | formatDat.push({ | 42 | formatDat.push({ |
@@ -43,7 +44,8 @@ const _processBrandShops = (list) => { | @@ -43,7 +44,8 @@ const _processBrandShops = (list) => { | ||
43 | brand: item.global_brand_id | 44 | brand: item.global_brand_id |
44 | }), | 45 | }), |
45 | thumb: helpers.image(item.brand_ico, 75, 40), | 46 | thumb: helpers.image(item.brand_ico, 75, 40), |
46 | - name: item.brand_name | 47 | + name: item.brand_name, |
48 | + brandId: item.global_brand_id | ||
47 | }); | 49 | }); |
48 | } | 50 | } |
49 | }); | 51 | }); |
@@ -13,10 +13,10 @@ | @@ -13,10 +13,10 @@ | ||
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" data-shopid="{{brandWay/shopId}}" data-brandid="{{brandWay/brandId}}"> | 16 | + <div class="brand-way"> |
17 | <div class="brand-enter"> | 17 | <div class="brand-enter"> |
18 | {{# brandWay}} | 18 | {{# brandWay}} |
19 | - <a href={{url}}> | 19 | + <a href={{url}} data-shopid="{{shopId}}" data-brandid="{{brandId}}"> |
20 | <img class="brand-thumb" src={{image2 thumb q=60}}> | 20 | <img class="brand-thumb" src={{image2 thumb q=60}}> |
21 | <span class="brand-name">{{name}}</span> | 21 | <span class="brand-name">{{name}}</span> |
22 | <span class="entry"> | 22 | <span class="entry"> |
@@ -839,8 +839,8 @@ $('.brand-way a').on('click', function() { | @@ -839,8 +839,8 @@ $('.brand-way a').on('click', function() { | ||
839 | window._yas.sendCustomInfo({ | 839 | window._yas.sendCustomInfo({ |
840 | op: 'YB_BRAND_SHOP_C', | 840 | op: 'YB_BRAND_SHOP_C', |
841 | param: JSON.stringify({ | 841 | param: JSON.stringify({ |
842 | - BRAND_ID: $('.brand-way').data('brandid'), | ||
843 | - SHOP_ID: $('.brand-way').data('shopid'), | 842 | + BRAND_ID: $('.brand-enter a').data('brandid'), |
843 | + SHOP_ID: $('.brand-enter a').data('shopid'), | ||
844 | POS_ID: 101 | 844 | POS_ID: 101 |
845 | }) | 845 | }) |
846 | }, true); | 846 | }, true); |
-
Please register or login to post a comment