Authored by 邱骏

增加YAS上报

... ... @@ -497,6 +497,17 @@ export default {
} else {
this.$refs.detailNote.onProductList();
}
this.$store.dispatch('reportYas', {
params: {
appop: YAS.eventName.detailProductButtonClick,
param: {
DATA: {
ARTICLE_ID: this.articleInfo.articleId,
POS_ID: 100
}
}
}
});
},
initProductList() {
if (this.articleInfo.sort === 2) {
... ...
... ... @@ -47,7 +47,7 @@
<YohoActionSheet transfer v-if="showProductListAction" ref="productListAction" :full="true" :height="540">
<CommentHeader>{{'文中商品'}}</CommentHeader>
<ProductGroup class="product-list-wrapper" name="ArticleDetail" :article-id="data.articleId" :pos-id="0"
<ProductGroup class="product-list-wrapper" name="ArticleDetail" :article-id="data.articleId" :pos-id="106"
:index="0" :thumb="true" :inline="false" :model="3" :share="share" :data="productList"
:lazy="lazy"></ProductGroup>
</YohoActionSheet>
... ...
... ... @@ -12,7 +12,7 @@
:width="data.width" :height="data.height"></VideoPlayer>
<ArticleItemSlide v-else :thumb="thumb" :share="share" :data="slideData" :slide-index="slideIndex" :lazy="lazy"
@on-praise="onPraise" @change="onChangeSlide"></ArticleItemSlide>
<ProductGroup name="ArticleDetail" :article-id="data.articleId" :pos-id="0" :index="0" :thumb="thumb"
<ProductGroup name="ArticleDetail" :article-id="data.articleId" :pos-id="100" :index="0" :thumb="thumb"
v-if="productListData.length" :share="share" :data="productListData" :lazy="lazy"></ProductGroup>
<div class="context-title">{{data.articleTitle}}</div>
... ... @@ -56,7 +56,7 @@
<YohoActionSheet transfer v-if="showProductListAction" ref="productListAction" :full="true" :height="549">
<CommentHeader>{{'文中商品'}}</CommentHeader>
<ProductGroup class="product-list-wrapper" name="ArticleDetail" :article-id="data.articleId" :pos-id="0" :index="0" :thumb="thumb" :inline="false" :model="3"
<ProductGroup class="product-list-wrapper" name="ArticleDetail" :article-id="data.articleId" :pos-id="106" :index="0" :thumb="thumb" :inline="false" :model="3"
v-if="productListData.length" :share="share" :data="productListData" :lazy="lazy"></ProductGroup>
</YohoActionSheet>
</div>
... ...
... ... @@ -11,6 +11,7 @@ export default {
},
eventName: {
show: 'YB_SHOW_EVENT',
detailProductButtonClick: 'YB_STROLL_ATC_GDS_C', // 社区文章详情页底部'商品'按钮点击
fav: 'YB_STROLL_ATC_LIKE_C',
star: 'YB_STROLL_ATC_COL_C',
avatar: 'YB_STROLL_ACT_AUTH_C',
... ...