Authored by htoooth

add article content

... ... @@ -46,7 +46,6 @@
<script>
import {Scroll} from 'cube-ui';
import {debounce} from 'lodash';
import RecommendProductList from './recommend-product-list';
import Recommend from './recommend';
... ... @@ -60,7 +59,6 @@ const { mapState } = createNamespacedHelpers('article');
export default {
name: 'ArticleBody',
components: {
Scroll,
RecommendProductList,
Recommend,
Author,
... ... @@ -79,15 +77,8 @@ export default {
...mapState(['articleDetail'])
},
mounted() {
this.updateDebounce = debounce(this.forceUpdate, 10);
},
methods: {
forceUpdate() {
this.$refs.scroll.refresh();
},
onScroll() {
this.updateDebounce();
}
}
};
</script>
... ...
... ... @@ -54,10 +54,6 @@ export default {
return this.getDetail({
article_id: params.articleId,
grass_id: params.grassId
}).then(() => {
this.$nextTick(() => {
this.$refs.body.forceUpdate();
});
});
},
onClose() {
... ... @@ -85,7 +81,7 @@ export default {
.body {
flex: 1;
overflow: auto;
-webkit-overflow-scrolling: touch
-webkit-overflow-scrolling: touch;
}
.footer {
... ...
... ... @@ -26,6 +26,7 @@ export default {
},
optionComment: {
emitName: 'click',
canSelect: false
},
};
},
... ...