Authored by 李奇

品牌页商品跳转详情添加参数

@@ -43,7 +43,8 @@ const handleBrandList = origin => { @@ -43,7 +43,8 @@ const handleBrandList = origin => {
43 shopId: subValue.shop_id, 43 shopId: subValue.shop_id,
44 shopName: subValue.brand_name_en || subValue.brand_name_cn || subValue.brand_name, 44 shopName: subValue.brand_name_en || subValue.brand_name_cn || subValue.brand_name,
45 isRedShop: subValue.is_red_shop, 45 isRedShop: subValue.is_red_shop,
46 - shopTemplateType: subValue.shop_template_type 46 + shopTemplateType: subValue.shop_template_type,
  47 + brandId: subValue.id
47 }); 48 });
48 }); 49 });
49 50
@@ -82,7 +83,8 @@ const handleBrandList = origin => { @@ -82,7 +83,8 @@ const handleBrandList = origin => {
82 shopId: subValue.shop_id, 83 shopId: subValue.shop_id,
83 shopName: subValue.brand_name_en || subValue.brand_name_cn || subValue.brand_name, 84 shopName: subValue.brand_name_en || subValue.brand_name_cn || subValue.brand_name,
84 isRedShop: subValue.is_red_shop, 85 isRedShop: subValue.is_red_shop,
85 - shopTemplateType: subValue.shop_template_type 86 + shopTemplateType: subValue.shop_template_type,
  87 + brandId: subValue.id
86 }); 88 });
87 }); 89 });
88 dest.brandList.push({ 90 dest.brandList.push({
@@ -66,10 +66,10 @@ function BrandHrefBinding(el, binding) { @@ -66,10 +66,10 @@ function BrandHrefBinding(el, binding) {
66 } 66 }
67 67
68 if (!yoho.isYohoBuy) { 68 if (!yoho.isYohoBuy) {
69 - el.href = href; 69 + el.href = href + `?brandId=${binding.value.brandId}`;
70 } 70 }
71 } else { 71 } else {
72 - el.href = `/product/shop/${binding.value}`; 72 + el.href = `/product/shop/${binding.value}?brandId=${binding.value.brandId}`;
73 } 73 }
74 } 74 }
75 function GoodHrefBinding(el, binding) { 75 function GoodHrefBinding(el, binding) {
@@ -16,9 +16,6 @@ @@ -16,9 +16,6 @@
16 <style> 16 <style>
17 .brand-list-box { 17 .brand-list-box {
18 width: 100%; 18 width: 100%;
19 -  
20 - /* padding: 20px 0; */  
21 -  
22 background: #f6f6f6; 19 background: #f6f6f6;
23 20
24 /* border-top: 1px solid #eee; */ 21 /* border-top: 1px solid #eee; */
@@ -55,7 +55,7 @@ @@ -55,7 +55,7 @@
55 fixIosTop: false, 55 fixIosTop: false,
56 56
57 // for yas report 57 // for yas report
58 - pageName: 'h5FP_category', 58 + pageName: 'FP_category_h5',
59 pageParam: locationQuery.sort || '' 59 pageParam: locationQuery.sort || ''
60 60
61 }; 61 };
@@ -2,7 +2,8 @@ @@ -2,7 +2,8 @@
2 <div class="shop-box" :class="{'no-header': noheader}"> 2 <div class="shop-box" :class="{'no-header': noheader}">
3 <top-bar :share-data="shareData" :show-top-bar="showTopBar"></top-bar> 3 <top-bar :share-data="shareData" :show-top-bar="showTopBar"></top-bar>
4 <div :class='{"shop-goods-top": true}' class="list-items"> 4 <div :class='{"shop-goods-top": true}' class="list-items">
5 - <product-list :data="productList" :state="listState"></product-list> 5 + <product-list :report-page-name="pageName" :report-page-param="pageParam" :data="productList"
  6 + :state="listState"></product-list>
6 </div> 7 </div>
7 <filter-box :val="order" :filter="filterConfig" v-if="enableOrder" ref="filter"></filter-box> 8 <filter-box :val="order" :filter="filterConfig" v-if="enableOrder" ref="filter"></filter-box>
8 <shopping-bag :cart-count="cartCount" v-if="isApp"></shopping-bag> 9 <shopping-bag :cart-count="cartCount" v-if="isApp"></shopping-bag>
@@ -90,7 +91,11 @@ @@ -90,7 +91,11 @@
90 inSearching: false, 91 inSearching: false,
91 enableOrder: false, 92 enableOrder: false,
92 order: 's_t_desc', 93 order: 's_t_desc',
93 - cartCount: 0 94 + cartCount: 0,
  95 +
  96 + // for yas report
  97 + pageName: 'FP_brand_h5',
  98 + pageParam: locationQuery.brandId || ''
94 }; 99 };
95 }, 100 },
96 computed: { 101 computed: {