...
|
...
|
@@ -12,14 +12,15 @@ |
|
|
<WidgetFollow :share="share" class="widget-follow" :author-uid="currentAuthor.authorUid" :follow="currentAuthor.hasAttention === 'Y'" @on-follow="follow => onFollow(currentAuthor, follow)" :pos-id="posId"></WidgetFollow>
|
|
|
</template>
|
|
|
</LayoutHeader>
|
|
|
<LayoutRecycleList :size="10" :thumbs="thumbs" ref="scroll" @scroll="onScroll" :offset="2000" :on-fetch="onFetch">
|
|
|
<LayoutRecycleList :size="10" :thumbs="thumbs" ref="scroll" @scroll="onScroll" :offset="2000" :on-fetch="onFetch"
|
|
|
@on-inited="onInited">
|
|
|
<template class="article-item" #item="{ data }">
|
|
|
<ArticleItem
|
|
|
:type="type"
|
|
|
:index="data.index"
|
|
|
:data="data.data"
|
|
|
:share="share"
|
|
|
:article-id="data.articleId"
|
|
|
:article-id="data.data.articleId"
|
|
|
:pos-id="posId"
|
|
|
@on-follow="follow => onFollow(data.data, follow)"
|
|
|
@on-resize="onResize"
|
...
|
...
|
@@ -195,6 +196,11 @@ export default { |
|
|
this.$refs.scroll.$el.scrollTop = 0;
|
|
|
this.$refs.scroll.init();
|
|
|
},
|
|
|
onInited(item) {
|
|
|
if (item) {
|
|
|
this.reportShow(0, item);
|
|
|
}
|
|
|
},
|
|
|
onFollow(data, follow) {
|
|
|
if (data.authorUid === this.currentAuthor.authorUid) {
|
|
|
this.currentAuthor.hasAttention = follow ? 'Y' : 'N';
|
...
|
...
|
@@ -225,6 +231,7 @@ export default { |
|
|
},
|
|
|
startReportShow() {
|
|
|
let preview = null;
|
|
|
let name = this.$yoho.isiOS ? 'iFP_ArticleList' : 'aFP_ArticleList';
|
|
|
|
|
|
return (index, item) => {
|
|
|
if (preview === item.data.articleId) {
|
...
|
...
|
@@ -237,12 +244,21 @@ export default { |
|
|
params: {
|
|
|
appop: YAS.eventName.show,
|
|
|
param: {
|
|
|
P_NAME: this.$route.name,
|
|
|
P_PARAM: this.$route.params,
|
|
|
I_INDEX: index,
|
|
|
ARTICLE_ID: preview,
|
|
|
PRD_SKN: (item.data.productList || []).map(i => i.productSkn).join(','),
|
|
|
POS_ID: this.posId
|
|
|
DATA: [{
|
|
|
P_NAME: name,
|
|
|
P_PARAM: this.$route.params.id,
|
|
|
I_INDEX: index,
|
|
|
ARTICLE_ID: preview,
|
|
|
POS_ID: this.posId
|
|
|
}, ...(item.data.productList || []).map(p => {
|
|
|
return {
|
|
|
P_NAME: name,
|
|
|
P_PARAM: this.$route.params.id,
|
|
|
I_INDEX: index,
|
|
|
PRD_SKN: p.productSkn,
|
|
|
POS_ID: this.posId
|
|
|
};
|
|
|
})],
|
|
|
}
|
|
|
}
|
|
|
});
|
...
|
...
|
|