...
|
...
|
@@ -43,7 +43,7 @@ |
|
|
</template>
|
|
|
</RecycleScrollReveal>
|
|
|
|
|
|
<MoreActionSheet transfer ref="moreAction" @on-follow="onFollowAuthor" @on-delete="onDelete"></MoreActionSheet>
|
|
|
<MoreActionSheet transfer ref="moreAction" @on-follow="onFollowAuthor" @on-delete="onDelete" @on-edit="onEdit"></MoreActionSheet>
|
|
|
</Layout>
|
|
|
</template>
|
|
|
|
...
|
...
|
@@ -118,6 +118,12 @@ export default { |
|
|
this.fetching = true;
|
|
|
this.syncServiceArticleDetail();
|
|
|
},
|
|
|
pageVisibileEvent() {
|
|
|
if (this.articleOnEdit) {
|
|
|
this.articleOnEdit = false;
|
|
|
this.syncServiceArticleDetail();
|
|
|
}
|
|
|
},
|
|
|
loadPreData(articleId) {
|
|
|
if (!this.$isServer && this.$yoho.isLocal) {
|
|
|
this.fetchArticleList({
|
...
|
...
|
@@ -143,7 +149,7 @@ export default { |
|
|
return this.fetchArticleList({
|
|
|
articleId,
|
|
|
singleDetail: 'Y'
|
|
|
}).then(() => {
|
|
|
}).then((res) => {
|
|
|
if (this.$refs.scroll) {
|
|
|
this.listTitle = '';
|
|
|
|
...
|
...
|
@@ -153,10 +159,11 @@ export default { |
|
|
}, 500);
|
|
|
}
|
|
|
|
|
|
this.reportProductShow(get(res, 'data.detailList[0]'));
|
|
|
const article = get(res, 'data.detailList[0]', this.articleInfo);
|
|
|
|
|
|
this.reportProductShow(article);
|
|
|
if (this.share && this.setShareData) {
|
|
|
this.setShareData(get(res, 'data.detailList[0]', this.articleInfo));
|
|
|
this.setShareData(article);
|
|
|
}
|
|
|
});
|
|
|
},
|
...
|
...
|
@@ -216,6 +223,9 @@ export default { |
|
|
|
|
|
$detail.$refs.header && $detail.$refs.header.onBack();
|
|
|
},
|
|
|
onEdit() {
|
|
|
this.articleOnEdit = true;
|
|
|
},
|
|
|
reportProductShow(article) {
|
|
|
const productList = article.productList || [];
|
|
|
|
...
|
...
|
|