Showing
5 changed files
with
14 additions
and
10 deletions
@@ -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) { |
@@ -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: { |
-
Please register or login to post a comment