|
|
<template>
|
|
|
<div class="article-footer-wrapper">
|
|
|
<slot name="before"></slot>
|
|
|
<div class="tool-bar">
|
|
|
<WidgetIconBtn ref="favIcon" class="item" type="fav" :pos-id="sceneId" :text="praiseCount" :articleId="articleId" :option="optionPraise" :share="share"></WidgetIconBtn>
|
|
|
<WidgetIconBtn class="item" type="star" :pos-id="sceneId" :text="favoriteCount" :articleId="articleId" :option="optionFav" :share="share"></WidgetIconBtn>
|
|
|
<WidgetIconBtn class="item" type="msg" :text="commentCount" :option="optionComment" :share="share" @click="onComment"></WidgetIconBtn>
|
|
|
<div class="article-footer-wrapper" :style="actionBarStyle">
|
|
|
<div class="footer-wrapper-content">
|
|
|
<slot name="before"></slot>
|
|
|
<div class="tool-bar">
|
|
|
<WidgetIconBtn ref="favIcon" class="item" type="fav" :pos-id="sceneId" :text="praiseCount" :articleId="articleId" :option="optionPraise" :share="share"></WidgetIconBtn>
|
|
|
<WidgetIconBtn class="item" type="star" :pos-id="sceneId" :text="favoriteCount" :articleId="articleId" :option="optionFav" :share="share"></WidgetIconBtn>
|
|
|
<WidgetIconBtn class="item" type="msg" :text="commentCount" :option="optionComment" :share="share" @click="onComment"></WidgetIconBtn>
|
|
|
</div>
|
|
|
<slot name="after">
|
|
|
<div class="close ml20" @click="onClose">收起</div>
|
|
|
</slot>
|
|
|
</div>
|
|
|
<slot name="after">
|
|
|
<div class="close ml20" @click="onClose">收起</div>
|
|
|
</slot>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
|
|
|
import {mapState} from 'vuex';
|
|
|
import YAS from 'utils/yas-constants';
|
|
|
|
|
|
export default {
|
...
|
...
|
@@ -29,6 +31,16 @@ export default { |
|
|
};
|
|
|
},
|
|
|
computed: {
|
|
|
...mapState(['yoho']),
|
|
|
actionBarStyle() {
|
|
|
if (this.yoho.window.actionBarHeight) {
|
|
|
return {
|
|
|
paddingBottom: this.yoho.window.actionBarHeight + 'px'
|
|
|
};
|
|
|
}
|
|
|
|
|
|
return {};
|
|
|
},
|
|
|
optionPraise() {
|
|
|
return {
|
|
|
selected: this.hasPraise === 'Y'
|
...
|
...
|
@@ -59,8 +71,6 @@ export default { |
|
|
<style lang="scss" scoped>
|
|
|
|
|
|
.article-footer-wrapper {
|
|
|
display: flex;
|
|
|
height: 100px;
|
|
|
border-top: 1px solid #f0f0f0;
|
|
|
background-color: white;
|
|
|
position: relative;
|
...
|
...
|
@@ -74,6 +84,11 @@ export default { |
|
|
right: 0;
|
|
|
z-index: 3;
|
|
|
}
|
|
|
|
|
|
.footer-wrapper-content {
|
|
|
display: flex;
|
|
|
height: 100px;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
.tool-bar {
|
...
|
...
|
|