| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293 |
- <script>
- import LiveInput from "@/components/live-input/LiveInput.vue";
- export default {
- name: "LiveFooter",
- components: {LiveInput},
- props: {
- // 是否全屏
- isFullScreen: {
- type: Boolean,
- default: false,
- }
- },
- methods: {
- handleShowInput() {
- console.log("点击了")
- this.$refs.liveInput.show();
- }
- }
- }
- </script>
- <template>
- <div class="live-footer" :class="{'horiz': isFullScreen}">
- <div class="live-input-row" @click="handleShowInput">发个弹幕吧~</div>
- <div class="live-footer-item" style="padding: 6px 5px">
- <img src="@/assets/cart.png" class="live-footer-icon" />
- </div>
- <div class="live-footer-item">
- <img src="@/assets/share.png" class="live-footer-icon" />
- <span class="live-footer-count">345.9W</span>
- </div>
- <div class="live-footer-item">
- <img src="@/assets/like_active.png" class="live-footer-icon" />
- <span class="live-footer-count">999.9K</span>
- </div>
- <live-input ref="liveInput" v-on="$listeners" />
- </div>
- </template>
- <style scoped>
- .live-footer {
- margin: 8px 8px 10px;
- display: flex;
- align-items: center;
- column-gap: 6px;
- }
- .live-input-row {
- width: 122px;
- height: 36px;
- background: rgba(26, 40, 55, 0.5);
- box-shadow: 0px 0px 4px 0px rgba(0,0,0,0.24);
- border-radius: 18px;
- font-weight: 400;
- font-size: 16px;
- color: rgba(255,255,255,0.5);
- display: flex;
- align-items: center;
- justify-content: center;
- }
- .live-footer-item {
- display: flex;
- align-items: center;
- column-gap: 4px;
- background: rgba(26, 40, 55, 0.5);
- box-shadow: 0px 0px 4px 0px rgba(0,0,0,0.24);
- border-radius: 18px;
- box-sizing: border-box;
- padding: 6px 10px;
- }
- .live-footer-icon {
- width: 24px;
- height: 24px;
- }
- .live-footer-count {
- font-weight: bold;
- font-size: 12px;
- color: #FFFFFF;
- }
- /*横屏样式*/
- .horiz {
- margin: 8px 60px 34px ;
- }
- </style>
|