...
|
...
|
@@ -73,6 +73,7 @@ export default { |
|
|
articleId: 0,
|
|
|
articleIndex: -1,
|
|
|
showCommentAction: false,
|
|
|
showCommentActioning: false,
|
|
|
showArticleDetailAction: false,
|
|
|
inx: 0,
|
|
|
scrollTop: 0,
|
...
|
...
|
@@ -112,12 +113,21 @@ export default { |
|
|
this.articleIndex = index;
|
|
|
this.showCommentAction = true;
|
|
|
this.$nextTick(() => {
|
|
|
if (this.showCommentActioning) {
|
|
|
return;
|
|
|
}
|
|
|
this.showCommentActioning = true;
|
|
|
this.$refs.comment.init();
|
|
|
});
|
|
|
},
|
|
|
onPageReady() {
|
|
|
if (this.showCommentAction) {
|
|
|
onPageReady({success}) {
|
|
|
if (success && this.showCommentAction) {
|
|
|
this.$refs.commentAction.show();
|
|
|
setTimeout(() => {
|
|
|
this.showCommentActioning = false;
|
|
|
}, 300);
|
|
|
} else {
|
|
|
this.showCommentActioning = false;
|
|
|
}
|
|
|
},
|
|
|
onClose() {
|
...
|
...
|
|