...
|
...
|
@@ -51,6 +51,7 @@ |
|
|
@on-close="onClose"
|
|
|
@on-comment="onActionComment"></Comment>
|
|
|
</YohoActionSheet>
|
|
|
<ReplaceToHome :scrolling="scrolling"></ReplaceToHome>
|
|
|
<MoreActionSheet transfer ref="moreAction" @on-follow="onFollow" @on-delete="onDelete"></MoreActionSheet>
|
|
|
</Layout>
|
|
|
</template>
|
...
|
...
|
@@ -63,6 +64,7 @@ import ArticleActionSheet from '../detail/article-action-sheet'; |
|
|
import ArticleResource from './article-resource-item';
|
|
|
import MoreActionSheet from '../detail/more-action-sheet';
|
|
|
import {mapState, mapActions, createNamespacedHelpers} from 'vuex';
|
|
|
import ReplaceToHome from '../../../../components/replace-to-home/replace-to-home';
|
|
|
const {mapMutations} = createNamespacedHelpers('article');
|
|
|
|
|
|
export default {
|
...
|
...
|
@@ -99,6 +101,7 @@ export default { |
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
scrolling: false,
|
|
|
articleId: 0,
|
|
|
commentId: 0,
|
|
|
articleIndex: -1,
|
...
|
...
|
@@ -199,6 +202,11 @@ export default { |
|
|
},
|
|
|
onScroll(params) {
|
|
|
this.scrollEvent(params);
|
|
|
this.scrolling = true;
|
|
|
this._scTimer && clearTimeout(this._scTimer);
|
|
|
this._scTimer = setTimeout(() => {
|
|
|
this.scrolling = false;
|
|
|
}, 200);
|
|
|
},
|
|
|
onDounceScroll({item, scrollTop, startIndex}) {
|
|
|
this.scrollTop = scrollTop;
|
...
|
...
|
@@ -314,6 +322,7 @@ export default { |
|
|
}
|
|
|
},
|
|
|
components: {
|
|
|
ReplaceToHome,
|
|
|
ArticleItem,
|
|
|
ArticleActionSheet,
|
|
|
MoreActionSheet,
|
...
|
...
|
|