Authored by 李奇

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

... ... @@ -43,7 +43,8 @@ const handleBrandList = origin => {
shopId: subValue.shop_id,
shopName: subValue.brand_name_en || subValue.brand_name_cn || subValue.brand_name,
isRedShop: subValue.is_red_shop,
shopTemplateType: subValue.shop_template_type
shopTemplateType: subValue.shop_template_type,
brandId: subValue.id
});
});
... ... @@ -82,7 +83,8 @@ const handleBrandList = origin => {
shopId: subValue.shop_id,
shopName: subValue.brand_name_en || subValue.brand_name_cn || subValue.brand_name,
isRedShop: subValue.is_red_shop,
shopTemplateType: subValue.shop_template_type
shopTemplateType: subValue.shop_template_type,
brandId: subValue.id
});
});
dest.brandList.push({
... ...
... ... @@ -66,10 +66,10 @@ function BrandHrefBinding(el, binding) {
}
if (!yoho.isYohoBuy) {
el.href = href;
el.href = href + `?brandId=${binding.value.brandId}`;
}
} else {
el.href = `/product/shop/${binding.value}`;
el.href = `/product/shop/${binding.value}?brandId=${binding.value.brandId}`;
}
}
function GoodHrefBinding(el, binding) {
... ...
... ... @@ -16,9 +16,6 @@
<style>
.brand-list-box {
width: 100%;
/* padding: 20px 0; */
background: #f6f6f6;
/* border-top: 1px solid #eee; */
... ...
... ... @@ -55,7 +55,7 @@
fixIosTop: false,
// for yas report
pageName: 'h5FP_category',
pageName: 'FP_category_h5',
pageParam: locationQuery.sort || ''
};
... ...
... ... @@ -2,7 +2,8 @@
<div class="shop-box" :class="{'no-header': noheader}">
<top-bar :share-data="shareData" :show-top-bar="showTopBar"></top-bar>
<div :class='{"shop-goods-top": true}' class="list-items">
<product-list :data="productList" :state="listState"></product-list>
<product-list :report-page-name="pageName" :report-page-param="pageParam" :data="productList"
:state="listState"></product-list>
</div>
<filter-box :val="order" :filter="filterConfig" v-if="enableOrder" ref="filter"></filter-box>
<shopping-bag :cart-count="cartCount" v-if="isApp"></shopping-bag>
... ... @@ -90,7 +91,11 @@
inSearching: false,
enableOrder: false,
order: 's_t_desc',
cartCount: 0
cartCount: 0,
// for yas report
pageName: 'FP_brand_h5',
pageParam: locationQuery.brandId || ''
};
},
computed: {
... ...